You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

65 lines
2.7 KiB

<!--pages/store/store.wxml-->
<view class="container">
<view class="storeTop">
<view class="storeTop_title">
<view class="storeTopLeft">
<image src="{{shop_logo}}" mode="" />
<view class="storeTopLeftText">
<view class="storeName">
{{ shop_name }}
<view class="is_open" wx:if="{{shop.is_open == 2}}">已关闭</view>
<view class="collectionBtn" bindtap="collStore">
<image src="{{collection_status == 0?mch_sc:mch_sch}}" mode="" />
</view>
</view>
<view class="storeSellNum">
{{ shop.quantity_on_sale }}在售商品 |
已售{{ shop.quantity_sold}}件 |
{{ shop.collection_num }}收藏
</view>
</view>
</view>
</view>
<view class="storeTop_bottom">
<view class="addressBox">
<image src="/images/icon_dz.png" mode="widthFix" style='width:48rpx;' />
<text>{{shop_info.sheng}}{{shop_info.shi}}{{shop_info.xian}}{{shop_info.address}}({{shop.distance}}km)</text>
</view>
<view class="seeStore" bindtap="navToStore">
查看门店信息
<image src="/images/blueRight.png" mode="" />
</view>
</view>
</view>
<view class="tab-view">
<view class="tab-item{{currentIndex==idx?'Active':''}}" wx:key="key" wx:for="{{navTab}}" wx:for-index="idx" wx:for-item="item" data-idx='{{idx}}' data-item='{{item}}' bindtap="switchTab">{{item.type}}
<view class="tab-line{{currentIndex==idx?'Active':''}}"></view>
<text class="tab-badge" hidden="{{item.num == 0}}">{{item.num}}</text>
</view>
</view>
<scroll-view class="list-table" scroll-y="true">
<block wx:if="{{type!=3}}">
<view class="list-cell" wx:for="{{goods_list}}" wx:key="index" data-info="{{item}}">
<view class="goods_view">
<image class="goods_img" lazy-load src="{{item.imgurl}}" />
<view wx:if="{{item.status == 3}}" class="dowmPro">已失效</view>
<view wx:elif="{{item.stockNum == 0}}" class="dowmPro">已售罄</view>
</view>
<view class="overtitle">{{ item.product_title }}</view>
<view class="goods_mun">
<view class="goods_price">
<view class='price'>¥{{item.vip_yprice}}</view>
</view>
<image wx:if="{{item.is_open == 1}}" bindtap="shopping_j" src="/images/goods_shopImg.png" />
<image wx:else src="" />
</view>
</view>
</block>
<block wx:else>
<view class="list-label" wx:for="{{goods_list}}" wx:key="index" data-info="{{item}}" bindtap="navToList">
<view class="title">{{item.pname}}</view>
<image src="/images/x_right.png" />
</view>
</block>
</scroll-view>
</view>