1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["plugin-page-errander-index3"],{"023b":function(e,t,i){"use strict";var a=i("fdde"),s=i.n(a);s.a},"040f":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return s})),i.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"tn-slider-class tn-slider",class:{"tn-slider--disabled":e.disabled},style:{backgroundColor:e.inactiveColor},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.click.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"tn-slider__gap",style:[e.barStyle,{height:this.$tn.string.getLengthUnitValue(e.lineHeight),backgroundColor:e.activeColor}]},[i("v-uni-view",{staticClass:"tn-slider__button-wrap",on:{touchstart:function(t){arguments[0]=t=e.$handleEvent(t),e.touchStart.apply(void 0,arguments)},touchmove:function(t){arguments[0]=t=e.$handleEvent(t),e.touchMove.apply(void 0,arguments)},touchend:function(t){arguments[0]=t=e.$handleEvent(t),e.touchEnd.apply(void 0,arguments)},touchcancel:function(t){arguments[0]=t=e.$handleEvent(t),e.touchEnd.apply(void 0,arguments)}}},[e.$slots.default||e.$slots.$default?i("v-uni-view",[e._t("default")],2):i("v-uni-view",{staticClass:"tn-slider__button",style:[e.blockStyle,{height:this.$tn.string.getLengthUnitValue(e.blockWidth),width:this.$tn.string.getLengthUnitValue(e.blockWidth),backgroundColor:e.blockColor}]})],1)],1)],1)},s=[]},"0e47":function(e,t,i){"use strict";i.r(t);var a=i("df5b"),s=i("dc1d");for(var n in s)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return s[e]}))}(n);i("023b");var r=i("828b"),d=Object(r["a"])(s["default"],a["b"],a["c"],!1,null,"28ceaaa6",null,!1,a["a"],void 0);t["default"]=d.exports},"14f2":function(e,t,i){var a=i("e549");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var s=i("967d").default;s("07e8da74",a,!0,{sourceMap:!1,shadowMode:!1})},"440d":function(e,t,i){var a=i("cead");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var s=i("967d").default;s("3f7aba64",a,!0,{sourceMap:!1,shadowMode:!1})},"44f0":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return s})),i.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("bottom-modal",{attrs:{"close-btn":!1,"no-padding":!0},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.handleModalClose.apply(void 0,arguments)}},model:{value:e.showSelectModal,callback:function(t){e.showSelectModal=t},expression:"showSelectModal"}},[i("v-uni-view",{staticClass:"header-title tn-color-black theme-selectTime-head",style:[e.themeBtnStyle]},[e._v("请选择时间")]),i("v-uni-view",{staticClass:"select-wrapper",style:[{"--theme-color":e.themeBgColor}]},[i("v-uni-view",{staticClass:"date tn-bg-gray--light tn-color-black theme-selectTime-leftBg"},[i("v-uni-scroll-view",{staticClass:"scroll-view",attrs:{"scroll-y":!0}},e._l(e.dateData,(function(t,a){return i("v-uni-view",{key:a,staticClass:"date-item tn-flex-center",class:[{select:a===e.currentSelectDateIndex}],on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.handleDateSelectEvent(a)}}},[e._v(e._s(t))])})),1)],1),i("v-uni-view",{staticClass:"time"},[i("v-uni-scroll-view",{staticClass:"scroll-view",attrs:{"scroll-y":!0}},e._l(e.timeData[e.currentSelectDateIndex],(function(t,a){return i("v-uni-view",{key:a,staticClass:"time-item",class:[{select:a===e.currentSelectTimeIndex}],on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.handleTimeSelectEvent(a)}}},[i("v-uni-view",{staticClass:"value"},[e._v(e._s(t)),e.data[e.currentSelectDateIndex]["times"][a]["price"]?i("v-uni-text",[e._v(e._s("(配送费"+e.CurrencyUnit+e.data[e.currentSelectDateIndex]["times"][a]["price"]+")"))]):e._e()],1),a===e.currentSelectTimeIndex?i("v-uni-view",{staticClass:"select-icon"},[i("v-uni-text",{staticClass:"tn-icon-success"})],1):e._e()],1)})),1)],1)],1)],1)},s=[]},"46a4":function(e,t,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("64aa"),i("8f71"),i("bf0f"),i("aa9c"),i("2797"),i("bd06"),i("de6c"),i("fd3c"),i("dc8a"),i("3efd"),i("c223"),i("5c47"),i("0506"),i("d4b5");var s=a(i("2634")),n=a(i("2fdc")),r=a(i("39d8")),d=a(i("dc1f")),o=a(i("e543")),c=a(i("e9ee")),l=a(i("6819")),u=a(i("34cae")),p=a(i("f194")),h=i("a69d"),f=i("9d0a"),v=i("419c"),m=i("d3db"),b=a(i("8c27")),g={components:{modal:o.default,AddressSelectModal:c.default,TimeSelectModal:l.default,PaySelectModal:u.default,ErranderDetailPriceModal:p.default,loading:b.default},mixins:[d.default],data:function(){var e;return e={title:null,itemTypes:[],weight:5,showModal1:!1,showModal2:!1,isShowPopup:!0,write_off_type:"standard",isLogin:!0,placeholderTitle:"",upload_image_title:"",addressList:[],showChooseAddressModal:!1,currentSelectAddressId:"",chooseAddressType:"",acceptAddress:{address:"",username:"",mobile:""},buyAddress:{address:"",username:"",mobile:""},showSelectPayWayModal:!1,orderId:"",erranderInfo:{basePrice:0,tips:{tipsname:"",status:0,min:0,max:0},weight:{status:0,weight_max:0,baseWeight:0,rule:[]}},showPriceDetailModal:!1,erranderFee:0,tipsText:"",submitData:{desc:"",images:[],weight:1,deliveryTime:"",predictDayCn:"",predictIndex:-1,tips:0,acceptAddressId:"",buyAddressId:"",redpacketId:0,mobile:""},selectItemType:""},(0,r.default)(e,"weight",5),(0,r.default)(e,"toolTitle",1),(0,r.default)(e,"distance_types",[]),(0,r.default)(e,"deliveryType",{}),(0,r.default)(e,"time_standard",""),(0,r.default)(e,"price_standard",0),(0,r.default)(e,"time_only",""),(0,r.default)(e,"price_only",0),(0,r.default)(e,"time_car",""),(0,r.default)(e,"price_car",0),(0,r.default)(e,"isShowObject",{is_show_upload_image:1,is_show_send_time:1,is_show_send_address:1,is_show_receive_address:1,is_show_mobile:1}),(0,r.default)(e,"timesTitle","配送时间"),(0,r.default)(e,"current_pickup_time","默认时间"),(0,r.default)(e,"showSelectTimeModal",!1),(0,r.default)(e,"timeRange",[]),(0,r.default)(e,"times",[]),(0,r.default)(e,"surchargeObj",{surcharge:0,surchargeTitle:""}),(0,r.default)(e,"old_times",[]),(0,r.default)(e,"extraFee",[]),(0,r.default)(e,"loadingShow",!1),e},watch:{acceptAddress:{handler:function(e){this.checkAddressesAndCallTimePrice()},deep:!0},buyAddress:{handler:function(e){this.checkAddressesAndCallTimePrice()},deep:!0}},onLoad:function(e){if(this.pageId=(null===e||void 0===e?void 0:e.pageId)||"",!this.pageId)return(0,f.showModal)({title:"提示",content:"缺少参数"});if(e&&e.deliveryInfo){var t=decodeURIComponent(e.deliveryInfo);this.deliveryInfo=JSON.parse(t)}this.getAddressList()},onShow:function(){},computed:{weightFee:function(){var e=Number(this.submitData.weight),t=Number(this.erranderInfo.weight.baseWeight);console.log("weight",e,t);var i=0;if(this.erranderInfo.weight.status&&e>t){var a=this.erranderInfo.weight.rule.filter((function(t){return t.over<e}));if(a&&a.length>0){var s=a[a.length-1];i+=(e-t)*s.price}}return i},priceList:function(){var e=this,t=[{text:"基础费用",price:this.erranderInfo.basePrice}];if(this.erranderFee=this.erranderInfo.basePrice,this.surchargeObj.surcharge>0&&(t.push({text:this.surchargeObj.surchargeTitle,price:this.surchargeObj.surcharge}),this.erranderFee+=Number(this.surchargeObj.surcharge)),this.erranderInfo.tips.status&&this.submitData.tips>0){var i=Number(this.submitData.tips);t.push({text:this.erranderInfo.tipsname||"小费",price:i}),this.erranderFee+=i}if("car"==this.write_off_type&&(t.push({text:"配送费用",price:this.price_car}),this.erranderFee+=this.price_car),"standard"==this.write_off_type&&(t.push({text:"配送费用",price:this.price_standard}),this.erranderFee+=this.price_standard),"only"==this.write_off_type&&(t.push({text:"配送费用",price:this.price_only}),this.erranderFee+=this.price_only),this.weightFee>0&&(t.push({text:"重量费用",price:this.weightFee}),this.erranderFee+=this.weightFee),this.extraFee.forEach((function(i){i.data.filter((function(e){return e.select})).forEach((function(i){t.push({text:i.name,price:i.price}),e.erranderFee+=i.price}))})),-1!==this.currentSelectRedpacketIndex){var a=this.redpacketData[this.currentSelectRedpacketIndex];t.push({text:"红包",price:a.discount-2*a.discount}),this.erranderFee-=a.discount}return this.erranderFee=this.erranderFee.toFixed(2),t},currentSelectRedpacketIndex:function(){var e,t=-1;return(null===(e=this.redpacketData)||void 0===e?void 0:e.length)>0&&(t=this.redpacketData.findIndex((function(e){return!0===e.select})),-1!=t&&(this.submitData.redpacketId=this.redpacketData[t].id)),t}},methods:{changeAddress:function(){var e=this;return(0,n.default)((0,s.default)().mark((function t(){var i;return(0,s.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.t0=(0,s.default)().keys(e.deliveryInfo);case 1:if((t.t1=t.t0()).done){t.next=9;break}if(i=t.t1.value,!e.deliveryInfo.hasOwnProperty(i)||null===e.deliveryInfo[i].index){t.next=7;break}return e.chooseAddressType=e.deliveryInfo[i].type,t.next=7,e.handleAddressClickEvent(e.deliveryInfo[i].index);case 7:t.next=1;break;case 9:case"end":return t.stop()}}),t)})))()},onShowModal1:function(){this.isShowPopup=!0},onClosePopup:function(){this.isShowPopup=!1},handleTipsChangeEvent:function(e){var t=Number(e.detail.value);t<this.erranderInfo.tips.min&&((0,f.showToast)({title:"小费最低为".concat(this.erranderInfo.tips.min,"元")}),this.submitData.tips=this.erranderInfo.tips.min),t>this.erranderInfo.tips.max&&((0,f.showToast)({title:"小费最多为".concat(this.erranderInfo.tips.max,"元")}),this.submitData.tips=this.erranderInfo.tips.max),(this.submitData.acceptAddressId&&this.submitData.buyAddressId||this.submitData.acceptAddressId&&this.current_pickup_locations_index)&&this.getRedpacketList()},openDetailPrice:function(){this.showPriceDetailModal=!this.showPriceDetailModal},closePriceDetailModalEvent:function(){this.showPriceDetailModal=!1},chooseTime:function(){this.showSelectTimeModal=!0},handleChooseTimeModalConfirmEvent:function(e){var t=this,i=e.value,a=e.date,s=e.timeIndex;console.log(i,"=======",a),this.submitData.deliveryTime=i,this.submitData.predictDayCn=a,this.submitData.predictIndex=s;for(var n=0;n<this.timeRange.length;n++)if(this.timeRange[n].date==a){this.current_pickup_time=this.timeRange[n].times[s].time;for(var r=0;r<this.times.length;r++){if(this.timeRange[n].times[s].time==this.times[r].start+"-"+this.times[r].end&&1==this.times[r].status&&Number(this.times[r].fee)>0)return console.log("附加费===>",this.times[r].fee),void(this.surchargeObj={surcharge:this.times[r].fee,surchargeTitle:this.timeRange[n].times[s].time+"送达附加费"});this.surchargeObj={surcharge:0,surchargeTitle:this.timeRange[n].times[s].time+"送达附加费"}}}this.times.findIndex((function(e){return e==t.current_pickup_time}))},getPageData:function(){var e=this;this.loadingShow=!0,(0,m.getErranderPageInfoApi)({pageId:this.pageId}).then((function(t){if(console.log(t),e.mode_list2=t.deliveryinfo,e.title=t.title,e.itemTypes=t.itemTypes,e.type=t.type,e.old_times=t.times||[],1==t.is_show_description&&(e.tipsText=t.tipsText),e.timesTitle=t.timesTitle||"配送时间",e.upload_image_title=t.upload_image_title||"图片",e.erranderInfo.basePrice=Number(t.base_fee),e.erranderInfo.tips.status=Number(t.tips.showtips),e.isShowObject.is_show_upload_image=t.is_show_upload_image,e.is_sex_ask=t.is_sex_ask||0,e.placeholderTitle=t.placeholderTitle||"描述",e.timesTitle=t.timesTitle||"配送时间",e.isShowObject.is_show_send_time=t.is_show_send_time,e.isShowObject.is_show_send_address=t.is_show_send_address,e.isShowObject.is_show_receive_address=t.is_show_receive_address,e.isShowObject.is_show_mobile=t.is_show_mobile,e.erranderInfo.tips.status&&(e.erranderInfo.tips.min=Number(t.tips.minfee),e.erranderInfo.tips.max=Number(t.tips.maxfee),e.erranderInfo.tipsname=t.tips.tipsname,e.submitData.tips=e.erranderInfo.tips.min),e.erranderInfo.weight.status=Number(t.weight_result.weight_status),e.erranderInfo.weight.weight_max=Number(t.weight_max),e.erranderInfo.weight.status&&(e.erranderInfo.weight.baseWeight=Number(t.weight_result.weight_basic),e.erranderInfo.weight.rule=t.weight_result.list.map((function(e){return{over:Number(e.over_kgs),price:Number(e.pre_kg_fees)}}))),Object.keys(t.deliveryinfo).map((function(i){var a=t.deliveryinfo[i];e.timeRange.push({date:a.day,times:a.times.map((function(e){return{time:e}}))})})),e.timeRange[0].times.unshift({time:"立即配送"}),e.extraFee=t.extra_fee.map((function(e,t){return{index:t,title:e.title,min:Number(e.min),max:Number(e.max),data:e.list.map((function(e,t){return{index:t,name:e.fee_name,price:Number(e.fee),select:!1}}))}})),e.submitData.deliveryTime="".concat(e.timeRange[0].date," ").concat(e.timeRange[0].times[0].time),e.current_pickup_time=e.timeRange[0].times[0].time,1==e.isShowObject.is_show_send_time)for(var i=0;i<e.times.length;i++)e.current_pickup_time==e.times[i].start+"-"+e.times[i].end&&1==e.times[i].status&&Number(e.times[i].fee)>0&&(console.log("附加费===>",e.times[i].fee),e.surchargeObj={surcharge:e.times[i].fee,surchargeTitle:e.current_pickup_time+"送达附加费"});e.submitData.predictDayCn=e.timeRange[0].date})).catch((function(t){console.error("[errander-index]获取跑腿页面数据失败",t),"请重新登录"==t.msg?e.isLogin=!1:(0,f.showToast)({title:t.msg})})).finally((function(){e.loadingShow=!1}))},selectAddress:function(e){"buy"==e?(this.chooseAddressType=e,this.showChooseAddressModal=!0,this.currentSelectStationId=""):(this.chooseAddressType=e,this.showChooseAddressModal=!0,this.currentSelectAddressId="")},getAddressList:function(){var e=this;(0,h.getUserAddressListApi)().then((function(t){e.isLogin=!0;var i=t.addresses;i&&(e.addressList=i.map((function(e){return{id:e.id,username:e.realname,mobile:e.mobile,sex:e.sex,address:e.address,number:e.number}}))),e.changeAddress(),e.getPageData()})).catch((function(t){console.error("[errander-index]获取地址列表失败",t),e.addressList=[],"请重新登录"==t.msg?e.isLogin=!1:(0,f.showModal)({title:"提示",content:t.msg||"获取跑腿信息失败",callback:function(){(0,v.navBack)()}})}))},handleAddressClickEvent:function(e){var t=this;return(0,n.default)((0,s.default)().mark((function i(){var a;return(0,s.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=t.addressList[e],t.currentSelectAddressId=a.id,i.next=4,t.checkErranderAddressRange(a.id).then((function(){"accept"===t.chooseAddressType?(t.submitData.acceptAddressId=a.id,t.acceptAddress.address=a.address+a.number,t.acceptAddress.username=a.username,t.acceptAddress.mobile=a.mobile):"buy"===t.chooseAddressType&&(t.submitData.buyAddressId=a.id,t.buyAddress.address=a.address+a.number,t.buyAddress.username=a.username,t.buyAddress.mobile=a.mobile)})).catch((function(){(0,f.showToast)({title:"所选地址不在服务范围"}),t.currentSelectAddressId=""}));case 4:case"end":return i.stop()}}),i)})))()},handleImageUploadSuccess:function(e){this.submitData.images.push(e.data.uri)},checkErranderAddressRange:function(e){var t=this;return(0,n.default)((0,s.default)().mark((function i(){return(0,s.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.abrupt("return",new Promise((function(i,a){t.loadingShow=!0,(0,m.checkErranderAddressApi)({id:e}).then((function(e){i()})).catch((function(e){console.error("[errander-index]键盘盘腿地址范围失败",e),a(e.msg)})).finally((function(){t.loadingShow=!1}))})));case 1:case"end":return i.stop()}}),i)})))()},addEditAddressEvent:function(){this.currentSelectAddressId="",this.showChooseAddressModal=!1},closeAddressEvent:function(){this.showChooseAddressModal=!1,this.currentSelectAddressId=""},update:function(e,t,i){e&&(this.weight=e,this.submitData.weight=e),t&&(this.selectItemType=t),i&&(this.toolTitle=i),this.isShowPopup=!1},checkAddressesAndCallTimePrice:function(){this.acceptAddress.address&&this.buyAddress.address&&this.getTimePrice()},getTimePrice:function(){var e=this;console.log("getTimePriceApi",this.submitData.acceptAddressId,this.submitData.buyAddressId),this.loadingShow=!0,(0,m.getTimePriceApi)({acceptAddressId:this.submitData.acceptAddressId,buyAddressId:this.submitData.buyAddressId,type:this.type}).then((function(t){console.log("getTimePrice",t),e.deliveryType=t,e.deliveryType.standard.duration&&e.deliveryType.standard.delivery_fee&&(e.time_standard=e.deliveryType.standard.duration,e.price_standard=+e.deliveryType.standard.delivery_fee),e.deliveryType.only.duration&&e.deliveryType.only.delivery_fee&&(e.time_only=e.deliveryType.only.duration,e.price_only=+e.deliveryType.only.delivery_fee),e.deliveryType.car.duration&&e.deliveryType.car.delivery_fee&&(e.time_car=e.deliveryType.car.duration,e.price_car=+e.deliveryType.car.delivery_fee),e.loadingShow=!1})).finally((function(){e.loadingShow=!1}))},submitOrder:function(){var e=this;if(1==this.isShowObject.is_show_mobile){if(!this.submitData.mobile)return void uni.showToast({title:"手机号不能为空",icon:"none"});if(!/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(this.submitData.mobile))return void uni.showToast({title:"手机号格式不正确,请输入11位手机格式",icon:"none"})}if(1==this.isShowObject.is_show_send_address&&!this.need_choose_address&&!this.submitData.acceptAddressId&&!this.need_choose_address&&!this.current_pickup_locations_index)return console.log(this.current_pickup_locations_index),(0,f.showModal)({title:"提示",content:"请选择地址"});if(1==this.isShowObject.is_show_receive_address&&!this.need_choose_address&&!this.submitData.acceptAddressId)return(0,f.showModal)({title:"提示",content:"请选择地址"});if(0==this.isShowObject.is_show_send_time&&(this.current_pickup_time=""),!this.submitData.desc)return(0,f.showModal)({title:"提示",content:this.placeholderTitle?this.placeholderTitle+"必填":"描述必填"});var t={};this.extraFee.forEach((function(e,i){var a=e.data.filter((function(e){return e.select}));a.length>0&&(t[e.index]=a.map((function(e){return e.index})).join(","))}));var i={};"car"==this.write_off_type&&(i=this.deliveryType.car),"standard"==this.write_off_type&&(i=this.deliveryType.standard),"only"==this.write_off_type&&(i=this.deliveryType.only),(0,m.submitErranderOrderApi)({pageId:this.pageId,acceptAddressId:this.submitData.acceptAddressId,buyAddressId:this.submitData.buyAddressId,deliveryDayCn:this.submitData.predictDayCn,deliveryIndex:this.submitData.predictIndex,note:this.submitData.desc,images:this.submitData.images,weight:this.submitData.weight,tips:this.submitData.tips,redpacketId:this.submitData.redpacketId,extraFee:JSON.stringify(t),current_pickup_time:this.current_pickup_time,current_pickup_locations_index:this.current_pickup_locations_index,sex:this.sex,mobile:this.submitData.mobile,type:i,selectItemType:this.selectItemType,toolTitle:this.toolTitle,vehicle_type:this.write_off_type}).then((function(t){var i=t.data;e.orderId=i,e.$nextTick((function(){setTimeout((function(){e.showSelectPayWayModal=!0}),150)}))})).catch((function(e){console.error("[errander-index]提交跑腿订单失败",e),(0,f.showToast)({title:e.msg})}))},getRedpacketList:function(){var e=this,t={};this.extraFee.forEach((function(e,i){var a=e.data.filter((function(e){return e.select}));a.length>0&&(t[e.index]=a.map((function(e){return e.index})).join(","))})),(0,m.getRedpacketListApi)({pageId:this.pageId,acceptAddressId:this.submitData.acceptAddressId,buyAddressId:this.submitData.buyAddressId,deliveryDayCn:this.submitData.predictDayCn,deliveryIndex:this.submitData.predictIndex,note:this.submitData.desc,images:this.submitData.images,weight:this.submitData.weight,tips:this.submitData.tips,extraFee:JSON.stringify(t),current_pickup_locations_index:this.current_pickup_locations_index}).then((function(t){console.log(t);var i=t;e.redpacketData=i.map((function(e){return{id:e.id,title:e.title,remark:(null===e||void 0===e?void 0:e.remark)||"[大马生活专享]",discount:Number(e.discount),condition:Number(e.condition),day_cn:e.day_cn,select:!1}}))})).catch((function(e){console.error("[errander-index]提交跑腿订单失败",e),(0,f.showToast)({title:e.msg})}))},_clearSubmitData:function(){this.submitData.desc="",this.submitData.images=[],this.submitData.weight=1,this.submitData.deliveryTime="".concat(this.timeRange[0].date," ").concat(this.timeRange[0].times[0].time),this.submitData.predictDayCn=this.timeRange[0].date,this.submitData.predictIndex=0,this.submitData.tips=0,this.submitData.acceptAddressId="",this.submitData.buyAddressId="",this.submitData.redpacketId=0,this.acceptAddress.address="",this.acceptAddress.username="",this.acceptAddress.mobile="",this.buyAddress.address="",this.buyAddress.username="",this.buyAddress.mobile="",this.currentSelectAddressId="",this.extraFee.forEach((function(e){e.data.filter((function(e){return e.select})).forEach((function(e){e.select=!1}))}))},_navOrderDetailPage:function(){this.showSelectPayWayModal=!1,this._clearSubmitData(),(0,v.navPage)("/order-page/errander-order-detail/index?id=".concat(this.orderId))},successPayEvent:function(){this._navOrderDetailPage()},failPayEvent:function(){this._navOrderDetailPage()},cancelPayEvent:function(){this._navOrderDetailPage()}}};t.default=g},"4f84":function(e,t,i){var a=i("6a82");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var s=i("967d").default;s("b974593a",a,!0,{sourceMap:!1,shadowMode:!1})},5749:function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return s})),i.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("bottom-modal",{attrs:{"no-padding":!0,"z-index":"1000"},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.handleModalClose.apply(void 0,arguments)}},model:{value:e.showModal,callback:function(t){e.showModal=t},expression:"showModal"}},[i("v-uni-view",{staticClass:"wrapper"},[i("v-uni-view",{staticClass:"top-title"},[e._v("费用明细")]),i("v-uni-view",{staticClass:"price-detail-list"},e._l(e.data,(function(t,a){return i("v-uni-view",{key:a,staticClass:"price-item tn-flex-center-between"},[i("v-uni-view",{staticClass:"text"},[e._v(e._s(t.text))]),i("v-uni-view",{staticClass:"price tn-color-red"},[e._v(e._s(e.CurrencyUnit)),i("v-uni-text",{staticClass:"tn-margin-left-sm"},[e._v(e._s(t.price))])],1)],1)})),1)],1)],1)},s=[]},5755:function(e,t,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("64aa"),i("fd3c"),i("8f71"),i("bf0f"),i("aa9c"),i("bd06"),i("5c47"),i("af8f"),i("c223");var s=a(i("dc1f")),n=a(i("e456")),r={props:{value:{type:Boolean,default:!1},data:{type:Array,default:function(){return[]}},defaultValue:{type:String,default:""},spellrice:{type:Number,default:0}},components:{BottomModal:n.default},mixins:[s.default],data:function(){return{showSelectModal:!1,dateData:[],timeData:[],currentSelectDateIndex:-1,currentSelectTimeIndex:-1}},computed:{},watch:{value:{handler:function(e){this.showSelectModal=e,e&&(this._resetData(),this.splitData())},immediate:!0}},methods:{handleDateSelectEvent:function(e){this.currentSelectDateIndex=e,this.currentSelectTimeIndex=-1},handleTimeSelectEvent:function(e){this.currentSelectTimeIndex=e,this.timeConfirmEvent()},splitData:function(){var e=this;this.data&&this.data.length>0&&(this.dateData=this.data.filter((function(e){return e.times&&e.times.length>0})).map((function(t){return e.timeData.push(t.times.map((function(e){return e.time}))),t.date})),this.setDefaultSelectTimeValue())},setDefaultSelectTimeValue:function(){var e=this;if(this.defaultValue){var t=this.dateData.findIndex((function(t){return-1!=e.defaultValue.search(t)}));if(-1!=t){this.currentSelectDateIndex=t;var i=this.timeData[t].findIndex((function(t){return-1!=e.defaultValue.search(t)}));-1!=i&&(this.currentSelectTimeIndex=i)}if(1==this.spellrice){var a=this.defaultValue.split(" ")[0],s=this.defaultValue.split(" ")[1].split("-")[1],n="".concat(a," ").concat(s);console.log("newTimeValue",n);var r=this.timeData[this.currentSelectDateIndex].findIndex((function(e){return-1!=n.search(e)}));-1!=r&&(this.currentSelectTimeIndex=r)}}},handleModalClose:function(){this.$emit("input",!1),this.$emit("close")},timeConfirmEvent:function(){var e="".concat(this.dateData[this.currentSelectDateIndex]," ").concat(this.timeData[this.currentSelectDateIndex][this.currentSelectTimeIndex]);this.$emit("confirm",{value:e,date:this.dateData[this.currentSelectDateIndex],timeIndex:this.currentSelectTimeIndex}),this.handleModalClose()},_resetData:function(){this.dateData=[],this.timeData=[],this.currentSelectDateIndex=-1,this.currentSelectTimeIndex=-1}}};t.default=r},5990:function(e,t,i){"use strict";i.r(t);var a=i("8548"),s=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(n);t["default"]=s.a},"62e6":function(e,t,i){"use strict";var a=i("d1ba"),s=i.n(a);s.a},6819:function(e,t,i){"use strict";i.r(t);var a=i("44f0"),s=i("f1a0");for(var n in s)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return s[e]}))}(n);i("9926");var r=i("828b"),d=Object(r["a"])(s["default"],a["b"],a["c"],!1,null,"75b1e056",null,!1,a["a"],void 0);t["default"]=d.exports},"6a82":function(e,t,i){var a=i("c86c");t=a(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.wrapper[data-v-7d527e2f]{position:relative;padding:%?30?%;padding-top:%?20?%}.top-title[data-v-7d527e2f]{font-size:%?42?%;font-weight:700}\n/* 费用明细 start */.price-detail-list[data-v-7d527e2f]{padding-top:%?30?%;padding-bottom:%?120?%}.price-detail-list .price-item .text[data-v-7d527e2f]{font-size:%?32?%}.price-detail-list .price-item + .price-item[data-v-7d527e2f]{padding-top:%?30?%}\n/* 费用明细 end */',""]),e.exports=t},"71a6":function(e,t,i){var a=i("c86c");t=a(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.modal[data-v-01c81b03]{position:absolute;border-radius:%?20?%;z-index:99}.wrapper[data-v-01c81b03]{background:#f5f8fa;padding:%?30?%;height:%?1100?%;overflow-y:auto}.wrapper .box[data-v-01c81b03]{background:#fff;border-radius:%?26?%;padding:%?30?%;margin-bottom:%?30?%}.wrapper .box .title[data-v-01c81b03]{color:#222;font-size:%?32?%;font-weight:700}.wrapper .box .subtit[data-v-01c81b03]{color:#d0cece;font-size:%?28?%;margin:%?8?% 0}.wrapper .box .cont[data-v-01c81b03]{padding-top:%?30?%}.wrapper .box .cont .lists[data-v-01c81b03]{border:1px solid #eaeaea;border-radius:%?12?%;width:calc(100% / 4 - %?15?%);margin-right:%?15?%;margin-bottom:%?15?%;padding:%?15?% 0;text-align:center;font-size:%?28?%;color:#999;display:inline-block}.wrapper .box .cont .lists[data-v-01c81b03]:nth-child(4n){margin-right:0}.wrapper .box .cont .lists .icons[data-v-01c81b03]{width:%?48?%;height:%?48?%;display:block;margin:0 auto %?5?%}.wrapper .box .cont .selectItemTypeClass[data-v-01c81b03]{border-color:var(--theme-general-color);color:var(--theme-general-color)}.wrapper .box .cont .lists2[data-v-01c81b03]{border:1px solid #eaeaea;border-radius:%?12?%;width:calc(100% / 2 - %?18?%);margin-right:%?27?%;text-align:center;font-size:%?28?%;color:#999;display:inline-block;padding:1px}.wrapper .box .cont .lists2[data-v-01c81b03]:last-child{margin-right:0}.wrapper .box .cont .lists2 .imgs[data-v-01c81b03]{width:100%;display:block}.wrapper .box .cont .lists2 .tit[data-v-01c81b03]{background:#f8f8f8;line-height:%?65?%;text-align:center;font-size:%?32?%}.wrapper .box .cont .selectToolClass[data-v-01c81b03]{border-color:var(--theme-general-color);color:var(--theme-general-color)}.wrapper .box .cont .selectToolClass .selectToolTit[data-v-01c81b03]{background:#fffce6}.wrapper .button[data-v-01c81b03]{position:-webkit-sticky;position:sticky;bottom:0;width:100%;background:#02a42c;border-radius:%?55?%;height:%?90?%;line-height:%?90?%;color:#fff;border:0;padding:0;font-size:%?32?%}.unit[data-v-01c81b03]{padding:0 %?10?%}',""]),e.exports=t},7340:function(e,t,i){var a=i("c86c");t=a(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */uni-page-body[data-v-28ceaaa6]{background:#f5f8fa}body.?%PAGE?%[data-v-28ceaaa6]{background:#f5f8fa}.wrapper[data-v-28ceaaa6]{background:#f5f8fa;padding:%?30?%;padding-bottom:%?150?%}.wrapper .adress[data-v-28ceaaa6]{padding:%?20?% %?16?%}.wrapper .adress .cirlce1[data-v-28ceaaa6]{width:%?20?%;height:%?20?%;border-radius:100%;border:%?5?% solid #26b06a;display:inline-block;vertical-align:middle;margin-right:%?8?%}.wrapper .adress .cirlce2[data-v-28ceaaa6]{border:%?5?% solid #ff791a}.wrapper .adress .mod1[data-v-28ceaaa6]{flex:1;text-overflow:ellipsis;overflow:hidden;color:#222}.wrapper .adress .line[data-v-28ceaaa6]{width:100%;color:#999;text-align:center}.wrapper .box[data-v-28ceaaa6]{background:#fff;border-radius:%?26?%;padding:%?30?%;margin-bottom:%?30?%}.wrapper .box .txt[data-v-28ceaaa6]{font-size:%?32?%;font-weight:700;margin-right:%?10?%}.wrapper .box .data .input[data-v-28ceaaa6]{position:relative;width:%?100?%;padding:%?0?%;text-align:center}.wrapper .box .up[data-v-28ceaaa6]{display:flex;justify-content:space-between;align-items:center}.wrapper .box .up[data-v-28ceaaa6]:first-child{border-bottom:1px solid #efefef;padding-bottom:%?20?%}.wrapper .box .up[data-v-28ceaaa6]:last-child{padding-top:%?20?%}.wrapper .box .value[data-v-28ceaaa6]{color:#d0cece}.wrapper .box .selectbox .items[data-v-28ceaaa6]{padding:%?30?% %?12?%;border-radius:%?10?%;border:1px solid #fff;display:flex;font-size:%?30?%}.wrapper .box .selectbox .items .sub1[data-v-28ceaaa6]{width:%?200?%}.wrapper .box .selectbox .items .sub2[data-v-28ceaaa6]{flex:1;text-align:center}.wrapper .box .selectbox .items .sub3[data-v-28ceaaa6]{width:%?200?%;display:flex;justify-content:flex-end}.wrapper .box .selectbox .items .sub3 .txt[data-v-28ceaaa6]{margin-right:%?10?%;font-size:%?32?%;font-weight:700}.wrapper .box .selectbox .items.current[data-v-28ceaaa6]{border:1px solid var(--theme-general-color)}.w-bottom[data-v-28ceaaa6]{position:fixed;bottom:%?50?%;left:5%;z-index:999;width:90%;margin:auto}.w-bottom .top[data-v-28ceaaa6]{display:flex;padding-bottom:%?30?%}.w-bottom .top .item[data-v-28ceaaa6]{flex:1;text-align:center}.w-bottom .button[data-v-28ceaaa6]{width:100%;background:#222;border-radius:%?55?%;overflow:hidden;height:%?100?%;line-height:%?100?%;color:#fff;border:0;padding:0;display:flex;justify-content:space-between}.w-bottom .button .left[data-v-28ceaaa6]{padding-left:%?30?%;font-size:%?36?%;font-weight:700}.w-bottom .button .left .small[data-v-28ceaaa6]{font-size:%?28?%;font-weight:400}.w-bottom .button .rig[data-v-28ceaaa6]{width:%?200?%;background:#02a42c;font-size:%?32?%;text-align:center}\n/* 商品信息 start */.product-info[data-v-28ceaaa6]{margin-bottom:%?30?%;width:100%;padding:%?30?%;border-radius:%?15?%}.product-info .product-info-title[data-v-28ceaaa6]{margin:%?16?% %?0?%}.product-info .info-desc[data-v-28ceaaa6]{width:100%;border-radius:%?8?%}.product-info .info-desc .textarea[data-v-28ceaaa6]{position:relative;width:100%;height:%?160?%;padding:%?20?%}.product-info .weight-info[data-v-28ceaaa6]{position:relative;width:100%}.product-info .weight-info .slider[data-v-28ceaaa6]{flex:1}.product-info .weight-info .unit[data-v-28ceaaa6]{width:%?100?%;font-size:%?32?%;font-weight:600;text-align:right}',""]),e.exports=t},"79e1":function(e,t,i){"use strict";i.r(t);var a=i("86a9"),s=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(n);t["default"]=s.a},"7c9f5":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return s})),i.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BottomModal",{attrs:{noPadding:!0,zIndex:999},on:{cancel:function(t){arguments[0]=t=e.$handleEvent(t),this.$emit("onClosePopup")}},model:{value:e.isShowPopup,callback:function(t){e.isShowPopup=t},expression:"isShowPopup"}},[i("v-uni-view",{staticClass:"wrapper"},[i("v-uni-view",{staticClass:"box"},[i("v-uni-view",{staticClass:"title"},[e._v("选择物品类型")]),i("v-uni-view",{staticClass:"cont"},e._l(e.itemTypes,(function(t,a){return i("v-uni-view",{key:a,staticClass:"lists",class:e.selectItemType==t.title?"selectItemTypeClass":"",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.selectItem(t)}}},[i("v-uni-image",{staticClass:"icons",attrs:{src:t.image,mode:"widthFix"}}),i("v-uni-text",[e._v(e._s(t.title))])],1)})),1)],1),i("v-uni-view",{staticClass:"box"},[i("v-uni-view",{staticClass:"title"},[e._v("选择物品重量")]),i("v-uni-view",{staticClass:"subtit"},[e._v("骑手取件时会评估物品重量,超重需要补齐差价,物品过重可能无法配送")]),i("v-uni-view",{staticClass:"cont",staticStyle:{display:"flex"}},[i("subtn-slider",{staticStyle:{flex:"1"},attrs:{"active-color":e.themeBgColor,min:0,max:e.weight_max,"block-width":50},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.handleChange.apply(void 0,arguments)}},model:{value:e.weight,callback:function(t){e.weight=t},expression:"weight"}}),i("v-uni-view",{staticClass:"unit"},[e._v(e._s(e.weight)+"kg")])],1)],1),i("v-uni-view",{staticClass:"box"},[i("v-uni-view",{staticClass:"title"},[e._v("选择配送工具")]),i("v-uni-view",{staticClass:"subtit"},[e._v("请参考以下空间,避免物品过大无法配送")]),i("v-uni-view",{staticClass:"cont"},e._l(e.tools,(function(t,a){return i("v-uni-view",{key:a,staticClass:"lists2",class:e.toolTitle==t.title?"selectToolClass":"",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.toolTitle=t.title}}},[i("v-uni-image",{staticClass:"imgs",attrs:{src:t.image,mode:"widthFix"}}),i("v-uni-view",{staticClass:"tit",class:e.toolTitle==t.title?"selectToolTit":""},[e._v(e._s(t.title))])],1)})),1)],1),i("v-uni-button",{staticClass:"button",staticStyle:{"background-color":"var(--theme-general-color)",color:"var(--general-color-text)"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submit.apply(void 0,arguments)}}},[e._v("确认")])],1)],1)},s=[]},8548:function(e,t,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=a(i("e456")),n={props:{value:{type:Boolean,default:!1},data:{type:Array,default:function(){return[]}}},components:{BottomModal:s.default},data:function(){return{showModal:!1}},watch:{value:{handler:function(e){this.showModal=e},immediate:!0}},methods:{handleModalClose:function(){this.$emit("input",!1),this.$emit("close")}}};t.default=n},"86a9":function(e,t,i){"use strict";i("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("64aa");var a={name:"tn-slider",props:{value:{type:[Number,String],default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},disabled:{type:Boolean,default:!1},blockWidth:{type:Number,default:30},lineHeight:{type:Number,default:8},activeColor:{type:String,default:"#01BEFF"},inactiveColor:{type:String,default:"#E6E6E6"},blockColor:{type:String,default:"#FFFFFF"},blockStyle:{type:Object,default:function(){return{}}}},data:function(){return{startX:0,status:"end",newValue:0,distanceX:0,startValue:0,barStyle:{},sliderRect:{left:0,width:0}}},watch:{value:function(e){"end"===this.status&&this.updateValue(e,!1)}},created:function(){this.updateValue(this.value,!1)},mounted:function(){var e=this;this._tGetRect(".tn-slider").then((function(t){console.log("_tGetRect",t),e.sliderRect=t}))},methods:{init:function(){var e=this;this._tGetRect(".tn-slider").then((function(t){e.sliderRect=t,console.log(e.sliderRect,"======tn-slider1"),e.updateValue(e.value,!1)}))},touchStart:function(e){this.disabled||e.changedTouches[0]&&(this.startX=0,this.startX=e.changedTouches[0].pageX,this.startValue=this.format(this.value),this.status="start")},touchMove:function(e){if(!this.disabled&&e.changedTouches[0]){"start"===this.status&&this.$emit("start");var t=e.changedTouches[0].pageX;this.distanceX=t,this.newValue=this.distanceX/this.sliderRect.width*(this.max-this.min)+this.min,this.status="moving",this.$emit("moving"),this.updateValue(this.newValue,!0)}},touchEnd:function(){this.disabled||("moving"===this.status&&(this.updateValue(this.newValue,!1),this.$emit("end")),this.status="end")},updateValue:function(e,t){e=this.format(e);var i=0;if(this.value>0&&(i=Math.round((e-this.min)/(this.max-this.min)*100)),!(i<0||i>100)){var a={width:i+"%"};!0===t?a.transition="none":delete a.transition,this.$emit("input",e),this.barStyle=a}},click:function(e){if(!this.disabled){var t=(e.detail.x-this.sliderRect.left)/this.sliderRect.width*(this.max-this.min)+this.min;this.updateValue(t,!1)}},format:function(e){return Math.round(Math.max(this.min,Math.min(e,this.max))/this.step)*this.step}}};t.default=a},9926:function(e,t,i){"use strict";var a=i("14f2"),s=i.n(a);s.a},"99ee":function(e,t,i){"use strict";i.r(t);var a=i("bb7f"),s=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(n);t["default"]=s.a},bb7f:function(e,t,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("64aa");var s=a(i("dc1f")),n=a(i("c630")),r=a(i("e456")),d={components:{BottomModal:r.default,SubtnSlider:n.default},mixins:[s.default],props:{isShowPopup:{type:Boolean,default:!1},itemTypes:{type:Array,default:function(){return[]}},weight_max:{type:Number,default:0}},data:function(){return{sliderValue:5,pic_list:[],pic_list2:[],weight:5,selectItemType:0,toolTitle:"电动车空间",tools:[{id:1,image:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/bike-box.png",title:"电动车空间"},{id:2,image:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/car-box.png",title:"汽车空间"}]}},watch:{isShowPopup:{handler:function(e){this.isShowPopup||this.submit()},deep:!0},itemTypes:{handler:function(e){this.selectItem(this.itemTypes[0])},deep:!0}},onLoad:function(e){},onShow:function(){},methods:{themeBgColor:function(){return this.$isTheme()?"var(--theme-general-color)":"#02a42c"},selectItem:function(e){this.selectItemType=e.title},submit:function(){this.$emit("submit",this.weight,this.selectItemType,this.toolTitle)},handleChange:function(e){this.weight=e}}};t.default=d},bb92:function(e,t,i){"use strict";var a=i("440d"),s=i.n(a);s.a},c630:function(e,t,i){"use strict";i.r(t);var a=i("040f"),s=i("79e1");for(var n in s)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return s[e]}))}(n);i("bb92");var r=i("828b"),d=Object(r["a"])(s["default"],a["b"],a["c"],!1,null,"79bd46b2",null,!1,a["a"],void 0);t["default"]=d.exports},cead:function(e,t,i){var a=i("c86c");t=a(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-slider[data-v-79bd46b2]{width:100%;position:relative;border-radius:%?1000?%;border-width:%?20?%;border-style:solid;border-color:transparent;background-color:#e6e6e6;background-clip:content-box}.tn-slider__gap[data-v-79bd46b2]{position:relative;border-radius:inherit;transition:width .2s;background-color:#01beff}.tn-slider__button[data-v-79bd46b2]{width:%?30?%;height:%?30?%;border-radius:50%;box-shadow:0 %?2?% %?4?% rgba(0,0,0,.6);background-color:#fff;cursor:pointer}.tn-slider__button-wrap[data-v-79bd46b2]{position:absolute;top:50%;right:0;-webkit-transform:translate3d(50%,-50%,0);transform:translate3d(50%,-50%,0)}.tn-slider--disabled[data-v-79bd46b2]{opacity:.6}',""]),e.exports=t},d1ba:function(e,t,i){var a=i("71a6");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var s=i("967d").default;s("2aed9b9a",a,!0,{sourceMap:!1,shadowMode:!1})},d3db:function(e,t,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.submitErranderOrderApiIndex=t.submitErranderOrderApi=t.submitAppealApi=t.isCanAppealApi=t.getTimePriceApi=t.getRedpacketListApi=t.getErranderPageInfoApi=t.checkErranderAddressApi=void 0;var s=a(i("7653"));t.getErranderPageInfoApi=function(e){var t=e.pageId;return s.default.get("api/user.order.errander.errander/getErranderPageParams",{id:t})};t.checkErranderAddressApi=function(e){var t=e.id;return s.default.get("api/user.order.errander.errander/checkAddress",{id:t})};t.submitErranderOrderApiIndex=function(e){var t=e.pageId,i=e.acceptAddressId,a=e.buyAddressId,n=e.deliveryDayCn,r=e.deliveryIndex,d=e.note,o=e.images,c=e.weight,l=e.tips,u=e.extraFee,p=e.redpacketId,h=e.current_pickup_time,f=e.current_pickup_locations_index,v=e.pickup_code_arr,m=e.sex,b=e.mobile,g=e.options_index,w=e.packings_index;return s.default.post("api/user.order.errander.erranderOrderCreate/index",{page_id:t,accept_address_id:i,buy_address_id:a,delivery_day_cn:n,delivery_index:r,note:d||"",images:o||[],weight:c,tips:l||0,redpacket_id:p||0,extra_fee_list:u||{},current_pickup_time:h||"",current_pickup_locations_index:f||-1,pickup_code_arr:v||[],sex:m||"",mobile:b||" ",options_index:g,packings_index:w})};t.submitErranderOrderApi=function(e){var t=e.pageId,i=e.acceptAddressId,a=e.buyAddressId,n=e.deliveryDayCn,r=e.deliveryIndex,d=e.note,o=e.images,c=e.weight,l=e.tips,u=e.extraFee,p=e.redpacketId,h=e.current_pickup_time,f=e.current_pickup_locations_index,v=e.pickup_code_arr,m=e.sex,b=e.mobile,g=e.options_index,w=e.packings_index,_=e.type,y=e.selectItemType,x=e.toolTitle,I=e.vehicle_type;return s.default.post("api/user.order.errander.erranderOrderCreate/createOrder",{page_id:t,accept_address_id:i,buy_address_id:a,delivery_day_cn:n,delivery_index:r,note:d||"",images:o||[],weight:c,tips:l||0,redpacket_id:p||0,extra_fee_list:u||{},current_pickup_time:h||"",current_pickup_locations_index:f||-1,pickup_code_arr:v||[],sex:m||"",mobile:b||" ",options_index:g,packings_index:w,type:_,selectItemType:y,toolTitle:x,vehicle_type:I})};t.getRedpacketListApi=function(e){var t=e.pageId,i=e.acceptAddressId,a=e.buyAddressId,n=e.deliveryDayCn,r=e.deliveryIndex,d=e.note,o=e.images,c=e.weight,l=e.tips,u=e.extraFee,p=e.pickup_code_arr,h=e.current_pickup_locations_index;return s.default.post("api/user.order.errander.erranderOrderCreate/getRedpacketList",{page_id:t,accept_address_id:i,buy_address_id:a,delivery_day_cn:n,delivery_index:r,note:d||"",images:o||[],weight:c,tips:l||0,extra_fee_list:u||{},pickup_code_arr:p||[],current_pickup_locations_index:h||-1})};t.getTimePriceApi=function(e){return s.default.get("api/user.order.errander.errander/getTimePrice",e)};t.isCanAppealApi=function(e){return s.default.get("api/user.order.errander.appeal/isCanAppeal",e)};t.submitAppealApi=function(e){return s.default.post("api/user.order.errander.appeal/submit",e)}},dc1d:function(e,t,i){"use strict";i.r(t);var a=i("46a4"),s=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(n);t["default"]=s.a},df5b:function(e,t,i){"use strict";i.d(t,"b",(function(){return s})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){return a}));var a={loading:i("8c27").default,tnRadioGroup:i("96a1").default,tnRadio:i("f7fc").default,tnImageUploadDrag:i("58eb").default},s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("custom-page",{attrs:{"custom-navbar":!0,"navbar-title":e.title}},[e.loadingShow?i("loading",{attrs:{zindex:99999}}):e._e(),i("v-uni-view",{staticClass:"wrapper"},[i("v-uni-view",{staticClass:"adress"},[i("v-uni-view",[e.buyAddress.username&&e.buyAddress.address?i("v-uni-view",{staticClass:"mod1",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.selectAddress("buy")}}},[i("v-uni-view",{staticClass:"cirlce1"}),e._v(e._s(e.buyAddress.username)+" | "+e._s(e.buyAddress.address))],1):i("v-uni-view",{staticClass:"mod1",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.selectAddress("buy")}}},[i("v-uni-view",{staticClass:"cirlce1"}),e._v("选择取件地址")],1)],1),i("v-uni-view",{staticClass:"line"},[i("v-uni-text",{staticClass:"tn-icon-right-double"})],1),i("v-uni-view",[e.acceptAddress.username&&e.acceptAddress.username?i("v-uni-view",{staticClass:"mod1",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.selectAddress("accept")}}},[i("v-uni-view",{staticClass:"cirlce1 cirlce2"}),e._v(e._s(e.acceptAddress.username)+" | "+e._s(e.acceptAddress.address))],1):i("v-uni-view",{staticClass:"mod1",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.selectAddress("accept")}}},[i("v-uni-view",{staticClass:"cirlce1 cirlce2"}),e._v("选择送件地址")],1)],1)],1),i("v-uni-view",{staticClass:"box"},[i("v-uni-view",{staticClass:"selectbox"},[i("tn-radio-group",{attrs:{activeColor:e.themeBgColor},model:{value:e.write_off_type,callback:function(t){e.write_off_type=t},expression:"write_off_type"}},["汽车空间"!=e.toolTitle?i("v-uni-view",{staticClass:"items",class:"standard"==e.write_off_type?"current":""},[i("v-uni-view",{staticClass:"sub1"},[i("tn-radio",{staticStyle:{"margin-top":"5rpx",width:"40rpx"},attrs:{shape:"circle",name:"standard"}}),e._v("标准配送")],1),i("v-uni-view",{staticClass:"sub2"},[e._v("预计"+e._s("立即配送"==e.current_pickup_time?e.time_standard:e.submitData.deliveryTime)+"前送达")]),i("v-uni-view",{staticClass:"sub3"},[i("v-uni-text",{staticClass:"txt"},[e._v(e._s(e.price_standard)+"元")])],1)],1):e._e(),"汽车空间"!=e.toolTitle?i("v-uni-view",{staticClass:"items",class:"only"==e.write_off_type?"current":""},[i("v-uni-view",{staticClass:"sub1"},[i("tn-radio",{staticStyle:{"margin-top":"5rpx",width:"40rpx"},attrs:{shape:"circle",name:"only"}}),e._v("专人直送")],1),i("v-uni-view",{staticClass:"sub2"},[e._v("预计"+e._s("立即配送"==e.current_pickup_time?e.time_only:e.submitData.deliveryTime)+"前送达")]),i("v-uni-view",{staticClass:"sub3"},[i("v-uni-text",{staticClass:"txt"},[e._v(e._s(e.price_only)+"元")])],1)],1):e._e(),i("v-uni-view",{staticClass:"items",class:"car"==e.write_off_type?"current":""},[i("v-uni-view",{staticClass:"sub1"},[i("tn-radio",{staticStyle:{"margin-top":"5rpx",width:"40rpx"},attrs:{shape:"circle",name:"car"}}),e._v("汽车配送")],1),i("v-uni-view",{staticClass:"sub2"},[e._v("预计"+e._s("立即配送"==e.current_pickup_time?e.time_car:e.submitData.deliveryTime)+"前送达")]),i("v-uni-view",{staticClass:"sub3"},[i("v-uni-text",{staticClass:"txt"},[e._v(e._s(e.price_car)+"元")])],1)],1)],1)],1)],1),e.erranderInfo.tips.status?i("v-uni-view",{staticClass:"box tn-bg-white tn-flex-center-between"},[i("v-uni-view",{staticClass:"title"},[e._v(e._s(e.erranderInfo.tipsname||"小费"))]),i("v-uni-view",{staticClass:"data tn-flex-row-center"},[i("v-uni-input",{staticClass:"input tn-bg-gray--light",attrs:{type:"number"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.handleTipsChangeEvent.apply(void 0,arguments)}},model:{value:e.submitData.tips,callback:function(t){e.$set(e.submitData,"tips",t)},expression:"submitData.tips"}}),i("v-uni-view",{staticClass:"unit tn-margin-left-xs"},[e._v("元")])],1)],1):e._e(),e.weightFee>0?i("v-uni-view",{staticClass:"box tn-bg-white tn-flex-center-between"},[i("v-uni-view",{staticClass:"title"},[e._v("重量费用")]),i("v-uni-view",{staticClass:"data tn-flex-row-center"},[i("v-uni-text",{staticClass:"txt"},[e._v(e._s(e.weightFee)+"元")])],1)],1):e._e(),i("v-uni-view",{staticClass:"product-info tn-bg-white"},[i("v-uni-view",{staticClass:"product-info-title"},[e._v(e._s(e.placeholderTitle||"描述"))]),i("v-uni-view",{staticClass:"info-desc tn-border-gray--light"},[i("v-uni-textarea",{staticClass:"textarea",attrs:{placeholder:e.tipsText},model:{value:e.submitData.desc,callback:function(t){e.$set(e.submitData,"desc",t)},expression:"submitData.desc"}})],1),1==e.isShowObject.is_show_upload_image?[i("v-uni-view",{staticClass:"product-info-title"},[e._v(e._s(e.upload_image_title||"图片"))]),i("v-uni-view",{staticClass:"images"},[i("tn-image-upload-drag",{attrs:{action:e.action,showProgress:!1,"max-count":3},on:{"on-success":function(t){arguments[0]=t=e.$handleEvent(t),e.handleImageUploadSuccess.apply(void 0,arguments)}}})],1)]:e._e()],2)],1),e.isShowPopup?e._e():i("v-uni-view",{staticClass:"w-bottom"},[i("v-uni-view",{staticClass:"top"},[i("v-uni-view",{staticClass:"item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onShowModal1.apply(void 0,arguments)}}},[e._v(e._s(e.selectItemType)+"/"+e._s(e.weight)+"公斤"),i("v-uni-text",{staticClass:"tn-icon-right"})],1),1==e.isShowObject.is_show_send_time?i("v-uni-view",{staticClass:"item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.chooseTime.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"data tn-flex-row-center"},[i("v-uni-view",{staticClass:"value",class:[{"tn-color-gray":!e.submitData.deliveryTime}]},[e._v(e._s(e.submitData.deliveryTime||"请选择送达时间"))]),i("v-uni-view",{staticClass:"right-icon tn-icon-right tn-color-gray tn-margin-left"})],1)],1):e._e()],1),i("v-uni-view",{staticClass:"button"},[i("v-uni-view",{staticClass:"left",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.openDetailPrice.apply(void 0,arguments)}}},[e._v(e._s(e.CurrencyUnit)+e._s(e.erranderFee)),i("v-uni-view",{staticClass:"show-more tn-margin-left-xs tn-icon-up-triangle tn-color-gray",class:[{show:e.showPriceDetailModal}]})],1),i("v-uni-view",{staticClass:"rig",staticStyle:{"background-color":"var(--theme-general-color)",color:"var(--general-color-text)"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submitOrder.apply(void 0,arguments)}}},[e._v("立即发单")])],1)],1),i("modal",{attrs:{isShowPopup:e.isShowPopup,itemTypes:e.itemTypes,weight_max:e.erranderInfo.weight.weight_max},on:{submit:function(t){arguments[0]=t=e.$handleEvent(t),e.update.apply(void 0,arguments)},onClosePopup:function(t){arguments[0]=t=e.$handleEvent(t),e.onClosePopup.apply(void 0,arguments)}}}),i("time-select-modal",{attrs:{data:e.timeRange,"default-value":e.submitData.deliveryTime},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.handleChooseTimeModalConfirmEvent.apply(void 0,arguments)}},model:{value:e.showSelectTimeModal,callback:function(t){e.showSelectTimeModal=t},expression:"showSelectTimeModal"}}),i("address-select-modal",{attrs:{data:e.addressList,"default-address-id":e.currentSelectAddressId},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleAddressClickEvent.apply(void 0,arguments)},edit:function(t){arguments[0]=t=e.$handleEvent(t),e.addEditAddressEvent.apply(void 0,arguments)},add:function(t){arguments[0]=t=e.$handleEvent(t),e.addEditAddressEvent.apply(void 0,arguments)},close:function(t){arguments[0]=t=e.$handleEvent(t),e.closeAddressEvent.apply(void 0,arguments)}},model:{value:e.showChooseAddressModal,callback:function(t){e.showChooseAddressModal=t},expression:"showChooseAddressModal"}}),i("pay-select-modal",{attrs:{"order-id":e.orderId,"order-type":"errander"},on:{success:function(t){arguments[0]=t=e.$handleEvent(t),e.successPayEvent.apply(void 0,arguments)},fail:function(t){arguments[0]=t=e.$handleEvent(t),e.failPayEvent.apply(void 0,arguments)},cancel:function(t){arguments[0]=t=e.$handleEvent(t),e.cancelPayEvent.apply(void 0,arguments)}},model:{value:e.showSelectPayWayModal,callback:function(t){e.showSelectPayWayModal=t},expression:"showSelectPayWayModal"}}),i("errander-detail-price-modal",{attrs:{data:e.priceList},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.closePriceDetailModalEvent.apply(void 0,arguments)}},model:{value:e.showPriceDetailModal,callback:function(t){e.showPriceDetailModal=t},expression:"showPriceDetailModal"}})],1)},n=[]},e543:function(e,t,i){"use strict";i.r(t);var a=i("7c9f5"),s=i("99ee");for(var n in s)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return s[e]}))}(n);i("62e6");var r=i("828b"),d=Object(r["a"])(s["default"],a["b"],a["c"],!1,null,"01c81b03",null,!1,a["a"],void 0);t["default"]=d.exports},e549:function(e,t,i){var a=i("c86c");t=a(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.header-title[data-v-75b1e056]{padding:%?20?%;font-size:%?32?%}.select-wrapper[data-v-75b1e056]{width:100%;height:%?500?%;display:flex\n /* 日期 start */\n /* 日期 end */\n /* 时间 start */\n /* 时间 end */}.select-wrapper .date[data-v-75b1e056]{width:30%;height:100%}.select-wrapper .date .date-item[data-v-75b1e056]{width:100%;padding:%?20?% %?0?%}.select-wrapper .date .date-item.select[data-v-75b1e056]{background-color:#fff}.select-wrapper .time[data-v-75b1e056]{width:70%;height:100%}.select-wrapper .time .time-item[data-v-75b1e056]{width:100%;padding:%?20?%;display:flex;align-items:center;justify-content:space-between;border-bottom:%?1?% solid #f3f2f7}.select-wrapper .time .time-item.select[data-v-75b1e056]{color:var(--theme-color)}.select-wrapper .time .time-item .select-icon[data-v-75b1e056]{font-size:%?34?%;font-weight:700;color:var(--theme-color)}',""]),e.exports=t},ec5a:function(e,t,i){"use strict";var a=i("4f84"),s=i.n(a);s.a},f194:function(e,t,i){"use strict";i.r(t);var a=i("5749"),s=i("5990");for(var n in s)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return s[e]}))}(n);i("ec5a");var r=i("828b"),d=Object(r["a"])(s["default"],a["b"],a["c"],!1,null,"7d527e2f",null,!1,a["a"],void 0);t["default"]=d.exports},f1a0:function(e,t,i){"use strict";i.r(t);var a=i("5755"),s=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(n);t["default"]=s.a},fdde:function(e,t,i){var a=i("7340");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var s=i("967d").default;s("898d603c",a,!0,{sourceMap:!1,shadowMode:!1})}}]);
|