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 acea-row row-between-wrapper" 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><image src="{{item.$orig.image}}" mode="aspectFill"></image></view><view class="pictxt"><view class="text line2">{{item.$orig.store_name}}</view><slot name="center{{index}}"></slot><view class="bottom acea-row row-between-wrapper"><view class="money font-color"><text class="sign">¥</text>{{item.$orig.price+''}}</view><block wx:if="{{item.$orig.stock>0}}"><view><block wx:if="{{item.g0}}"><view class="iconfont icon-gouwuche6 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="{{'3a7b5b5a-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">{{''+(item.$orig.presale_pay_status===1?'未开始':'已结束')+''}}</view></block><block wx:else><view data-event-opts="{{[['tap',[['goCartDan',['$0',index],[[['tempArr','',index]]]]]]]}}" class="iconfont icon-gouwuche6 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 acea-row row-center-wrapper" 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 acea-row row-center-wrapper" catchtap="__e"></view></view></block></view></block></view></block><block wx:else><view class="bnt acea-row row-center-wrapper end">已售罄</view></block></view></view></view></block></view>
|