1 |
- <app-layout vue-id="ca7c1bf0-1" class="data-v-b1d2ba88" bind:__l="__l" vue-slots="{{['default']}}"><view class="pond data-v-b1d2ba88"><view class="bulletin dir-left-nowrap data-v-b1d2ba88"><text class="bulletin-text data-v-b1d2ba88">结算规则:选购商品数等于任选商品数的倍数</text><block wx:if="{{!edit}}"><view data-event-opts="{{[['tap',[['setEdit',[true]]]]]}}" class="edit data-v-b1d2ba88" bindtap="__e">编辑</view></block><block wx:else><view data-event-opts="{{[['tap',[['setEdit',[false]]]]]}}" class="edit data-v-b1d2ba88" bindtap="__e">完成</view></block></view><view class="list data-v-b1d2ba88"><block wx:if="{{pond.length===0}}"><view class="empty data-v-b1d2ba88"><view class="cart data-v-b1d2ba88"><image src="/static/image/icon/nav-icon-cart.png" class="data-v-b1d2ba88"></image></view><text class="data-v-b1d2ba88">凑单池还是空的哦</text></view></block><block wx:else><block wx:for="{{pond}}" wx:for-item="item" wx:for-index="__i0__" wx:key="id"><view class="item dir-left-nowrap data-v-b1d2ba88"><block wx:if="{{item.pick_activity_id==pick_activity_id&&!edit}}"><view data-event-opts="{{[['tap',[['changeActive',['$0'],[[['pond','id',item.id]]]]]]]}}" class="radio dir-top-nowrap main-center cross-center data-v-b1d2ba88" bindtap="__e"><block wx:if="{{!item.is_active}}"><view class="radio-single data-v-b1d2ba88"></view></block><block wx:else><view class="radio-single-active data-v-b1d2ba88"></view></block></view></block><block wx:if="{{edit}}"><view data-event-opts="{{[['tap',[['changeActive',['$0'],[[['pond','id',item.id]]]]]]]}}" class="radio dir-top-nowrap main-center cross-center data-v-b1d2ba88" bindtap="__e"><block wx:if="{{!item.is_active}}"><view class="radio-single data-v-b1d2ba88"></view></block><block wx:else><view class="radio-single-active data-v-b1d2ba88"></view></block></view></block><block wx:else><block wx:if="{{item.pick_activity_id!=pick_activity_id&&!edit}}"><view class="radio dir-top-nowrap main-center cross-center data-v-b1d2ba88"><view class="radio-lapse data-v-b1d2ba88">失效</view></view></block></block><view class="content dir-left-nowrap data-v-b1d2ba88"><image class="cover-pic data-v-b1d2ba88" src="{{item.attrs.pic_url?item.attrs.pic_url:item.goods.cover_pic}}"></image><view class="text dir-top-nowrap main-between data-v-b1d2ba88"><text class="name t-omit-two data-v-b1d2ba88">{{''+item.goods.name+''}}</text><view class="it-attr data-v-b1d2ba88"><block wx:for="{{item.attrs.attr}}" wx:for-item="it" wx:for-index="i" wx:key="i"><text class="data-v-b1d2ba88">{{''+it.attr_group_name+":"+it.attr_name}}<text class="empty-nbsp data-v-b1d2ba88"></text></text></block></view><view class="dir-left-nowrap main-between cross-center data-v-b1d2ba88"><block wx:if="{{item.pick_activity_id==pick_activity_id}}"><text class="price data-v-b1d2ba88">{{item.attrs.price}}</text><view class="aob dir-left-nowrap main-around data-v-b1d2ba88"><view data-event-opts="{{[['tap',[['_calcValue',['$0','minus'],[[['pond','id',item.id]]]]]]]}}" class="{{['data-v-b1d2ba88',(item.num==1)?'app-unreducible':'',(item.num>1)?'app-can-be-reduced':'']}}" bindtap="__e"></view><input type="number" data-event-opts="{{[['change',[['editInput',['$0'],[[['pond','id',item.id]]]]]],['input',[['__set_model',['$0','num','$event',[]],[[['pond','id',item.id]]]]]]]}}" value="{{item.num}}" bindchange="__e" bindinput="__e" class="data-v-b1d2ba88"/><view data-event-opts="{{[['tap',[['_calcValue',['$0','plus'],[[['pond','id',item.id]]]]]]]}}" class="{{['data-v-b1d2ba88',(item.num>=item.attrs.stock)?'app-not-add':'',(item.num<item.attrs.stock)?'app-can-add':'']}}" bindtap="__e"></view></view></block><block wx:else><view style="font-size:25rpx;" class="data-v-b1d2ba88">此活动已过期,无法购买</view></block></view></view></view></view></block></block></view><view class="data-v-b1d2ba88"><app-iphone-x vue-id="{{('ca7c1bf0-2')+','+('ca7c1bf0-1')}}" class="data-v-b1d2ba88" bind:__l="__l" vue-slots="{{['empty-area']}}"><view class="settlement dir-left-nowrap data-v-b1d2ba88" slot="empty-area"><view class="all-price dir-left-nowrap data-v-b1d2ba88"><view data-event-opts="{{[['tap',[['selectAll',['$event']]]]]}}" class="all-select dir-left-nowrap main-center cross-center data-v-b1d2ba88" bindtap="__e"><view class="all-radio data-v-b1d2ba88"><block wx:if="{{!is_active}}"><view class="radio-single data-v-b1d2ba88"></view></block><block wx:else><view class="radio-single-active data-v-b1d2ba88"></view></block></view><text class="all-text data-v-b1d2ba88">全选</text></view><block wx:if="{{!edit}}"><view class="red-text dir-top-nowrap main-center data-v-b1d2ba88"><text class="all-price-text data-v-b1d2ba88">{{"总计:¥"+all_price}}</text><block wx:if="{{stillNeed!==0}}"><text class="other-good data-v-b1d2ba88">{{"还需添加"+stillNeed+"件商品"}}</text></block></view></block></view><block wx:if="{{!edit}}"><view data-event-opts="{{[['tap',[['buy',['$event']]]]]}}" class="{{['button data-v-b1d2ba88',(stillNeed!==0)?'disabled':'',(all_num===0)?'disabled':'']}}" bindtap="__e">去结算</view></block><block wx:else><view data-event-opts="{{[['tap',[['del']]]]}}" class="delete data-v-b1d2ba88" bindtap="__e"><view class="data-v-b1d2ba88">删除</view></view></block></view></app-iphone-x></view></view></app-layout>
|