<php>$CSSARR[]=$TEMPLATE_PATH."common/css/small_store.css"</php>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
<include file="Public/common_header" />
<script src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
<script>
    wx.config({
        debug: false,
        appId: '<?php echo $getSignPackage["appId"];?>',
        timestamp: '<?php echo $getSignPackage["timestamp"];?>',
        signature: '<?php echo $getSignPackage["signature"];?>',
        nonceStr: '<?php echo $getSignPackage["nonceStr"];?>',
        jsApiList: [
          // 所有要调用的 API 都要加到这个列表中
          'onMenuShareAppMessage',
          'onMenuShareTimeline',
          'onMenuShareQQ',
          'onMenuShareQZone'
        ]
    });

    wx.ready(function () {
        wx.onMenuShareQQ({
            title: '<?php echo $name;?>邀您参观ta的小店', // 分享标题
            desc: '全球直采，正品保障，资深买手精选的好货，我自己用了也觉得好，你也来看看吧~~', // 分享描述
            link: '', // 分享链接
            imgUrl: '<?php echo "http://".$_SERVER["HTTP_HOST"].TPL_PATH."common/images/share.jpg";?>', // 分享图标
            success: function () { 
               // 用户确认分享后执行的回调函数
            },
            cancel: function () { 
               // 用户取消分享后执行的回调函数
            }
        });
        wx.onMenuShareAppMessage({
            title: '<?php echo $name;?>邀您参观ta的小店', // 分享标题
            desc: '全球直采，正品保障，资深买手精选的好货，我自己用了也觉得好，你也来看看吧~~', // 分享描述
            link: '', // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
            imgUrl: '<?php echo "http://".$_SERVER["HTTP_HOST"].TPL_PATH."common/images/share.jpg";?>', // 分享图标
            success: function () { 
                // 用户确认分享后执行的回调函数
            },
            cancel: function () { 
                // 用户取消分享后执行的回调函数
            }
        });
        wx.onMenuShareTimeline({
            title: '<?php echo $name;?>邀您参观ta的小店', // 分享标题
            link: '', // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
            imgUrl: '<?php echo "http://".$_SERVER["HTTP_HOST"].TPL_PATH."common/images/share.jpg";?>', // 分享图标
            success: function () { 
                // 用户确认分享后执行的回调函数
            },
            cancel: function () { 
                // 用户取消分享后执行的回调函数
            }
        });
        
        wx.onMenuShareQZone({
            title: '<?php echo $name;?>邀您参观ta的小店', // 分享标题
            desc: '全球直采，正品保障，资深买手精选的好货，我自己用了也觉得好，你也来看看吧~~', // 分享描述
            link: '', // 分享链接
            imgUrl: '<?php echo "http://".$_SERVER["HTTP_HOST"].TPL_PATH."common/images/share.jpg";?>', // 分享图标
            success: function () { 
               // 用户确认分享后执行的回调函数
            },
            cancel: function () { 
                // 用户取消分享后执行的回调函数
            }
        });
    })
    $(document).ready(function() {
        $("#owl-demo").owlCarousel({
        autoPlay: 3000,
        navigation : true,
        slideSpeed : 300,
        paginationSpeed : 400,
        singleItem : true
        });
    });
</script>
<style>
.small_sttimg{width: 100%;height: auto;overflow: hidden;display: block;}
.small_sttimg img{width: 100%;}
.small_store_top{margin-top: -1rem;}
.small_store_top dt{border-radius: 50%;position: relative;z-index: 200;}
.small_store_top dd{margin-top: 0.5rem;float: left;}
.small_store_top dt img{width: 3rem;height: 3rem;border-radius: 50%;}
.small_store_top dd h3{padding: 0.2rem 0rem 0 0!important;}
</style>
    <div class="page-group">
        <div class="page page-current">
            <include file="Public/little_shop_header" />
            <div class="content">
              <div class="small_sttimg"><if condition="$surface_plot"><img src="{$surface_plot|format_url|thumb=500,500,'noimg_500_500.png'}"/><else/><img src="{$Think.TPL_PATH}common/images/banner1.png"/></if></div>
            	<div class="small_store_top">
                	<dl class="clearfix">
              			<dt class="f_l">
                            <a href="{:geturl('LittleShop/editinfo',array('id'=>$shop_id))}">
                                <empty name="logo">
                                  <img src="{$Think.TPL_PATH}common/images/user-header.png"/>
                                <else />
                                  <img src="{$logo|format_url|thumb=58,58}">
                                </empty>
                            </a>
                        </dt>
                        <dd>
                        	<h3>{$name}</h3>
                            <p><notempty name="remark">{$remark}<else />比较懒，什么也没留下！</notempty></p>
                        </dd>
                    </dl>
            	</div>
              <!--轮播图-->
              <!-- <notempty name="banner_list">
                <div id="banner">
                    <div id="owl-demo" class="owl-carousel">
                      <foreach name="banner_list" item="vo">
                        <div class="item">
                          <img src="{$vo|idtoname='Images','img'}">
                        </div>
                      </foreach>
                    </div>
                </div>
              </notempty> -->
              <!--楼层-->
              <notempty name="goods_ids">
                <div id="floor" class="mt10">
                  <div class="floor">
                    <h2 class="small_floor"><p><span>小店推荐</span></p></h2>
                    <div class="sf-type">
                      <div class="productList">
                        <div class="ui-list-grid jscroll clearfix" style="background:#ffffff">
                          <div id="guessList" class="ui-list-grid-wrap">
                            <volist name="goods_ids" id="val">
                              <div class="ui-list-grid-item">
                                <dl class="ui-list-item">
                                  <dd class="p-img"> <a href="{:geturl('Goods/goods_cont',array('id'=>$val,'eid'=>MID,'lshop_id'=>$shop_id))}" target="_blank"> <img src="{$val|idtoname='Goods','img'|thumb=500,500,'noimg_500_500.png'}" > </a> </dd>
                                  <dd class="p-item">
                                    <div class="p-name"><a href="{:geturl('Goods/goods_cont',array('id'=>$val,'eid'=>MID,'lshop_id'=>$shop_id))}" target="_blank">{$val|idtoname='Goods','goods_name'}</a></div>
                                    <div class="p-price"> <span class="p">{$val|idtoname='Goods','shop_price'|format_price}</span><del>{$val|idtoname='Goods','market_price'|format_price}</del></div>
                                  </dd>
                                </dl>
                              </div>
                            </volist>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div class="small_floor_more"><a href="{:geturl('LittleShop/my_goods_up')}">查看全部</a></div>
                </div>
              <else />
                <p class="text-center pb10" id="no-content">
                  暂无数据
                </p>  
              </notempty>
              <neq name="is_show" value="2">
                <!-- <include file="Public/lshop_footer" />   -->
              </neq>        
            </div>
        </div>
    </div>
  </body>
</html>
