jifenshop.wxml
1.8 KB
<view class="content"><view class="navmiddle flexone jifennav"><view class="middleleft"><image src="../../static/search.png" mode></image></view><view class="middleenter"><input type="text" placeholder="请输入商品,店铺搜索" placeholder-class="enterk"/></view></view><view class="tapnav flextwo"><view class="{{['tapnavitem',order==0?'tapnavactive':'']}}" data-id="{{0}}" data-event-opts="{{[['tap',[['kindlist',['$event']]]]]}}" bindtap="__e">分类</view><view class="{{['tapnavitem',order==1?'tapnavactive':'']}}" data-id="{{1}}" data-event-opts="{{[['tap',[['orderrange',['$event']]]]]}}" bindtap="__e">综合</view><view class="{{['tapnavitem',order==3?'tapnavactive':'']}}" data-id="{{2}}" data-event-opts="{{[['tap',[['orderrange',['$event']]]]]}}" bindtap="__e">销量</view><view data-event-opts="{{[['tap',[['selprice',['$event']]]]]}}" class="{{['tapnavitem flexone',order==3||order==4?'tapnavactive':'']}}" bindtap="__e"><view class="tapprice">价格</view><view class="tapbox flexfour"><view class="tapboxtop"><image src="../../static/toprow.png" mode></image></view><view class="tapboxtop"><image src="../../static/xiarow.png" mode></image></view></view></view></view><view class="homeshoplist flexone goodboxlist"><block wx:for="{{shoplist}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="homeshopitem goodboxitem" data-id="{{item.id}}" data-event-opts="{{[['tap',[['goodtail',['$event']]]]]}}" bindtap="__e"><view class="gooditemimg goodboximg"><image src="{{item.image}}" mode></image><view class="sale boxsale">已售76件</view></view><view class="goodname hidden boxgoodname">{{item.name}}</view><view class="saleprice">{{"¥"+item.price}}</view><view class="flextwo"><view class="huiyuanprice dikou">抵扣:¥200</view><view class="goodshou">{{"已售"+item.sales}}</view></view></view></block></view></view>