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">秒杀</label></block><block wx:if="{{item.$orig.activity&&item.$orig.activity.type==='2'}}"><label class="pictrue_log pictrue_log_class _span">砍价</label></block><block wx:if="{{item.$orig.activity&&item.$orig.activity.type==='3'}}"><label class="pictrue_log pictrue_log_class _span">拼团</label></block><block wx:if="{{item.$orig.recommend_image}}"><image src="{{item.$orig.recommend_image}}" mode="aspectFill"></image></block><block wx:else><image src="{{item.$orig.image}}" mode="aspectFill"></image></block></view><view class="text line2">{{item.$orig.store_name}}</view><slot name="center{{index}}"></slot><view class="bottom acea-row row-between-wrapper"><view class="sales acea-row row-middle"><view class="money font-color"><text>¥</text>{{item.$orig.price}}</view><view>{{"已售 "+item.$orig.sales}}</view></view><block wx:if="{{item.$orig.stock>0}}"><view><block wx:if="{{item.g0}}"><view class="bnt acea-row row-center-wrapper">立即购买</view></block><block wx:else><view><block wx:if="{{item.$orig.spec_type}}"><uni-badge class="uni-badge-left-margin" vue-id="{{'09b9865c-1-'+index}}" text="{{item.$orig.cart_num}}" absolute="rightTop" bind:__l="__l" vue-slots="{{['default']}}"><view data-event-opts="{{[['tap',[['goCartDuo',['$0'],[[['tempArr','',index]]]]]]]}}" class="bnt acea-row row-center-wrapper" catchtap="__e">选规格</view></uni-badge></block><block wx:if="{{!item.$orig.spec_type&&!item.$orig.cart_num}}"><view><block wx:if="{{item.$orig.cart_button}}"><view><block wx:if="{{item.$orig.is_presale_product&&(item.$orig.presale_pay_status==1||item.$orig.presale_pay_status==3)}}"><view class="bnt acea-row row-center-wrapper end">{{">\n\t\t\t\t\t\t\t\t"+(item.$orig.presale_pay_status===1?'未开始':'已结束')+''}}</view></block><block wx:else><view data-event-opts="{{[['tap',[['goCartDan',['$0',index],[[['tempArr','',index]]]]]]]}}" class="bnt acea-row row-center-wrapper" catchtap="__e">加入购物车</view></block></view></block><block wx:else><view class="bnt acea-row row-center-wrapper">立即购买</view></block></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="pictrue 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="pictrue iconfont icon-jiahao" catchtap="__e"></view></view></block></view></block></view></block><block wx:else><view class="bnt end acea-row row-center-wrapper">已售罄</view></block></view></view></block></view>
|