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
14 KiB

<block wx:if="{{detail.id}}"><view class="order-pages"><block wx:if="{{detail.pay_type==6}}"><view class="fix" style="top:-100%;left:-100%;"><min-countdown vue-id="1eb2a3bc-1" targetTime="{{detail.start_service_time_unix*1000}}" isPlay="{{true}}" data-event-opts="{{[['^end',[['toCountDownEnd',['$0'],['detail.id']]]]]}}" bind:end="__e" bind:__l="__l"></min-countdown></view></block><view class="item-child pd-lg fill-base f-paragraph c-base" style="{{'background:'+(primaryColor)+';'}}"><view class="text-bold">{{statusType[detail.pay_type]}}</view><block wx:if="{{detail.pay_type==1&&detail.end_time>0}}"><view class="f-caption mt-sm">请在<min-countdown vue-id="1eb2a3bc-2" targetTime="{{over_time_text}}" data-event-opts="{{[['^callback',[['countEnd']]]]}}" bind:callback="__e" bind:__l="__l"></min-countdown>内完成支付,逾期未支付,订单将自动取消</view></block><view class="space-lg"></view></view><view class="{{['menu-list','flex-warp','rel','ml-lg','mr-lg','pt-lg','pb-lg','pl-md','pr-md','fill-base','f-paragraph','c-caption','radius-16',[(detail.is_add||detail.store_id)?'add-bell':'']]}}"><view class="menu-line abs b-1px-b"></view><block wx:for="{{lineList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><block wx:if="{{item.icon}}"><view class="item-child flex-center flex-column f-icontext c-paragraph" style="{{'color:'+(detail.pay_type>item.pay_type-1?primaryColor:'')+';'}}"><view class="item-img fill-base flex-center mb-sm radius" style="{{'border-color:'+(detail.pay_type>item.pay_type-1?primaryColor:'')+';'}}"><view class="{{['iconfont','_i',item.icon]}}"></view></view><view class="ellipsis" style="max-width:100%;">{{item.title}}</view></view></block></block></block></view><view class="item-child mt-md ml-lg mr-lg pd-lg fill-base radius-16"><view class="flex-between pb-lg"><view class="f-paragraph c-title max-380 ellipsis">服务内容</view></view><block wx:for="{{$root.l0}}" wx:for-item="aitem" wx:for-index="aindex" wx:key="aindex"><view class="{{['flex-warp',[(aindex!=aitem.g0-1)?'mb-lg':'']]}}"><image class="avatar lg radius-16" mode="aspectFill" src="{{aitem.$orig.goods_cover}}"></image><view class="flex-1 ml-md"><view class="flex-between"><view class="{{['f-mini-title','c-title','text-bold','ellipsis',[(aitem.$orig.refund_num>0)?'max-300':''],[(aitem.$orig.refund_num==0)?'max-450':'']]}}">{{''+aitem.$orig.goods_name+''}}</view><block wx:if="{{aitem.$orig.refund_num>0}}"><view class="f-caption c-warning">{{"已退x"+aitem.$orig.refund_num}}</view></block></view><view class="f-caption c-caption mt-md">{{"服务时长:"+aitem.$orig.time_long+"分钟"}}</view><block wx:if="{{aitem.$orig.material_price*1>0}}"><view class="f-caption c-caption">{{"物料费:¥"+aitem.$orig.material_price+''}}</view></block><view class="flex-between"><view class="flex-y-baseline f-caption c-warning">¥<view class="f-title text-bold">{{''+aitem.$orig.price+''}}</view></view><view class="c-paragraph">{{"x"+aitem.$orig.num}}</view></view></view></view></block></view><block wx:if="{{detail.store_id}}"><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">{{''+detail.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">{{detail.store_info.address||'暂未设置门店地址'}}</label><block wx:if="{{detail.store_info.address}}"><label data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="copy-btn span f-icontext ml-sm radius-5 _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="{{detail.store_info.address}}"><view data-event-opts="{{[['tap',[['toMap',['store_info']]]]]}}" 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></block><view class="mt-md ml-lg mr-lg pd-lg fill-base f-paragraph c-caption radius-16"><view class="flex-between"><view>下单人</view><view class="flex-y-center"><view class="c-title max-350 ellipsis">{{detail.address_info.user_name}}</view><view data-event-opts="{{[['tap',[['toLabel',['$event']]]]]}}" class="ml-sm" style="{{'color:'+(primaryColor)+';'}}" catchtap="__e">查看标签</view></view></view><view data-event-opts="{{[['tap',[['toTel',['$event']]]]]}}" class="flex-between mt-md" bindtap="__e"><view>联系方式</view><view class="flex-y-center" style="{{'color:'+(primaryColor)+';'}}"><view class="iconfont iconbodadianhua mr-sm _i"></view><view>拨打电话</view></view></view><block wx:if="{{!detail.store_id}}"><view class="mt-md"><view>服务地址</view><view class="flex-center"><view class="c-title mt-sm flex-1 mr-md"><label class="_span">{{''+detail.address_info.address+detail.address_info.address_info}}</label><label data-event-opts="{{[['tap',[['toCopy',['$event']]]]]}}" class="copy-btn fill radius-5 f-icontext ml-sm _span" bindtap="__e">复制</label></view><view data-event-opts="{{[['tap',[['toMap',['address_info']]]]]}}" class="flex-center flex-column f-icontext" style="{{'color:'+(primaryColor)+';'}}" bindtap="__e"><view class="iconfont icon-dingwei _i" style="font-size:42rpx;"></view><view>立刻导航去</view></view></view></view></block><block wx:if="{{detail.text}}"><view class="mt-md"><view>订单备注</view><view class="c-title mt-sm">{{detail.text}}</view></view></block></view><view class="mt-md ml-lg mr-lg pd-lg fill-base f-paragraph c-caption radius-16"><view class="flex-between mt-md"><view>下单时间</view><view class="c-title">{{detail.create_time}}</view></view><view class="flex-between mt-md"><view>服务时间</view><view class="c-title">{{detail.start_time}}</view></view><view class="flex-between mt-md"><view>服务时长</view><view class="c-title">{{detail.time_long+"分钟"}}</view></view><block wx:if="{{!detail.is_add&&!detail.store_id}}"><block><view class="flex-between mt-md"><view>车费详情</view><view class="flex-y-center c-title">{{carType[detail.car_type]+''}}<block wx:if="{{detail.car_type==1}}"><view class="ml-md">{{"全程"+detail.distance}}</view></block></view></view><block wx:if="{{detail.car_type==1}}"><view class="flex-between mt-md"><view>出行费用</view><view class="c-warning">{{"出租车 ¥"+detail.car_price}}</view></view></block></block></block><view class="flex-between mt-md"><view>服务项目费用</view><view class="c-warning">{{"¥"+detail.init_service_price}}</view></view><block wx:if="{{detail.material_price*1>0}}"><view class="flex-between mt-md"><view>物料费</view><view class="c-warning">{{"¥"+detail.material_price}}</view></view></block><block wx:if="{{detail.discount*1>0}}"><view class="flex-between mt-md"><view>卡券优惠</view><view class="c-warning">{{"-¥"+detail.discount}}</view></view></block><view class="flex-between mt-md"><view>支付方式</view><view class="c-title">{{payType[detail.pay_model]}}</view></view><view class="flex-between mt-md pt-md b-1px-t"><view></view><view class="flex-y-baseline c-title">总计:<view class="c-warning">{{"¥"+detail.pay_price}}</view></view></view></view><view class="mt-md ml-lg mr-lg pd-lg fill-base f-paragraph c-caption radius-16"><view class="flex-y-center pb-lg flex-warp"><view class="flex-between c-title">订单编号:</view><view class="flex-between flex-1"><view class="c-title">{{detail.order_code}}</view><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="copy-btn flex-center text-center f-icontext radius-5" style="{{'border-color:'+(primaryColor)+';'+('color:'+(primaryColor)+';')}}" catchtap="__e">复制</view></view></view><timeline vue-id="1eb2a3bc-3" list="{{lineList}}" info="{{detail}}" bind:__l="__l"></timeline></view><view class="space-max-footer"></view><block wx:if="{{$root.g1}}"><view class="footer-info fix fill-base"><view class="flex-between pd-lg"><view></view><view class="flex-center f-desc c-title"><block wx:if="{{detail.pay_type==2}}"><block><button data-event-opts="{{[['tap',[['toTel',['$event']]]]]}}" class="clear-btn order" catchtap="__e">联系客户</button><button data-event-opts="{{[['tap',[['toRefuse',['$event']]]]]}}" class="clear-btn order" catchtap="__e">拒绝接单</button><button data-event-opts="{{[['tap',[['toConfirm',[3]]]]]}}" class="clear-btn order" style="{{'color:'+('#fff')+';'+('background:'+(primaryColor)+';')+('border-color:'+(primaryColor)+';')}}" catchtap="__e">确认接单</button></block></block><block wx:if="{{$root.g2}}"><block><button data-event-opts="{{[['tap',[['toTel',['$event']]]]]}}" class="clear-btn order" catchtap="__e">联系客户</button><button data-event-opts="{{[['tap',[['toConfirm',[detail.is_add||detail.store_id?6:detail.pay_type*1+1]]]]]}}" class="clear-btn order" style="{{'color:'+('#fff')+';'+('background:'+(primaryColor)+';')+('border-color:'+(primaryColor)+';')}}" catchtap="__e">{{detail.is_add||detail.store_id?'开始服务':detail.pay_type==3?'已出发':detail.pay_type==4?'拍照确认到达':'开始服务'}}</button></block></block><block wx:if="{{detail.pay_type==6}}"><block><button data-event-opts="{{[['tap',[['toTel',['$event']]]]]}}" class="clear-btn order" catchtap="__e">联系客户</button><button data-event-opts="{{[['tap',[['toConfirm',[7]]]]]}}" class="clear-btn order" style="{{'color:'+('#fff')+';'+('background:'+(primaryColor)+';')+('border-color:'+(primaryColor)+';')}}" catchtap="__e">拍照完成服务</button></block></block><block wx:if="{{detail.pay_type==7}}"><block><button data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="clear-btn order" style="{{'color:'+('#fff')+';'+('background:'+(primaryColor)+';')+('border-color:'+(primaryColor)+';')}}" catchtap="__e">评价客户</button></block></block></view></view><view class="space-safe"></view></view></block><uni-popup class="vue-ref" vue-id="1eb2a3bc-4" type="bottom" custom="{{true}}" data-ref="label_item" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-label fill-base pd-lg rel"><view data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" class="iconfont iconguanbi abs _i" catchtap="__e"></view><view class="pb-md flex-center f-title c-title text-bold">客户标签</view><view class="space-lg"></view><view class="space-lg"></view><scroll-view style="width:100%;max-height:50vh;" scroll-y="{{true}}"><view class="list-item f-caption"><block wx:if="{{$root.g3==0}}"><view class="pb-lg f-paragraph">暂无评价标签</view></block><block wx:for="{{check_label}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="list-child cur radius rel"><view class="bg-item radius abs" style="{{'background:'+(primaryColor)+';'+('border-color:'+(primaryColor)+';')}}"></view><view class="tag-item flex-center" style="{{'color:'+(primaryColor)+';'}}">{{item.title}}</view></view></block></view></scroll-view><view class="space-safe"></view></view></uni-popup><uni-popup class="vue-ref" vue-id="1eb2a3bc-5" type="center" custom="{{true}}" data-ref="refuse_item" bind:__l="__l" vue-slots="{{['default']}}"><view class="common-popup-content fill-base pd-lg radius-34"><view class="title">拒绝接单</view><view class="desc">请确认是否拒接接单</view><textarea class="pd-lg textarea f-desc c-title mt-lg radius-20" maxlength="200" placeholder="请输入拒单原因" placeholder-class="f-desc c-caption" data-event-opts="{{[['input',[['__set_model',['','coach_refund_text','$event',[]]]]]]}}" value="{{coach_refund_text}}" bindinput="__e"></textarea><view class="flex-center mt-md" style="width:540rpx;"><view class="flex-1"></view><view>{{($root.g4>200?200:$root.g5)+"/200"}}</view></view><view class="button"><view data-event-opts="{{[['tap',[['e5',['$event']]]]]}}" class="item-child" catchtap="__e">取消</view><view data-event-opts="{{[['tap',[['confirmRefuse',['$event']]]]]}}" class="item-child c-base" style="{{'background:'+(primaryColor)+';'+('color:'+('#fff')+';')}}" catchtap="__e">确定</view></view></view></uni-popup><uni-popup class="vue-ref" vue-id="1eb2a3bc-6" type="center" custom="{{true}}" data-ref="oper_item" bind:__l="__l" vue-slots="{{['default']}}"><view class="common-popup-content fill-base pd-lg radius-34"><view class="title">{{popupInfo.title}}</view><view class="space-md"></view><block wx:if="{{popupInfo.type!==4}}"><view class="flex-warp mt-md" style="width:100%;"><view>拍照打卡:</view><view class="flex-1"><upload vue-id="{{('1eb2a3bc-7')+','+('1eb2a3bc-6')}}" imagelist="{{popupInfo.imgs}}" filetype="picture" imgtype="imgs" text="拍摄图片" imgsize="{{1}}" sourceType="{{2}}" data-event-opts="{{[['^upload',[['imgUpload']]],['^del',[['imgUpload']]]]}}" bind:upload="__e" bind:del="__e" bind:__l="__l"></upload></view></view></block><view class="flex-warp mt-md" style="width:100%;"><view>当前地点:</view><view data-event-opts="{{[['tap',[['toGetLocation',['$event']]]]]}}" class="{{['flex-1',[(popupInfo.location.address)?'c-title':''],[(!popupInfo.location.address)?'c-caption':'']]}}" catchtap="__e">{{''+(popupInfo.location.address||'点击获取定位')+''}}</view></view><view class="button"><view data-event-opts="{{[['tap',[['e6',['$event']]]]]}}" class="item-child" catchtap="__e">取消</view><view data-event-opts="{{[['tap',[['confirmOper',['$event']]]]]}}" class="item-child c-base" style="{{'background:'+(primaryColor)+';'+('color:'+('#fff')+';')}}" catchtap="__e">确定</view></view></view></uni-popup></view></block>