1 |
- <app-layout vue-id="5f268c60-1" class="data-v-3f296f28" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{previewData}}"><view class="page data-v-3f296f28"><block wx:if="{{previewData.show_address!==false}}"><block wx:if="{{previewData.allZiti}}"><view class="address data-v-3f296f28"></view></block><block wx:else><view data-event-opts="{{[['tap',[['navigateAddress',['$event']]]]]}}" class="address data-v-3f296f28" bindtap="__e"><block wx:if="{{!previewData.is_match}}"><app-order-submit-row vue-id="{{('5f268c60-2')+','+('5f268c60-1')}}" class="data-v-3f296f28" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{previewData.address}}"><view class="data-v-3f296f28"><view class="felx-three data-v-3f296f28"><view class="box-grow-2 data-v-3f296f28">{{'参训人: '+$root.m0+''}}</view><view class="box-grow-3 data-v-3f296f28">{{'性别: '+($root.m1=='暂无数据'?'暂无数据':previewData.address.sex==0?'未知':previewData.address.sex==1?'男':'女')+''}}</view><view class="box-grow-4 data-v-3f296f28">{{'联系电话: '+$root.m2+''}}</view></view><view class="felx-three data-v-3f296f28"><view class="box-grow-2 data-v-3f296f28">{{'年龄: '+$root.m3+''}}</view><view class="box-grow-3 data-v-3f296f28">{{'体重: '+$root.m4+''}}</view><view class="box-grow-4 data-v-3f296f28">{{'身高: '+$root.m5+''}}</view></view><view class="felx-three data-v-3f296f28"><view class="box-grow-5 data-v-3f296f28">{{'身份证号码:'+$root.m6+''}}</view></view></view></block><block wx:else><view class="data-v-3f296f28">请选择报名信息</view></block><block wx:if="{{previewData.has_ziti}}"><view class="{{['ziti-tip data-v-3f296f28',theme+'-color']}}">(报名信息中的手机号码将用于联系信息)</view></block></app-order-submit-row></block></view></block></block><view class="mch-list data-v-3f296f28"><block wx:for="{{previewData.mch_list}}" wx:for-item="mch" wx:for-index="mchIndex" wx:key="mchIndex"><view class="mch-item data-v-3f296f28"><block wx:if="{{!mch.pick_up_enable}}"><view class="pick-up cross-center data-v-3f296f28"><view class="data-v-3f296f28">{{"以下商品满"+mch.pick_up_price+"元起送"}}</view></view></block><block wx:if="{{mch.delivery.send_type=='offline'}}"><view class="store data-v-3f296f28"><block wx:if="{{mch.no_store&&mch.no_store===true}}"><app-order-submit-row vue-id="{{('5f268c60-3-'+mchIndex)+','+('5f268c60-1')}}" show-nav="{{false}}" class="data-v-3f296f28" bind:__l="__l" vue-slots="{{['default']}}">暂无门店,请选择其他配送方式</app-order-submit-row></block><block wx:else><app-order-submit-row vue-id="{{('5f268c60-4-'+mchIndex)+','+('5f268c60-1')}}" show-nav="{{mch.mch.id==0}}" data-event-opts="{{[['^click',[['navigateStore',[mchIndex]]]]]}}" bind:click="__e" class="data-v-3f296f28" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{mch.store}}"><view class="dir-left-nowrap mb-12 data-v-3f296f28"><view class="box-grow-1 data-v-3f296f28">{{mch.store.name}}</view><view class="box-grow-0 location data-v-3f296f28"><image class="icon data-v-3f296f28" src="/static/image/icon/location.png"></image><block wx:if="{{getLocationFail}}"><view class="inline-block data-v-3f296f28"><view class="inline-block data-v-3f296f28">定位失败</view><view data-event-opts="{{[['tap',[['openLocationSetting',['$event']]]]]}}" class="inline-block open-location-setting data-v-3f296f28" catchtap="__e"><view class="{{['open-location-btn data-v-3f296f28',theme+'-color',theme+'-border']}}">获取位置</view></view></view></block><block wx:else><view class="inline-block data-v-3f296f28">{{"距离您"+mch.store.distance}}</view></block></view></view><view class="store-address data-v-3f296f28">{{mch.store.address}}</view></block><block wx:else><view class="data-v-3f296f28">请选择场地</view></block></app-order-submit-row></block></view></block><block wx:else><block wx:if="{{mch.delivery.send_type=='city'&&mch.city}}"><view class="city data-v-3f296f28"><block wx:if="{{mch.city.error}}"><view class="dir-left-nowrap cross-center data-v-3f296f28"><view class="box-grow-1 t-omit error data-v-3f296f28">{{mch.city.error}}</view><view data-event-opts="{{[['tap',[['jump',[mchIndex]]]]]}}" class="box-grow-0 btn data-v-3f296f28" bindtap="__e">查看配送范围</view></view></block><block wx:else><view class="t-omit data-v-3f296f28">{{"发货地址:"+mch.city.address}}</view><block wx:if="{{mch.city.explain}}"><view class="t-omit data-v-3f296f28">{{mch.city.explain}}</view></block><view class="dir-left-nowrap cross-center data-v-3f296f28"><view class="box-grow-1 t-omit error data-v-3f296f28" style="color:#353535;">该地址在配送范围内</view><view data-event-opts="{{[['tap',[['jump',[mchIndex]]]]]}}" class="box-grow-0 btn data-v-3f296f28" bindtap="__e">查看配送范围</view></view></block></view></block></block><app-submit-goods vue-id="{{('5f268c60-5-'+mchIndex)+','+('5f268c60-1')}}" index="{{mchIndex}}" plugin="{{plugin}}" list="{{mch}}" data-event-opts="{{[['^updateList',[['updateList']]]]}}" bind:updateList="__e" class="data-v-3f296f28" bind:__l="__l"></app-submit-goods><block wx:if="{{mch.insert_rows&&mch.insert_rows.length}}"><block wx:for="{{mch.insert_rows}}" wx:for-item="insertRow" wx:for-index="insertRowIndex" wx:key="insertRowIndex"><view class="data-v-3f296f28"><app-order-submit-row vue-id="{{('5f268c60-6-'+mchIndex+'-'+insertRowIndex)+','+('5f268c60-1')}}" show-nav="{{false}}" class="data-v-3f296f28" bind:__l="__l" vue-slots="{{['default']}}"><view class="dir-left-nowrap data-v-3f296f28"><view class="box-grow-1 data-v-3f296f28">{{insertRow.title}}</view><view class="{{['box-grow-0 data-v-3f296f28',theme+'-color']}}">{{insertRow.value}}</view></view></app-order-submit-row></view></block></block><block wx:if="{{mch.coupon&&mch.coupon.enabled}}"><view data-event-opts="{{[['tap',[['navigateCoupon',[mchIndex]]]]]}}" class="coupon data-v-3f296f28" bindtap="__e"><app-order-submit-row vue-id="{{('5f268c60-7-'+mchIndex)+','+('5f268c60-1')}}" class="data-v-3f296f28" bind:__l="__l" vue-slots="{{['default']}}"><view class="dir-left-nowrap data-v-3f296f28"><view class="box-grow-1 data-v-3f296f28">优惠券</view><block wx:if="{{mch.coupon.use}}"><view class="{{['box-grow-0 data-v-3f296f28',theme+'-color']}}">{{'已优惠'+mch.coupon.coupon_discount+'元'}}</view></block><block wx:else><view class="box-grow-0 tip data-v-3f296f28">选择优惠券</view></block></view></app-order-submit-row></view></block><block wx:if="{{mch.integral&&mch.integral.can_use}}"><view class="integral data-v-3f296f28"><app-order-submit-row vue-id="{{('5f268c60-8-'+mchIndex)+','+('5f268c60-1')}}" show-nav="{{false}}" class="data-v-3f296f28" bind:__l="__l" vue-slots="{{['default']}}"><view class="dir-left-nowrap data-v-3f296f28"><view class="box-grow-1 dir-left-nowrap data-v-3f296f28"><view class="data-v-3f296f28">{{'使用\n\t\t\t\t\t\t\t\t\t\t'+mch.integral.use_num+'\n\t\t\t\t\t\t\t\t\t\t积分抵扣'}}<text class="{{['data-v-3f296f28',theme+'-color']}}">{{mch.integral.deduction_price}}</text>元</view><view data-event-opts="{{[['tap',[['showIntegralTip',['$event']]]]]}}" class="tip-btn data-v-3f296f28" bindtap="__e"><image class="icon data-v-3f296f28" src="/static/image/icon/warning.png"></image></view></view><view class="box-grow-0 data-v-3f296f28"><app-radio vue-id="{{('5f268c60-9-'+mchIndex)+','+('5f268c60-8-'+mchIndex)}}" type="round" value="{{mch.integral.use}}" theme="{{theme}}" data-event-opts="{{[['^input',[['changeIntegral',[mchIndex]]]]]}}" bind:input="__e" class="data-v-3f296f28" bind:__l="__l"></app-radio></view></view></app-order-submit-row></view></block><block wx:if="{{mch.order_form&&mch.order_form.status=='1'}}"><view class="data-v-3f296f28"><app-diy-form vue-id="{{('5f268c60-10-'+mchIndex)+','+('5f268c60-1')}}" title="{{mch.order_form.name}}" list="{{mch.order_form.value}}" sign="{{mchIndex}}" label-position="top" show-scroll-btn="{{mch.order_form.show_scroll}}" data-event-opts="{{[['^input',[['handleOrderFormInput']]],['^validate',[['handleOrderFormValidate']]]]}}" bind:input="__e" bind:validate="__e" class="data-v-3f296f28" bind:__l="__l"></app-diy-form></view></block><block wx:else><block wx:if="{{mch.show_remark!==false&&mch.has_goods_form!==true}}"><view class="remark data-v-3f296f28"><app-input vue-id="{{('5f268c60-11-'+mchIndex)+','+('5f268c60-1')}}" placeholder="买家留言" height="100" value="{{mch.remark}}" data-event-opts="{{[['^input',[['__set_model',['$0','remark','$event',[]],[[['previewData.mch_list','',mchIndex]]]],['inputRemark',[mchIndex]]]]]}}" bind:input="__e" class="data-v-3f296f28" bind:__l="__l"></app-input></view></block></block><block wx:for="{{mch.goods_list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{mch.goods_list.length!=0}}"><view class="data-v-3f296f28"><block wx:if="{{item.form_batch.length!=0}}"><view class="data-v-3f296f28"><block wx:for="{{item.form_batch}}" wx:for-item="ite" wx:for-index="idx" wx:key="idx"><app-diy-form vue-id="{{('5f268c60-12-'+mchIndex+'-'+index+'-'+idx)+','+('5f268c60-1')}}" title="{{ite.name}}" list="{{ite.value}}" sign="{{mchIndex}}" label-position="top" data-event-opts="{{[['^input',[['handleOrderFormInput']]],['^validate',[['handleOrderFormValidate']]]]}}" bind:input="__e" bind:validate="__e" class="data-v-3f296f28" bind:__l="__l"></app-diy-form></block></view></block></view></block></block><block wx:if="{{mch.has_goods_form}}"><block wx:for="{{mch.goods_list}}" wx:for-item="goodsItem" wx:for-index="goodsIndex" wx:key="goodsIndex"><block wx:if="{{goodsItem.form&&!goodsItem.form.same_form}}"><view style="margin-bottom:20rpx;" class="data-v-3f296f28"><view style="padding:24rpx;color:#666666;" class="data-v-3f296f28">{{goodsItem.form.name}}</view><block wx:if="{{mch.diff_goods_form_count!==1}}"><view class="goods-list data-v-3f296f28"><block wx:for="{{mch.goods_list}}" wx:for-item="subGoodsItem" wx:for-index="subGoodsIndex" wx:key="subGoodsIndex"><block wx:if="{{subGoodsItem.form&&subGoodsItem.form.id==goodsItem.form.id}}"><view class="dir-left-nowrap goods-item data-v-3f296f28"><view class="box-grow-0 data-v-3f296f28"><image class="goods-image data-v-3f296f28" src="{{subGoodsItem.goods_attr.pic_url?subGoodsItem.goods_attr.pic_url:subGoodsItem.cover_pic}}"></image></view><view class="box-grow-1 data-v-3f296f28"><view class="goods-name data-v-3f296f28">{{subGoodsItem.name}}</view><view class="dir-left-wrap attr-list data-v-3f296f28"><block wx:for="{{subGoodsItem.attr_list}}" wx:for-item="attrItem" wx:for-index="attrIndex" wx:key="attrIndex"><view class="attr-item data-v-3f296f28">{{''+attrItem.attr_group_name+":"+attrItem.attr_name+''}}</view></block></view><view class="dir-left-nowrap data-v-3f296f28"><view class="box-grow-1 goods-num data-v-3f296f28"></view><view class="{{['box-grow-0 goods-price-info data-v-3f296f28',theme+'-color']}}"><view class="data-v-3f296f28"><block wx:for="{{subGoodsItem.custom_currency}}" wx:for-item="customCurrency" wx:for-index="customCurrencyIndex" wx:key="customCurrencyIndex"><text class="data-v-3f296f28">{{''+customCurrency+'+'}}</text></block><text class="goods-price-unit data-v-3f296f28">¥</text><text class="data-v-3f296f28">{{subGoodsItem.total_original_price}}</text></view><block wx:for="{{subGoodsItem.discounts}}" wx:for-item="discount" wx:for-index="discountIndex" wx:key="discountIndex"><view class="data-v-3f296f28">{{''+discount.name+": "+discount.value+''}}</view></block></view></view></view></view></block></block></view></block><app-diy-form vue-id="{{('5f268c60-13-'+mchIndex+'-'+goodsIndex)+','+('5f268c60-1')}}" list="{{goodsItem.form.value}}" sign="{{mchIndex+','+goodsIndex+','+goodsItem.form.id}}" data-event-opts="{{[['^input',[['handleGoodsFormInput']]],['^validate',[['handleGoodsFormValidate']]]]}}" bind:input="__e" bind:validate="__e" class="data-v-3f296f28" bind:__l="__l"></app-diy-form></view></block></block></block></view></block></view></view></block><view class="data-v-3f296f28"><block wx:if="{{previewData}}"><view class="submit-bar dir-left-nowrap data-v-3f296f28"><view class="{{['box-grow-1 cross-center order-info data-v-3f296f28',theme+'-color']}}"><view style="display:inline-block;" class="data-v-3f296f28">{{totalTitle+":"}}</view><block wx:for="{{previewData.custom_currency_all}}" wx:for-item="custom_currency" wx:for-index="__i0__" wx:key="*this"><view style="display:inline-block;" class="data-v-3f296f28">{{''+custom_currency+'+'}}</view></block><view style="display:inline-block;white-space:nowrap;" class="data-v-3f296f28">{{"¥"+previewData.total_price+''}}<view style="content:' ';display:inline-block;width:20rpx;" class="data-v-3f296f28"></view></view></view><block wx:if="{{previewData.address_enable&&previewData.price_enable}}"><view data-event-opts="{{[['tap',[['subscribe',['$event']]]]]}}" class="{{['submit-btn box-grow-0 cross-center data-v-3f296f28',theme+'-background',submitLock?'lock':'']}}" bindtap="__e"><view style="background-color:transparent;color:#ffffff;" class="data-v-3f296f28">提交</view></view></block><block wx:else><block wx:if="{{!previewData.address_enable}}"><view class="{{['submit-btn box-grow-0 cross-center disabled data-v-3f296f28',theme+'-background']}}"><view style="background-color:transparent;" class="data-v-3f296f28">该地区无货</view></view></block><block wx:else><view class="{{['submit-btn box-grow-0 cross-center disabled data-v-3f296f28',theme+'-background']}}"><view style="background-color:transparent;" class="data-v-3f296f28">未达起送要求</view></view></block></block></view></block></view></app-layout>
|