1 |
- <app-layout vue-id="3bf3a7ac-1" class="data-v-12733f48" bind:__l="__l" vue-slots="{{['default']}}"><scroll-view style="{{'height:'+(windowHeight+'px')+';'}}" scroll-top="{{scrollTop}}" scroll-y="{{true}}" data-event-opts="{{[['scrolltolower',[['getMore',['$event']]]],['scroll',[['scroll',['$event']]]]]}}" bindscrolltolower="__e" bindscroll="__e" class="data-v-12733f48"><block wx:if="{{getTheme}}"><app-head vue-id="{{('3bf3a7ac-2')+','+('3bf3a7ac-1')}}" theme="{{getTheme}}" class="data-v-12733f48" bind:__l="__l"></app-head></block><view data-event-opts="{{[['tap',[['toList',['$event']]]]]}}" class="middleman dir-top-nowrap main-center data-v-12733f48" bindtap="__e"><view class="location t-omit data-v-12733f48">{{middleman.location}}</view><block wx:if="{{middleman.id>0}}"><view class="middleman-info dir-left-nowrap data-v-12733f48"><image class="avatar data-v-12733f48" src="{{middleman.avatar}}"></image><view class="user-info data-v-12733f48"><view class="t-omit data-v-12733f48">{{middleman.name+" "+setting.middleman+" "+middleman.mobile}}</view><view class="data-v-12733f48"><image class="icon data-v-12733f48" src="./../image/address.png"></image><text class="data-v-12733f48">{{"提货地址:"+middleman.province}}<block wx:if="{{middleman.province!=middleman.city}}"><text class="data-v-12733f48">{{middleman.city}}</text></block>{{middleman.district+middleman.detail}}</text></view></view></view></block><block wx:if="{{middleman.is_allow_change==1}}"><view class="space data-v-12733f48">{{"距离最近"+space}}</view></block><block wx:if="{{middleman.is_allow_change==1}}"><image class="arrow-image data-v-12733f48" src="/static/image/icon/arrow-right-white.png"></image></block></view><block wx:if="{{activity.time>0}}"><view class="time dir-left-nowrap cross-center data-v-12733f48"><image class="icon data-v-12733f48" src="./../image/timeline.png"></image><view class="data-v-12733f48">{{"距离本次团购活动开始还有"+d+"天"+h+"时"+m+"分"+s+"秒"}}</view></view></block><block wx:if="{{activity.activity_status==2}}"><view class="time data-v-12733f48"><text class="data-v-12733f48">团购已结束,下次记得早点来哦</text></view></block><block wx:if="{{activity.activity_status==3}}"><view class="time data-v-12733f48"><text class="data-v-12733f48">本次团购活动已经下架</text></view></block><block wx:if="{{activity.activity_status==1}}"><view class="status-area data-v-12733f48"><view class="status dir-top-nowrap main-center cross-center data-v-12733f48"><block wx:if="{{activity.condition==0}}"><view class="end-time data-v-12733f48">{{activity.end_at+"结束"}}</view></block><block wx:else><view class="condition main-between data-v-12733f48"><view class="data-v-12733f48"><block wx:if="{{activity.num-activity.condition_count>0}}"><text class="data-v-12733f48">还差<text class="end-time data-v-12733f48">{{activity.num-activity.condition_count}}</text>{{activity.condition==1?'人':'件商品'}}</text></block>拼团成功</view><view class="end-time data-v-12733f48">{{activity.end_at+"结束"}}</view></view></block><block wx:if="{{activity.condition>0}}"><view class="progress data-v-12733f48"><view style="{{'width:'+(activity.rate+'%')+';'+('background-image:'+('url('+bonusImg.progress+')')+';')}}" class="data-v-12733f48"></view></view></block><view class="main-center cross-center buy-user data-v-12733f48"><view class="user-list dir-right-nowrap data-v-12733f48"><block wx:for="{{user_list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><image class="avatar data-v-12733f48" src="{{item.avatar}}"></image></block></view><view class="sales data-v-12733f48"><text class="data-v-12733f48">{{activity.user_num}}</text>人已抢<text class="data-v-12733f48">{{activity.all_sales>activity.condition_count?activity.all_sales:activity.condition_count}}</text>件</view></view><block wx:if="{{user_list.length>0}}"><view class="main-center cross-center new-buy data-v-12733f48"><image class="avatar data-v-12733f48" src="{{user_list[user_list.length-1].avatar}}"></image><view class="data-v-12733f48">{{end_time+"参与团购"}}</view></view></block></view></view></block><scroll-view hidden="{{!(activity.id>0)}}" class="{{['app-scroll','data-v-12733f48',activity.time>0||activity.activity_status==2?'no-ing':'']}}" scroll-into-view="{{'scroll-'+activeIndex}}" scroll-with-animation="{{true}}" scroll-x="{{true}}"><block wx:for="{{nav_list}}" wx:for-item="item" wx:for-index="index" wx:key="id"><text class="{{['app-item','data-v-12733f48',cat_id==item.id?'app-active-item':'']}}" style="{{'color:'+(cat_id==item.id?getTheme.color:'')+';'+('border-color:'+(cat_id==item.id?getTheme.border:'')+';')}}" id="{{'scroll-'+index}}" data-event-opts="{{[['tap',[['changeStatus',['$0',index],[[['nav_list','id',item.id,'id']]]]]]]}}" bindtap="__e">{{item.name}}</text></block></scroll-view><view class="list data-v-12733f48"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="__i0__" wx:key="id"><view data-event-opts="{{[['tap',[['toGoods',['$0'],[[['list','id',item.id]]]]]]]}}" class="goods dir-left-nowrap data-v-12733f48" bindtap="__e"><block wx:if="{{item.goods_stock===0}}"><view class="out-dialog data-v-12733f48"><image src="{{appSetting.is_use_stock=='1'?appImg.plugins_out:appSetting.sell_out_pic}}" class="data-v-12733f48"></image></view></block><image class="cover data-v-12733f48" mode="aspectFill" src="{{item.cover_pic}}"></image><view class="info data-v-12733f48"><view class="name t-omit-two data-v-12733f48">{{item.name}}</view><view class="sale data-v-12733f48" style="{{'color:'+(getTheme.color)+';'+('border-color:'+(getTheme.border)+';')}}"><view style="position:relative;" class="data-v-12733f48">{{''+item.sales+''}}<view class="sale-bg data-v-12733f48" style="{{'background-color:'+(getTheme.background)+';'}}"></view></view><view class="stock data-v-12733f48">{{"剩"+item.goods_stock+item.goodsWarehouse.unit}}</view></view><view class="price data-v-12733f48" style="{{'color:'+(getTheme.color)+';'}}">{{"¥"+item.min_price}}</view><block wx:if="{{activity&&activity.activity_status==1&&item.goods_stock>0}}"><view data-event-opts="{{[['tap',[['toBuy',['$0'],[[['list','id',item.id]]]]]]]}}" class="cart data-v-12733f48" style="{{'background-color:'+(item.buy_goods_auth?getTheme.background:'#9999999')+';'}}" catchtap="__e"></view></block></view></view></block></view><block wx:if="{{showCart&&cart.length>0}}"><view data-event-opts="{{[['tap',[['openCart',['$event']]]]]}}" class="bg data-v-12733f48" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="dialog cart-dialog data-v-12733f48" style="padding:0;" catchtap="__e"><block wx:if="{{activity.full_price.length>0}}"><view class="cart-discount main-center data-v-12733f48"><block wx:for="{{activity.full_price}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view style="{{'color:'+(getTheme.color)+';'}}" class="data-v-12733f48"><view class="discount-bg data-v-12733f48" style="{{'background-color:'+(getTheme.background)+';'}}"></view><block wx:if="{{index>0}}"><text class="data-v-12733f48">,</text></block>{{"满"+item.full_price+"减"+item.reduce_price}}</view></block></view></block><view class="title main-between data-v-12733f48"><view class="data-v-12733f48">已选商品</view><view data-event-opts="{{[['tap',[['clearAll',['$event']]]]]}}" class="dir-right-nowrap cross-center data-v-12733f48" catchtap="__e"><view style="color:#999999;" class="data-v-12733f48">清空购物车</view><image src="/static/image/icon/delete.png" class="data-v-12733f48"></image></view></view><view class="goods-list data-v-12733f48"><block wx:for="{{cart}}" wx:for-item="item" wx:for-index="index" wx:key="id"><block wx:if="{{item.num>0||item.num==''}}"><view class="goods dir-left-nowrap data-v-12733f48"><image class="cover data-v-12733f48" mode="aspectFill" src="{{item.pic_url}}"></image><view class="info data-v-12733f48"><view class="name t-omit-two data-v-12733f48" style="{{'color:'+(item.is_exist==1?'#353535':'#999999')+';'}}">{{item.name}}</view><view class="attr data-v-12733f48"><block wx:for="{{item.attr_list}}" wx:for-item="attr" wx:for-index="idx" wx:key="idx"><text class="attr-group data-v-12733f48">{{''+attr.attr_group_name+":"+attr.attr_name+''}}</text></block></view><view style="height:60rpx;" class="data-v-12733f48"></view><block wx:if="{{item.is_exist==1}}"><view class="price data-v-12733f48" style="{{'color:'+(getTheme.color)+';'}}">{{"¥"+item.price}}</view></block><block wx:else><view class="price data-v-12733f48" style="color:#353535;">商品已失效</view></block><view class="app-add-subtract dir-left-nowrap cross-center data-v-12733f48"><image class="app-icon data-v-12733f48" src="{{item.is_exist==0?'/static/image/cart/unreducible.png':'/static/image/icon/subtract.png'}}" data-event-opts="{{[['tap',[['_calcValue',[index,'minus']]]]]}}" catchtap="__e"></image><view class="app-value data-v-12733f48"><block wx:if="{{item.is_exist==1}}"><input type="number" data-event-opts="{{[['blur',[['_onBlur',[index]]]],['input',[['__set_model',['$0','num','$event',[]],[[['cart','id',item.id]]]]]]]}}" value="{{item.num}}" catchblur="__e" bindinput="__e" class="data-v-12733f48"/></block><block wx:else><view class="data-v-12733f48">{{item.num}}</view></block></view><image hidden="{{!(is_loading)}}" class="app-icon data-v-12733f48" style="{{'background-color:'+(getTheme.background)+';'}}" src="{{item.num>=99||item.is_exist==0?'/static/image/cart/can-add.png':'/static/image/icon/add-but.png'}}" data-event-opts="{{[['load',[['imgLoad',['$event']]]],['tap',[['_calcValue',[index,'plus']]]]]}}" bindload="__e" catchtap="__e"></image></view></view></view></block></block></view><block wx:if="{{is_exist}}"><view class="discount main-center data-v-12733f48" style="background-color:#f0f0f0;color:#999999;"><view class="data-v-12733f48">{{is_exist+"件商品已失效"}}</view></view></block><view class="{{['cart-placeholder','cart-list-placeholder','data-v-12733f48',(is_exist)?'again-placeholder':'']}}"></view></view></view></block><block wx:if="{{cart.length>0&&activity.activity_status==1}}"><view class="input-info data-v-12733f48" id="input"><view class="input-item data-v-12733f48"><view class="input-label data-v-12733f48">手机号</view><view class="input data-v-12733f48"><input placeholder-style="color:#999999" type="number" placeholder="请输入手机号" data-event-opts="{{[['input',[['__set_model',['','mobile','$event',[]]]]]]}}" value="{{mobile}}" bindinput="__e" class="data-v-12733f48"/></view></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="input-item data-v-12733f48" bindtap="__e"><view class="input-label data-v-12733f48">备注</view><block wx:if="{{inputRemark}}"><view class="input data-v-12733f48" style="{{'color:'+(remark?'#353535':'#999999')+';'}}">{{remark?remark:'请输入备注'}}</view></block><block wx:else><view class="input data-v-12733f48"><input placeholder-style="color:#999999" focus="{{!inputRemark}}" maxlength="50" placeholder="请输入备注" data-event-opts="{{[['blur',[['e1',['$event']]]],['input',[['__set_model',['','remark','$event',[]]]]]]}}" value="{{remark}}" bindblur="__e" bindinput="__e" class="data-v-12733f48"/></view></block></view></view></block><block wx:if="{{cart.length>0&&activity.activity_status==1&&activity.full_price.length>0}}"><view class="discount main-center data-v-12733f48"><block wx:for="{{activity.full_price}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view style="{{'color:'+(getTheme.color)+';'}}" class="data-v-12733f48"><view class="discount-bg data-v-12733f48" style="{{'background-color:'+(getTheme.background)+';'}}"></view><block wx:if="{{index>0}}"><text class="data-v-12733f48">,</text></block>{{"满"+item.full_price+"减"+item.reduce_price}}</view></block></view></block><block wx:if="{{cart.length>0&&activity.activity_status==1}}"><view class="{{['cart-placeholder','data-v-12733f48',(is_middleman)?'more-placeholder':'']}}"></view></block><block wx:if="{{cart.length>0&&activity.activity_status==1}}"><view class="cart-item main-between cross-center data-v-12733f48"><view data-event-opts="{{[['tap',[['openCart',['$event']]]]]}}" class="cart-left dir-left-nowrap data-v-12733f48" bindtap="__e"><view class="cart-icon data-v-12733f48"><image class="cart data-v-12733f48" src="./../image/cart.png"></image><view style="{{'background-color:'+(getTheme.background)+';'}}" class="data-v-12733f48">{{cartLength>99?'99+':cartLength}}</view></view><view class="price-info main-center dir-top-nowrap data-v-12733f48"><view class="total-price t-omit data-v-12733f48">总计<text style="{{'color:'+(getTheme.color)+';'}}" class="data-v-12733f48">{{"¥"+(total<0?'0.00':total)}}</text></view><view class="minus-price t-omit data-v-12733f48">已减<text style="{{'color:'+(getTheme.color)+';'}}" class="data-v-12733f48">{{"¥"+minus}}</text></view></view></view><view data-event-opts="{{[['tap',[['toSubmit',['$event']]]]]}}" class="cart-right data-v-12733f48" style="{{'background-color:'+(getTheme.background)+';'}}" bindtap="__e">确认下单</view></view></block><view class="dialog-btn data-v-12733f48"><block wx:if="{{is_middleman}}"><view data-event-opts="{{[['tap',[['toIndex',['$event']]]]]}}" bindtap="__e" class="data-v-12733f48"><image src="./../image/user-index.png" class="data-v-12733f48"></image></view></block><view data-event-opts="{{[['tap',[['toOrder',['$event']]]]]}}" bindtap="__e" class="data-v-12733f48"><image src="./../image/user-order.png" class="data-v-12733f48"></image></view><view data-event-opts="{{[['tap',[['toUser',['$event']]]]]}}" bindtap="__e" class="data-v-12733f48"><image src="./../image/user-center.png" class="data-v-12733f48"></image></view><view data-event-opts="{{[['tap',[['showHiddenClick',['$event']]]]]}}" bindtap="__e" class="data-v-12733f48"><image src="./../image/user-share.png" class="data-v-12733f48"></image></view></view><block wx:if="{{goods}}"><u-attr vue-id="{{('3bf3a7ac-3')+','+('3bf3a7ac-1')}}" theme="{{getTheme}}" goods="{{goods}}" checked="{{selectAttr}}" is_show_left="{{false}}" is_show_right="{{false}}" value="{{attrShow}}" data-event-opts="{{[['^check',[['attr']]],['^input',[['__set_model',['','attrShow','$event',[]]]]]]}}" bind:check="__e" bind:input="__e" class="data-v-12733f48" bind:__l="__l" vue-slots="{{['right']}}"><view slot="right" class="data-v-12733f48"><view class="attr-bottom dir-left-nowrap data-v-12733f48"><view class="box-grow-1 dir-left-nowrap cross-center data-v-12733f48"><view class="total-price data-v-12733f48">总计<text style="{{'color:'+(getTheme.color)+';'}}" class="data-v-12733f48">{{"¥"+(selectAttr?attr_price:goods.price)}}</text></view></view><view data-event-opts="{{[['tap',[['add',['$event']]]]]}}" class="box-grow-1 u-add-btn main-center cross-center data-v-12733f48" style="{{'background:'+(getTheme.background_gradient_btn)+';'}}" bindtap="__e">加入购物车</view></view></view></u-attr></block><block wx:if="{{recommendDialog}}"><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="bg data-v-12733f48" bindtap="__e"><view class="dialog data-v-12733f48" animation="{{animationData}}" data-event-opts="{{[['tap',[['',['$event']]]]]}}" catchtap="__e"><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" hidden="{{!(showOther)}}" class="end-close main-center cross-center data-v-12733f48" bindtap="__e"><image src="/static/image/icon/icon-close.png" class="data-v-12733f48"></image></view><view class="end-title data-v-12733f48">当前团购已结束</view><view class="end-recommend main-center cross-center data-v-12733f48"><view class="end-line data-v-12733f48"></view><view class="data-v-12733f48">为您推荐</view><view class="end-line data-v-12733f48"></view></view><view class="end-sec-title data-v-12733f48">{{"以下"+recommend.count+"个商品正在团购"}}</view><view class="main-center recommend-goods data-v-12733f48"><block wx:for="{{recommend.goods_list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{index<3}}"><image src="{{item.cover_pic}}" class="data-v-12733f48"></image></block></block></view><view data-event-opts="{{[['tap',[['toActivity',['$event']]]]]}}" hidden="{{!(showOther)}}" class="to-activity data-v-12733f48" style="{{'background-color:'+(getTheme.background)+';'}}" bindtap="__e">去看看</view></view></view></block><view class="data-v-12733f48"><app-share-qr-code vue-id="{{('3bf3a7ac-4')+','+('3bf3a7ac-1')}}" posterUrl="{{'/plugins/community/poster/poster?activity_id='+id+'&middleman_id='+middleman.user_id}}" hasPosterNav="{{showShare}}" url="{{poster}}" title="生成活动海报" value="{{showShare}}" data-event-opts="{{[['^share',[['hShareAppMessage']]],['^input',[['__set_model',['','showShare','$event',[]]]]]]}}" bind:share="__e" bind:input="__e" class="data-v-12733f48" bind:__l="__l"></app-share-qr-code></view></scroll-view><block wx:if="{{showClose}}"><app-close vue-id="{{('3bf3a7ac-5')+','+('3bf3a7ac-1')}}" toBack="{{true}}" data-event-opts="{{[['^update',[['getMall']]]]}}" bind:update="__e" class="data-v-12733f48" bind:__l="__l"></app-close></block></app-layout>
|