You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
13 KiB

<block wx:if="{{orderInfo.coach_id}}"><view class="order-pages"><block wx:if="{{configInfo.plugAuth.store&&orderInfo.is_store==1}}"><view class="mt-lg ml-lg mr-lg fill-base radius-16"><view class="flex-between pd-lg"><view class="f-title c-title text-bold">服务方式</view><view class="flex-center"><block wx:for="{{serviceTypeList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toChangeItem',[index,3]]]]]}}" class="{{['flex-center','service-type-item','c-caption',[(index!=0)?'ml-lg':'']]}}" style="{{'background:'+(serviceTypeInd==index?'linear-gradient(68deg, '+primaryColor+', '+subColor+')':'')+';'+('color:'+(serviceTypeInd==index?'#fff':'')+';')}}" catchtap="__e">{{''+item.title+''}}</view></block></view></view></view></block><block wx:if="{{$root.g0}}"><view><block wx:if="{{serviceTypeList[serviceTypeInd].id===1}}"><block><view class="store-info mt-md ml-lg mr-lg pd-lg fill-base radius-16"><view class="f-mini-title c-title text-bold pb-md">{{''+orderInfo.store_info.title+''}}</view><view class="flex-between"><view class="flex-y-center" style="color:#303030;"><view class="iconfont icondizhi1 mr-sm _i"></view><view class="c-title flex-1 mr-md"><label class="_span">{{orderInfo.store_info.address||'暂未设置门店地址'}}</label><block wx:if="{{orderInfo.store_info.address}}"><label data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="copy-btn span radius-5 f-icontext ml-sm _span" style="{{'color:'+(primaryColor)+';'+('border-color:'+(primaryColor)+';')}}" catchtap="__e">复制</label></block></view></view><view class="flex-center"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="item-icon rel flex-center radius-16" catchtap="__e"><view class="item-icon radius-16 abs" style="{{'background:'+(primaryColor)+';'}}"></view><view class="iconfont icondadianhua_1 _i" style="{{'color:'+(primaryColor)+';'}}"></view></view><block wx:if="{{orderInfo.store_info.address}}"><view data-event-opts="{{[['tap',[['toMap',['$event']]]]]}}" class="item-icon rel flex-center radius-16 ml-md" catchtap="__e"><view class="item-icon radius-16 abs" style="{{'background:'+(primaryColor)+';'}}"></view><view class="iconfont icondizhi_1 _i" style="{{'color:'+(primaryColor)+';'}}"></view></view></block></view></view></view><view class="mt-md ml-lg mr-lg pl-lg pr-lg fill-base radius-16"><view class="flex-between b-1px-b"><view class="item-text flex-y-center"><view class="iconfont icon-required c-warning _i"></view>姓名</view><input class="item-input flex-1" type="text" maxlength="20" placeholder="{{rule[0].errorMsg}}" data-event-opts="{{[['input',[['__set_model',['$0','user_name','$event',[]],['form']]]]]}}" value="{{form.user_name}}" bindinput="__e"/></view><view class="flex-between"><view class="item-text flex-y-center"><view class="iconfont icon-required c-warning _i"></view>手机号</view><input class="item-input flex-1" type="text" placeholder="{{rule[1].errorMsg}}" data-event-opts="{{[['input',[['__set_model',['$0','user_phone','$event',[]],['form']]]]]}}" value="{{form.user_phone}}" bindinput="__e"/></view></view></block></block><block wx:if="{{serviceTypeList[serviceTypeInd].id===0}}"><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="address-info flex-warp mt-md ml-lg mr-lg pd-lg fill-base radius-16" catchtap="__e"><view class="address-icon flex-center c-base radius" style="{{'background:'+('linear-gradient(to right, '+subColor+', '+primaryColor+')')+';'}}"><view class="iconfont iconjuli _i"></view></view><view class="flex-1 flex-between ml-md"><view class="max-500"><block wx:if="{{orderInfo.address_info.id}}"><block><view class="flex-y-baseline username c-title text-bold">{{''+orderInfo.address_info.user_name+''}}<view class="ml-md f-desc c-caption">{{orderInfo.address_info.mobile}}</view></view><view class="f-desc c-title ellipsis">{{''+(orderInfo.address_info.address+' '+orderInfo.address_info.address_info)+''}}</view></block></block><block wx:else><block><view class="username c-title text-bold">请选择地址</view></block></block></view><view class="iconfont icon-right _i"></view></view></view></block><view class="mt-md ml-lg mr-lg pl-lg pr-lg fill-base radius-16"><view data-event-opts="{{[['tap',[['toShowTime',['$event']]]]]}}" class="flex-between pt-lg pb-lg" catchtap="__e"><view class="f-title c-title text-bold">服务时间</view><view class="flex-y-center f-paragraph c-caption ml-sm"><view class="c-caption mr-sm">{{send_info.time||'请选择预约时间'}}</view><view class="iconfont icon-right _i"></view></view></view><block wx:if="{{serviceTypeList[serviceTypeInd].id===0}}"><view class="flex-between pt-lg pb-lg b-1px-t"><view class="f-title c-title text-bold">出行方式</view><view class="flex-center"><block wx:for="{{carTypeList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toChangeItem',[index]]]]]}}" hidden="{{!(item.id==0?isBus==1:true)}}" class="{{['flex-y-center',[(index!=0)?'ml-lg':'']]}}" style="{{'color:'+(carTypeInd==index?primaryColor:'')+';'}}" catchtap="__e"><view class="{{['iconfont','icon-xuanze','mr-sm','_i',[(carTypeInd==index)?'icon-radio-fill':'']]}}"></view>{{item.title+''}}</view></block></view></view></block></view><view class="mt-md ml-lg mr-lg fill-base radius-16"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['list-item','flex-warp','pd-lg',[(index!=0)?'b-1px-t':'']]}}"><image class="item-img radius-16" mode="aspectFill" src="{{item.$orig.cover}}"></image><view class="flex-1 ml-md"><view class="f-title c-title text-bold ellipsis">{{item.$orig.title}}</view><view class="flex-between"><view class="flex-y-center f-desc c-caption"><view class="f-title c-warning mr-sm">{{"¥"+item.$orig.price}}</view>{{"/ "+item.$orig.time_long+'分钟'}}</view><view><block wx:if="{{item.$orig.material_price*1>0}}"><view class="f-caption c-caption">{{'物料费:¥'+item.$orig.material_price}}</view></block></view></view><view class="flex-between"><view class="f-caption c-caption mt-sm mb-sm ellipsis" style="max-width:300rpx;">{{'服务'+item.m0+":"+(orderInfo.coach_info?orderInfo.coach_info.coach_name:'-')+''}}</view><view class="flex-warp"><button data-event-opts="{{[['tap',[['changeNum',[-1,index]]]]]}}" class="reduce" style="{{'border-color:'+(primaryColor)+';'+('color:'+(primaryColor)+';')}}" catchtap="__e"><view class="iconfont icon-jian-bold _i"></view></button><button class="addreduce clear-btn">{{item.$orig.num||0}}</button><button data-event-opts="{{[['tap',[['changeNum',[1,index]]]]]}}" class="add" style="{{'background:'+(primaryColor)+';'+('border-color:'+(primaryColor)+';')}}" catchtap="__e"><view class="iconfont icon-jia-bold _i"></view></button></view></view></view></view></block></view><view class="mt-md ml-lg mr-lg pl-lg pr-lg fill-base radius-16"><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="flex-between pt-lg pb-lg b-1px-b" catchtap="__e"><view class="f-title c-title text-bold">卡券优惠</view><view class="flex-y-center f-paragraph c-caption ml-sm"><view class="c-warning mr-sm">{{''+(orderInfo.coupon_id?'-¥'+orderInfo.discount:orderInfo.canUseCoupon+'张可用')+''}}</view><view class="iconfont icon-right _i"></view></view></view><block wx:if="{{orderInfo.material_price*1>0}}"><view class="{{['flex-between','pt-lg','pb-lg',[(carTypeList[carTypeInd].id===1)?'b-1px-b':'']]}}"><view class="f-title c-title text-bold">物料费</view><view class="f-paragraph c-caption c-warning">{{"¥"+orderInfo.material_price}}</view></view></block><block wx:if="{{serviceTypeList[serviceTypeInd].id===0&&carTypeList[carTypeInd].id===1}}"><block><view class="flex-between pt-lg pb-lg"><view class="f-title c-title text-bold">往返车费</view><view class="f-paragraph c-caption c-warning">{{"¥"+orderInfo.car_price}}</view></view><view class="pl-lg pr-lg pb-lg f-caption c-caption">{{'全程共'+orderInfo.distance+",出租出行"+orderInfo.car_config.start_distance+"公里内,起步"+orderInfo.car_config.start_price+"元。里程计价:"+orderInfo.car_config.distance_price+'元/公里'}}</view></block></block></view><view class="mt-md ml-lg mr-lg pd-lg fill-base radius-16"><view class="flex-between pb-lg"><view class="flex-y-baseline"><view class="f-title c-title text-bold">订单备注</view><view class="f-paragraph c-caption ml-sm">(选填)</view></view></view><view class="f-caption c-caption fill-body radius-16"><textarea class="item-textarea f-paragraph pd-lg" placeholder-class="f-paragraph" maxlength="100" placeholder="输入订单备注" data-event-opts="{{[['input',[['__set_model',['$0','text','$event',[]],['form']]]]]}}" value="{{form.text}}" bindinput="__e"></textarea><view class="text-right pb-lg pr-lg">{{($root.g1>100?100:$root.g2)+'/100'}}</view></view></view><view class="mt-md ml-lg mr-lg fill-base radius-16"><block wx:for="{{payList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toChangeItem',[index,2]]]]]}}" class="{{['flex-between','pt-lg','pb-lg','ml-lg','mr-lg',[(index!=0)?'b-1px-t':'']]}}" catchtap="__e"><view class="flex-y-center f-title c-title"><view class="{{['iconfont','mr-md','_i',item.icon]}}" style="{{'color:'+(item.id==1?primaryColor:'')+';'+('font-size:'+('50rpx')+';')}}"></view>{{''+item.title+''}}<block wx:if="{{item.id==2}}"><view class="f-paragraph c-caption ml-md">{{"余额"+(balance||0)+"元"}}</view></block></view><view class="flex-y-center c-caption" style="{{'color:'+(payInd==index?primaryColor:'')+';'}}"><view class="{{['pay-icon','iconfont','icon-xuanze','mr-sm','_i',[(item.is_disabled||payInd==index)?'icon-radio-fill':'']]}}"></view></view></view></block></view><block wx:if="{{$root.g3}}"><view data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" class="mt-md ml-lg mr-lg pd-lg fill-base f-paragraph c-title flex-y-center radius-16" catchtap="__e"><view class="{{['iconfont','mr-sm','_i',isAgree?'icon-xuanze-fill':'icon-xuanze']}}" style="{{'color:'+(isAgree?primaryColor:'')+';'}}"></view>我已阅读并同意<view data-event-opts="{{[['tap',[['e5',['$event']]]]]}}" style="{{'color:'+(primaryColor)+';'}}" catchtap="__e">《平台交易规则》</view></view></block><view class="space-max-footer"></view><view class="pay-info fix flex-between text-right pl-lg pr-lg fill-base"><view class="flex-y-center f-paragraph c-title text-bold ml-sm mr-lg">合计:<view class="flex-y-baseline f-title c-warning">{{"¥"+orderInfo.pay_price}}</view></view><auth style="width:182rpx;" vue-id="00096cce-1" needAuth="{{userInfo&&(!userInfo.phone||!userInfo.nickName)}}" must="{{true}}" type="{{!userInfo.phone?'phone':'userInfo'}}" data-event-opts="{{[['^go',[['toPay']]]]}}" bind:go="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="pay-btn flex-center f-paragraph c-base radius" style="{{'background:'+('linear-gradient(68deg, '+primaryColor+', '+subColor+')')+';'}}">立即支付</view></auth></view></view></block><block wx:else><abnor vue-id="00096cce-2" tip="{{[{text:'该服务已下架~',color:0}]}}" button="{{[{text:'去看看其他服务',type:'confirm'}]}}" btnSize data-event-opts="{{[['^confirm',[['e6']]]]}}" bind:confirm="__e" bind:__l="__l"></abnor></block><uni-popup class="vue-ref" vue-id="00096cce-3" type="center" maskClick="{{false}}" data-ref="show_rule_item" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-rule"><view class="fill-base pd-lg radius-26"><view class="f-title c-title text-bold flex-center pd-lg">平台交易规则</view><scroll-view class="rule-text" scroll-y="{{true}}" data-event-opts="{{[['touchmove',[['',['$event']]]]]}}" catchtouchmove="__e"><parser vue-id="{{('00096cce-4')+','+('00096cce-3')}}" html="{{configInfo.trading_rules}}" show-with-animation="{{true}}" lazy-load="{{true}}" data-event-opts="{{[['^linkpress',[['linkpress']]]]}}" bind:linkpress="__e" bind:__l="__l" vue-slots="{{['default']}}">加载中...</parser></scroll-view></view><view data-event-opts="{{[['tap',[['e7',['$event']]]]]}}" class="flex-center pd-lg" bindtap="__e"><view class="iconfont icon-close c-base _i"></view></view></view></uni-popup><uni-popup class="vue-ref" vue-id="00096cce-5" type="bottom" data-ref="show_time_item" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-time fill-base"><tab vue-id="{{('00096cce-6')+','+('00096cce-5')}}" list="{{tabList}}" activeIndex="{{activeIndex*1}}" activeColor="{{primaryColor}}" height="100rpx" data-event-opts="{{[['^change',[['handerTabChange']]]]}}" bind:change="__e" bind:__l="__l"></tab><scroll-view class="time-list" scroll-y="{{true}}" data-event-opts="{{[['touchmove',[['',['$event']]]]]}}" catchtouchmove="__e"><view class="flex-warp"><block wx:for="{{timeList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toChooseTime',[index]]]]]}}" class="{{['time-item','flex-center','flex-column',[(item.status&&send_info.time_str!=item.time_str)?'can-choose':''],[(send_info.time_str==item.time_str)?'cur-check':'']]}}" style="{{'background:'+(send_info.time_str==item.time_str?primaryColor:'')+';'}}" catchtap="__e"><view class="f-title">{{item.time_text}}</view><view class="f-caption">{{item.status?'可预约':'不可预约'}}</view></view></block></view></scroll-view><view class="space-safe"></view></view></uni-popup></view></block>