| 1 |
- <view><view class="order-type"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="{{(service_type==2?'type-item active':'type-item')}}" bindtap="__e">代提</view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="{{(service_type==1?'type-item active':'type-item')}}" bindtap="__e">自提</view></view><block tt:if="{{goodsInfo}}"><view class="order-content"><block tt:if="{{storeInfo&&service_type==2}}"><view class="address"><block tt:if="{{addressInfo}}"><view data-event-opts="{{[['tap',[['toAddress',['$event']]]]]}}" class="addressInfo" bindtap="__e"><view class="empty-data"><view class="icon"><image src="/static/image/location.png"></image></view><view class="left"><view class="region">{{addressInfo.region}}</view><view class="address">{{addressInfo.address}}</view><view class="contact-name">{{addressInfo.username+''}}<view class="mobile">{{addressInfo.mobile}}</view></view></view><view class="right"><image src="/static/image/right.png"></image></view></view></view></block><block tt:else><view data-event-opts="{{[['tap',[['toAddress',['$event']]]]]}}" class="empty-address" bindtap="__e"><view class="name">完善会员信息</view><view class="desc">请先完善会员信息后再进行确认兑换</view><view class="btn-group"><button class="btn">去完善</button></view></view></block></view></block><block tt:if="{{storeInfo&&service_type==1}}"><view data-event-opts="{{[['tap',[['selectTime',[1]]]]]}}" class="order-time" bindtap="__e"><view class="time-icon"><image src="/static/image/time.png"></image></view><view class="title"><view class="p">预约到店时间</view><block tt:if="{{!timeStr}}"><view class="desc">请选择预计到店服务的时间</view></block></view><view class="msg">{{''+(timeStr?timeStr:'请选择')+''}}<view class="right"><image src="/static/image/right.png"></image></view></view></view></block><view class="goods"><view class="goods-info"><view class="image"><image src="{{goodsInfo.goods.product_img}}"></image></view><view class="info"><view class="name">{{goodsInfo.product_name}}</view><view class="desc">{{"x "+goodsInfo.count}}</view><view class="desc">{{"有效期至"+goodsInfo.expire_at}}</view></view><view class="price">{{"¥"+goodsInfo.order_amount}}</view></view></view><block tt:if="{{goodsSku.length>0}}"><view class="goods_skus"><block tt:for="{{goodsSku}}" tt:for-item="item" tt:for-index="indx" tt:key="indx"><view class="sku_box"><view class="sku_name">{{''+item.name+"("+item.list.length+"选"+item.num+")"}}<text>点击图片可放大查看</text><view data-event-opts="{{[['tap',[['clearSku',[indx]]]]]}}" class="right" bindtap="__e">清除</view></view><view class="sku_list"><block tt:for="{{item.list}}" tt:for-item="itm" tt:for-index="iddx" tt:key="iddx"><view class="{{(itm.check?'sku_item':'sku_item active')}}"><block tt:if="{{itm.img}}"><view data-event-opts="{{[['tap',[['viewImg',['$0'],[[['goodsSku','',indx],['list','',iddx,'img']]]]]]]}}" class="img" bindtap="__e"><image src="{{itm.img}}"></image></view></block><view data-event-opts="{{[['tap',[['skuCheck',['$0','$1',indx,iddx],[[['goodsSku','',indx,'name']],[['goodsSku','',indx,'num']]]]]]]}}" class="name" bindtap="__e">{{itm.name}}</view></view></block></view></view></block></view></block><view data-event-opts="{{[['tap',[['toDetail',['$event']]]]]}}" class="location" bindtap="__e"><view class="left"><view class="name">{{poi_name}}</view><view class="desc"><image src="/static/image/location.png"></image>{{"距您"+juli+"公里"}}</view></view><view class="right"><image src="/static/image/right.png"></image></view></view><view class="order-msg"><view class="title">订单备注</view><view class="msg"><textarea class="textarea" placeholder="请输入" rows="{{5}}" data-event-opts="{{[['input',[['__set_model',['','msg','$event',[]]]]]]}}" value="{{msg}}" bindinput="__e"></textarea></view></view></view></block><block tt:else><view class="goods-info"><u-skeleton vue-id="7fe26462-1" rows="3" title="{{true}}" loading="{{true}}" bind:__l="__l"></u-skeleton></view></block><view class="line"></view><view class="flx-footer"><block tt:if="{{goodsInfo}}"><view class="footer-btn"><view class="price"><text class="desc">{{"已优惠:¥"+goodsInfo.order_amount+","}}</text>合计<text class="money">¥0.00</text></view><view class="btn-group"><button class="btn" disabled="{{disabled}}" data-event-opts="{{[['tap',[['submitOrder',['$event']]]]]}}" bindtap="__e">{{disabled?'处理中...':'确认兑换'}}</button></view></view></block><view class="footer-safe"></view></view><uni-popup class="vue-ref" vue-id="7fe26462-2" type="bottom" borderRadius="10px 10px 0 0" backgroundColor="#F8F8F8" data-ref="timepopup" bind:__l="__l" vue-slots="{{['default']}}"><view class="time-select"><view class="title">选择时间<view data-event-opts="{{[['tap',[['selectTime',[2]]]]]}}" class="close" bindtap="__e"><image src="/static/image/round_close.png"></image></view></view></view><view class="time-body"><view class="time-left"><block tt:for="{{timeData}}" tt:for-item="item" tt:for-index="index"><view data-event-opts="{{[['tap',[['timeCheck',[index]]]]]}}" class="{{(timeIndex==index?'time-left-item active':'time-left-item')}}" bindtap="__e"><view class="name">{{item.day}}</view><view class="desc">{{item.week}}</view></view></block></view><view class="time-right"><block tt:for="{{timeChildren}}" tt:for-item="item" tt:for-index="index"><view data-event-opts="{{[['tap',[['childCheck',[index]]]]]}}" class="{{(childIndex==index?'time-right-item active':'time-right-item')}}" bindtap="__e"><view class="name">{{item.display}}</view></view></block></view></view><view class="time-btn"><button data-event-opts="{{[['tap',[['checkTimeEnd',['$event']]]]]}}" class="btn" bindtap="__e">确认选择</button></view></uni-popup></view>
|