(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-detail"],{"0c9a":function(t,e,o){"use strict";o.r(e);var i=o("6ad3"),a=o.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(n);e["default"]=a.a},"1b53":function(t,e,o){var i=o("de51");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=o("967d").default;a("77173866",i,!0,{sourceMap:!1,shadowMode:!1})},"25e3":function(t,e,o){"use strict";var i=o("1b53"),a=o.n(i);a.a},"298f":function(t,e,o){"use strict";o("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={components:{},data:function(){return{useraddress:{},id:0,xieyi:"",address_id:0,weight:-1,typeinfo:"",detail:[],remark:"",weightlist:[],index:[0,0],timeflag:"",yuyue_time:[],dateShow:!1,leftIndex:0,rightList:[]}},onShow:function(){this.getdata();var t=uni.getStorageSync("user_address");t&&(this.useraddress=t,this.address_id=t.id,uni.removeStorageSync("user_address"))},onHide:function(){},mounted:function(){console.log("ddddddddddff"),this.getdata()},onLoad:function(t){console.log("dddddddddd"),this.id=t.id,this.getdata();var e=uni.getStorageSync("userToken");e&&this.userDefaultaddress()},onReachBottom:function(){},methods:{open:function(){this.dateShow=!0},close:function(){this.dateShow=!1},leftClick:function(t){this.leftIndex=t},rightClick:function(t){this.$emit("checkTime",this.yuyue_time[0][this.leftIndex]+"-"+this.rightList[t]),this.dateShow=!1},userDefaultaddress:function(){var t=this;this.$api.userDefaultAddress({},(function(e){1==e.code&&e.data&&(t.useraddress=e.data,t.address_id=t.useraddress.id)}))},goAddress:function(){var t=uni.getStorageSync("userToken");t?uni.navigateTo({url:"/pages/address/list?type=order"}):uni.navigateTo({url:"/pages/login/login"})},toshow:function(){this.$refs.lvvpopref.show()},toclose:function(){this.$refs.lvvpopref.close()},changeWeight:function(t){this.weight=t,console.log(t)},bindPickerChange:function(t){this.index=t.detail.value;var e=t.detail.value[0],o=t.detail.value[1];0==this.yuyue_time[1].length?this.timeflag=this.yuyue_time[0][e]:this.timeflag=this.yuyue_time[0][e]+"-"+this.yuyue_time[1][o]},getdata:function(){var t=this,e={id:this.id};this.$api.typeinit(e,(function(e){"1"==e.code&&(t.yuyue_time=e.data.yuyue_time,t.rightList=e.data.yuyue_time[1],t.typeinfo=e.data.typeinfo,t.weightlist=e.data.weight,t.detail=e.data.detail,t.xieyi=e.data.xieyi)}))},createOrder:function(){if("-1"==this.weight)return uni.showToast({icon:"none",title:"请选择预约重量"}),!1;if(0==this.address_id||!this.address_id)return uni.showToast({icon:"none",title:"请选择回收地址"}),!1;if(""==this.timeflag)return uni.showToast({icon:"none",title:"请选择回收时间"}),!1;var t={id:this.id,order_time:this.timeflag,weight:this.weightlist[this.weight],address_id:this.address_id,remark:this.remark};this.$api.addorder(t,(function(t){uni.showToast({title:t.msg,icon:"none"}),"1"==t.code&&setTimeout((function(){uni.switchTab({url:"/pages/order/order"})}),1500)}))}}};e.default=i},"3ef1":function(t,e,o){"use strict";o("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("c223"),o("bf0f"),o("aa9c"),o("5c47"),o("0506"),o("a1c1"),o("23f4"),o("7d2f"),o("9c4e"),o("ab80"),o("795c");var i=o("a8ba"),a={openMap:function(t,e,o){var i="";i="geo:"+e+","+o+"?q="+encodeURIComponent(t),console.log(t,e,o),"android"==uni.getSystemInfoSync().platform?plus.runtime.openURL(i):plus.nativeUI.actionSheet({title:"选择地图应用",cancel:"取消",buttons:[{title:"Apple地图"},{title:"百度地图"},{title:"高德地图"},{title:"google地图"}]},(function(a){switch(console.log("e.index: "+a.index),a.index){case 1:i="http://maps.apple.com/?q=".concat(encodeURIComponent(t),"&ll=").concat(e,",").concat(o,"&spn=0.008766,0.019441");break;case 2:i="baidumap://map/marker?location=".concat(e,",").concat(o,"&title=DCloud&src=Hello%20uni-app");break;case 3:i="iosamap://viewMap?sourceApplication=Hello%20uni-app&poiname=DCloud&lat=".concat(e,"&lon=").concat(o,"&dev=0");break;case 4:i="comgooglemaps://?q=".concat(encodeURIComponent(t),"¢er=").concat(e,",").concat(o);break}}))},getAddress:function(t){console.log("+++++++++++++++++"),t({city:"南京市",longitude:118.710193,latitude:32.202905});var e=this;uni.getLocation({type:"wgs84",geocode:!0,success:function(o){console.log("当前位置的经度:"+o.longitude,o),console.log("当前位置的纬度:"+o.latitude),e.longitude=o.longitude,e.latitude=o.latitude;var a={longitude:o.longitude,latitude:o.latitude};console.log(a,"fffffff");var n=new i({key:"EO2BZ-YGE33-NHJ3S-RCRUJ-WT47J-5DB3I"});n.reverseGeocoder({location:a,success:function(o){console.log(o,o.result.address,"9999"),e.position=o.result.address_component.city,t&&t({city:e.position,longitude:a.longitude,latitude:a.latitude})}})},fail:function(t){console.log("dddddddd---",t)},complete:function(t){console.log("getLocaltion===+++---",t)}})},delRepeat:function(t,e){var o=[];return t.some((function(t,e){console.log(t);var i=!1;o.some((function(e,o){t.tn==e.tn&&(i=!0)})),i||o.push(t)})),o},Format:function(t,e){t=new Date(t);var o={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var i in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),o)new RegExp("("+i+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?o[i]:("00"+o[i]).substr((""+o[i]).length)));return e},formatDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss",o=new Date(t),i={YYYY:o.getFullYear(),MM:String(o.getMonth()+1).padStart(2,"0"),DD:String(o.getDate()).padStart(2,"0"),HH:String(o.getHours()).padStart(2,"0"),mm:String(o.getMinutes()).padStart(2,"0"),ss:String(o.getSeconds()).padStart(2,"0")};return e.replace(/YYYY|MM|DD|HH|mm|ss/g,(function(t){return i[t]}))},showMsg:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1600;uni.showToast({title:t,duration:o,icon:e||"none"})},getDate:function(t){var e=this.Format(t,"yyyy/MM/dd hh:mm"),o=Date.parse(new Date(e)),i={};return i.timeStr=e,i.timeParse=o,i},backPage:function(t){setTimeout((function(){uni.navigateBack({delta:1})}),t||3e3)}},n=a;e.default=n},"4db6":function(t,e,o){o("6a54");var i=o("8bcf");function a(t,e){for(var o=0;o1?" | "+i+":"+t[i]:i+":"+t[i],o++;return console.log(e),e},selectTime:function(){"1"!=this.orderInfo.status&&"7"!=this.orderInfo.status&&"2"!=this.orderInfo.status||this.$refs.timeRef.open()},callPhone:function(t){uni.makePhoneCall({phoneNumber:t,success:function(t){console.log("拨号成功",t)},fail:function(t){console.error("拨号失败",t)}})}},(0,a.default)(n,"deelData",(function(t){console.log(t);var e="",o=1;for(var i in t)console.log(i),e+=o>1?" | "+i+":"+t[i]:i+":"+t[i],o++;return console.log(e),e})),(0,a.default)(n,"cancelOrder",(function(){var t=this;uni.showModal({title:"提示",content:"确认要取消订单吗?",success:function(e){if(e.confirm){var o={id:t.order_id};t.$api.cancelorder(o,(function(t){1==t.code?(uni.showToast({title:t.msg,icon:"success"}),setTimeout((function(){uni.navigateBack({delta:1})}),2e3)):uni.showToast({title:t.msg,icon:"none"})}))}}})})),(0,a.default)(n,"getOrderDetail",(function(){var t=this,e={id:t.order_id};t.$api.personorderdetail(e,(function(e){if(1==e.code){var o=e.data.info;t.orderInfo=o,t.order_person_time=o.order_person_time}else uni.showToast({title:e.msg,icon:"none"})}))})),(0,a.default)(n,"call",(function(t){uni.makePhoneCall({phoneNumber:t,success:function(){console.log("拨打电话成功")},fail:function(){console.log("打电话失败了")}})})),n)};e.default=s},"883d":function(t,e,o){o("7a76"),o("c9b5"),t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports["default"]=t.exports},"97d2":function(t,e,o){var i=o("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */.u-line-1[data-v-1d8570b3]{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important\n}.u-line-2[data-v-1d8570b3]{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important\n}.u-line-3[data-v-1d8570b3]{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important\n}.u-line-4[data-v-1d8570b3]{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important\n}.u-line-5[data-v-1d8570b3]{\n\n\ndisplay:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important\n}.u-border[data-v-1d8570b3]{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top[data-v-1d8570b3]{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left[data-v-1d8570b3]{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right[data-v-1d8570b3]{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom[data-v-1d8570b3]{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom[data-v-1d8570b3]{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button[data-v-1d8570b3]{padding:0;background-color:initial;\nfont-size:inherit;line-height:inherit;color:inherit;\n}\n.u-reset-button[data-v-1d8570b3]::after{border:none}\n.u-hover-class[data-v-1d8570b3]{opacity:.7}.u-primary-light[data-v-1d8570b3]{color:#ecf5ff}.u-warning-light[data-v-1d8570b3]{color:#fdf6ec}.u-success-light[data-v-1d8570b3]{color:#f5fff0}.u-error-light[data-v-1d8570b3]{color:#fef0f0}.u-info-light[data-v-1d8570b3]{color:#f4f4f5}.u-primary-light-bg[data-v-1d8570b3]{background-color:#ecf5ff}.u-warning-light-bg[data-v-1d8570b3]{background-color:#fdf6ec}.u-success-light-bg[data-v-1d8570b3]{background-color:#f5fff0}.u-error-light-bg[data-v-1d8570b3]{background-color:#fef0f0}.u-info-light-bg[data-v-1d8570b3]{background-color:#f4f4f5}.u-primary-dark[data-v-1d8570b3]{color:#398ade}.u-warning-dark[data-v-1d8570b3]{color:#f1a532}.u-success-dark[data-v-1d8570b3]{color:#53c21d}.u-error-dark[data-v-1d8570b3]{color:#e45656}.u-info-dark[data-v-1d8570b3]{color:#767a82}.u-primary-dark-bg[data-v-1d8570b3]{background-color:#398ade}.u-warning-dark-bg[data-v-1d8570b3]{background-color:#f1a532}.u-success-dark-bg[data-v-1d8570b3]{background-color:#53c21d}.u-error-dark-bg[data-v-1d8570b3]{background-color:#e45656}.u-info-dark-bg[data-v-1d8570b3]{background-color:#767a82}.u-primary-disabled[data-v-1d8570b3]{color:#9acafc}.u-warning-disabled[data-v-1d8570b3]{color:#f9d39b}.u-success-disabled[data-v-1d8570b3]{color:#a9e08f}.u-error-disabled[data-v-1d8570b3]{color:#f7b2b2}.u-info-disabled[data-v-1d8570b3]{color:#c4c6c9}.u-primary[data-v-1d8570b3]{color:#3c9cff}.u-warning[data-v-1d8570b3]{color:#f9ae3d}.u-success[data-v-1d8570b3]{color:#5ac725}.u-error[data-v-1d8570b3]{color:#f56c6c}.u-info[data-v-1d8570b3]{color:#909399}.u-primary-bg[data-v-1d8570b3]{background-color:#3c9cff}.u-warning-bg[data-v-1d8570b3]{background-color:#f9ae3d}.u-success-bg[data-v-1d8570b3]{background-color:#5ac725}.u-error-bg[data-v-1d8570b3]{background-color:#f56c6c}.u-info-bg[data-v-1d8570b3]{background-color:#909399}.u-main-color[data-v-1d8570b3]{color:#303133}.u-content-color[data-v-1d8570b3]{color:#606266}.u-tips-color[data-v-1d8570b3]{color:#909193}.u-light-color[data-v-1d8570b3]{color:#c0c4cc}\n.u-safe-area-inset-top[data-v-1d8570b3]{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right[data-v-1d8570b3]{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom[data-v-1d8570b3]{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left[data-v-1d8570b3]{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}\nuni-toast[data-v-1d8570b3]{z-index:10090}uni-toast .uni-toast[data-v-1d8570b3]{z-index:10090}\n[data-v-1d8570b3]::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}\n\n\n\n\n\n\n\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-page-body[data-v-1d8570b3]{background:#eee}body.?%PAGE?%[data-v-1d8570b3]{background:#eee}.popBox[data-v-1d8570b3]{padding:%?58?% 0 0}.tipLabel[data-v-1d8570b3]{font-weight:400;font-size:%?24?%;color:#999;padding:0 %?49?%;margin-top:%?10?%;margin-bottom:%?20?%}.leftBox[data-v-1d8570b3]{width:%?250?%}.leftBox .leftEle[data-v-1d8570b3]{width:100%;height:%?120?%;background:#f1f1f1;font-weight:500;font-size:%?30?%;color:#000}.rightBox[data-v-1d8570b3]{flex:1;height:%?720?%;overflow:auto}.rightBox .rightEle[data-v-1d8570b3]{width:100%;height:%?120?%;line-height:%?120?%;padding-left:%?88?%}.checkLeft[data-v-1d8570b3]{background:#fff!important}',""]),t.exports=e},"9a78":function(t,e,o){var i=o("97d2");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=o("967d").default;a("30eb0226",i,!0,{sourceMap:!1,shadowMode:!1})},a19d:function(t,e,o){"use strict";o.r(e);var i=o("298f"),a=o.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(n);e["default"]=a.a},a8ba:function(t,e,o){var i=o("883d").default,a=o("4db6").default;o("aa9c"),o("e838"),o("7a76"),o("c9b5"),o("8f71"),o("bf0f");var n={KEY_ERR:311,KEY_ERR_MSG:"key格式错误",PARAM_ERR:310,PARAM_ERR_MSG:"请求参数信息有误",SYSTEM_ERR:600,SYSTEM_ERR_MSG:"系统错误",WX_ERR_CODE:1e3,WX_OK_CODE:200},r="https://apis.map.qq.com/ws/",d=r+"place/v1/suggestion",s={location2query:function(t){if("string"==typeof t)return t;for(var e="",o=0;o