index.wxml 2.5 KB

1
  1. <view class="goodsList"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',['$0'],[[['tempArr','',index]]]]]]]}}" class="item" bindtap="__e"><view class="pictrue"><block wx:if="{{item.$orig.activity&&item.$orig.activity.type==='1'}}"><label class="pictrue_log pictrue_log_class _span">{{item.m0}}</label></block><block wx:if="{{item.$orig.activity&&item.$orig.activity.type==='2'}}"><label class="pictrue_log pictrue_log_class _span">{{item.m1}}</label></block><block wx:if="{{item.$orig.activity&&item.$orig.activity.type==='3'}}"><label class="pictrue_log pictrue_log_class _span">{{item.m2}}</label></block><block wx:if="{{item.$orig.recommend_image}}"><image src="{{item.$orig.recommend_image}}" mode></image></block><block wx:else><image src="{{item.$orig.image}}" mode></image></block></view><view class="text line2">{{item.$orig.store_name}}</view><view class="bottom acea-row row-between-wrapper"><view class="sales acea-row row-middle"><view class="money font-color"><text>{{$root.m3}}</text>{{''+item.$orig.price+''}}</view><view>{{$root.m4+item.$orig.sales}}</view></view><block wx:if="{{item.$orig.stock>0}}"><view><block wx:if="{{item.$orig.activity&&(item.$orig.activity.type==='1'||item.$orig.activity.type==='2'||item.$orig.activity.type==='3')||item.$orig.is_virtual||!item.$orig.cart_button}}"><view class="bnt">{{''+item.m5+''}}</view></block><block wx:else><view><block wx:if="{{item.$orig.spec_type}}"><view data-event-opts="{{[['tap',[['goCartDuo',['$0'],[[['tempArr','',index]]]]]]]}}" class="bnt" catchtap="__e">{{''+item.m6+''}}<block wx:if="{{isLogin&&item.$orig.cart_num}}"><view class="num">{{item.$orig.cart_num}}</view></block></view></block><block wx:if="{{!item.$orig.spec_type&&!item.$orig.cart_num}}"><view data-event-opts="{{[['tap',[['goCartDan',['$0',index],[[['tempArr','',index]]]]]]]}}" class="bnt" catchtap="__e">{{''+item.m7+''}}</view></block><block wx:if="{{!item.$orig.spec_type&&item.$orig.cart_num}}"><view class="cart acea-row row-middle"><view data-event-opts="{{[['tap',[['CartNumDes',[index,'$0'],[[['tempArr','',index]]]]]]]}}" class="iconfont icon-jianhao" catchtap="__e"></view><view class="num">{{item.$orig.cart_num}}</view><view data-event-opts="{{[['tap',[['CartNumAdd',[index,'$0'],[[['tempArr','',index]]]]]]]}}" class="iconfont icon-jiahao" catchtap="__e"></view></view></block></view></block></view></block><block wx:else><view class="bnt end">{{item.m8}}</view></block></view></view></block></view>