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.
 

50 lines
1.6 KiB

<!--pages/shop/shop.wxml-->
<view class="container">
<!-- 分类 -->
<view class="fenlei">
<scroll-view scroll-x="true" class="fl_scroll">
<view class="fl_view">
<view bindtap="fl_cid" data-index="{{index}}">
<view>全部</view>
<view wx:if="{{i_showFl == 0}}" class="xian"></view>
</view>
<view bindtap="fl_cid" wx:for="{{mch_arr}}" data-index="{{index+1}}" wx:key="index">
<view>{{item}}</view>
<view wx:if="{{i_showFl == index+1}}" class="xian"></view>
</view>
</view>
</scroll-view>
</view>
<!-- 占位 -->
<view style="height: 120rpx;"></view>
<!-- 内容 -->
<view class="content">
<view class="list" wx:for="{{list}}" wx:key="index">
<view class="list_left">
<image src="{{item.logo}}" mode=""></image>
<view wx:if="{{item.is_open == 2}}">已关闭</view>
</view>
<view class="list_right">
<view class="list_right_top">
<view class="list_right_top_title">{{item.name}}</view>
<view class="list_right_top_btn" data-info='{{item}}' bindtap="navToStore">进店</view>
</view>
<view class="list_right_bottom">
<view class="bottom_item">
<view>{{item.quantity_on_sale}}</view>
<text>在售商品</text>
</view>
<view class="bottom_item">
<view>{{item.quantity_sold}}</view>
<text>已售</text>
</view>
<view class="bottom_item">
<view>{{item.collection_num}}</view>
<text>收藏人数</text>
</view>
</view>
</view>
</view>
</view>
</view>