(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["take-outCabinets-page-pickup-pickup"],{"0045":function(t,e,o){"use strict";o("6a54");var n=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("d4b5"),o("c223");var i=o("4022"),a=o("262c"),s=o("a69d"),r=n(o("6fbe")),c=n(o("13de")),l=o("419c"),d=o("e0a2"),u={mixins:[r.default],components:{JudgeLocation:c.default},data:function(){return{showOrderList:!1,showPrompt:!1,focusStatu:!1,showDoors:!1,showOrder:!1,code:"",orderCarry:!1,orderInfo:{},listData:[],locationInfo:{lat:0,lng:0,address:""},cabindeInfo:{},lock_id:"",isGetorder:!1,lock_type:1}},created:function(){2==uni.getStorageSync("lock_type")&&(this.lock_type=2),this.initCustomNavBarInfo()},mounted:function(){2==this.lock_type?this.getTakeoutOrderWait():this.getOrderWait()},onShow:function(){2==this.lock_type?this.getTakeoutOrderWait():this.getOrderWait()},onLoad:function(t){t.lock_id&&(this.lock_id=t.lock_id,this.getLockInfo())},methods:{getLockInfo:function(){var t=this;2==this.lock_type?(0,i.getTakeoutLockInfoApi)({lock_id:this.lock_id}).then((function(e){console.log("接口回调",e),t.locationInfo.address=e.data.name})).catch((function(t){console.error("请求错误",t)})):(0,i.getLockInfoApi)({lock_id:this.lock_id}).then((function(e){console.log("接口回调",e),t.locationInfo.address=e.data.name})).catch((function(t){console.error("请求错误",t)}))},navBack:function(){uni.navigateBack()},getTakeoutOrderWait:function(){var t=this;console.log(this.lock_id),(0,i.getTakeoutOrderTreatApi)({lock_id:this.lock_id}).then((function(e){console.log("接口回调",e),e.length>0&&(t.isGetorder=!0,t.listData=e,t.showOrderList=!0)})).catch((function(t){console.error("请求w错误",t)}))},getOrderWait:function(){var t=this;console.log(this.lock_id),(0,i.getOrderTreatApi)({lock_id:this.lock_id}).then((function(e){console.log("接口回调",e),e.length>0&&(t.isGetorder=!0,t.listData=e,t.showOrderList=!0)})).catch((function(t){console.error("请求w错误",t)}))},openCabin:function(){this.isGetorder=!0,this.showOrder=!1,this.showPrompt=!0,this.isGetorder&&(this.cabindeInfo=this.orderInfo)},getOrder:function(){console.log("lock_type",this.lock_type),2==this.lock_type?this.getTakeoutOrderStatus():this.getOrderStatu()},openOrder:function(t,e){1==e?(this.isGetorder=!0,this.showPrompt=!0,this.isGetorder&&(this.cabindeInfo=this.listData[t],console.log("this.cabindeInfo",this.cabindeInfo),this.confirm())):uni.showToast({title:"该订单已经领取了!",icon:"none"})},getOrderStatu:function(t){var e=this,o={lock_id:this.lock_id,code:this.code};this.isGetorder=!1,(0,i.getOrderInfoApi)(o).then((function(t){if(console.log("接口回调",t),1==t.length){var o=t[0];e.cabindeInfo=o,e.showPrompt=!0}else e.listData=t,e.showOrderList=!0})).catch((function(t){console.error("请求错误",t),uni.showToast({title:t.msg,icon:"none"})}))},getTakeoutOrderStatus:function(t){var e=this,o={lock_id:this.lock_id,code:this.code};this.isGetorder=!1,(0,i.getTakeoutOrderInfoApi)(o).then((function(t){console.log("接口回调",t.data),e.cabindeInfo=t.data,e.showPrompt=!0})).catch((function(t){console.error("请求错误",t),uni.showToast({title:t.msg,icon:"none"})}))},openinput:function(){this.focusStatu=!0},changInput:function(t){console.log(t),this.code=t.detail.value},confirm:function(t){if(this.showPrompt=!1,2==this.lock_type)var e={userClient:"user",type:"unlockChannel",method:"order_sn",order_sn:this.cabindeInfo.order_sn,channel_id:this.cabindeInfo.channel_id,device_sn:this.cabindeInfo.device_sn,ccid:this.cabindeInfo.channelInfo.ccid,lock_id:this.cabindeInfo.channelInfo.lock_id,channel:this.cabindeInfo.channelInfo.channel,panelId:this.cabindeInfo.channelInfo.panelId},o=d.LOCK_WEBSOCKET_URL;else e={userClient:"takeout",type:"unlockChannel",lock_id:this.cabindeInfo.lock_id,channel_id:this.cabindeInfo.channel_id,order_id:this.cabindeInfo.id},o="wss://lock.wdsp666.com:9508";console.log(e);var n=this;uni.connectSocket({url:o,success:function(t){console.log("连接成功",t)}}),uni.onSocketOpen((function(t){console.log("WebSocket连接已打开!"),uni.sendSocketMessage({data:JSON.stringify(e)})})),uni.onSocketMessage((function(t){var o;console.log("收到服务器内容:"+JSON.stringify(t)),"open_success"!=(null===t||void 0===t||null===(o=t.data)||void 0===o?void 0:o.msg)&&"open success!"!=t.data||(uni.navigateTo({url:"../cabinetStatus/cabinetStatus?statu=2&channel=".concat(n.cabindeInfo.channel_name,"&sendData=").concat(JSON.stringify(e),"&lock_id=").concat(n.cabindeInfo.lock_id)}),n.showPrompt=!1,n.code="")}))},updateAddressInfo:function(){var t,e,o=(0,a.getLocationInfoFromCache)();o&&this.locationInfo.lat!=o.lat&&this.locationInfo.lng!=o.lng&&(o.lat&&(this.locationInfo.lat=o.lat),o.lng&&(this.locationInfo.lng=o.lng),o.address&&(this.locationInfo.address=o.address)),this.locationSuccessFlag||(null===(t=this.$refs)||void 0===t||null===(e=t.judgeLocationRef)||void 0===e?void 0:e.checkLocationInfo)&&this.$refs.judgeLocationRef.checkLocationInfo()},handleLocationAuthSuccess:function(t){var e=this;this.locationSuccessFlag||(this.locationSuccessFlag=!0,this.locationInfo.lat=t.lat,this.locationInfo.lng=t.lng,(0,s.getNearAddressPoisApi)({latitude:t.lat,longitude:t.lng}).then((function(t){e.locationInfo.address=t.address,(0,a.setLocationInfoToCache)(e.locationInfo)})).catch((function(){e.locationInfo.lat=e.locationInfo.lat||"",e.locationInfo.lng=e.locationInfo.lng||"",e.locationInfo.address=e.locationInfo.address||"",e.locationInfo.lat&&e.locationInfo.lng&&e.refreshPageData()})))},navPage:l.navPage}};e.default=u},"029b":function(t,e,o){"use strict";o.r(e);var n=o("0045"),i=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"1c1e":function(t,e,o){var n=o("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */\n/* 自定义顶部导航 start */.navbar[data-v-3596f51e]{position:fixed;left:0;top:0;width:100%;background-color:#fff;z-index:19999\n /* 标题 start */\n /* 标题 end */}.navbar .left-icon[data-v-3596f51e]{position:absolute;left:%?30?%;display:flex;align-items:center;font-size:%?40?%}.navbar__title[data-v-3596f51e]{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);line-height:1;font-size:%?32?%;font-weight:700}.mind-page[data-v-3596f51e]{padding:%?30?%}ul[data-v-3596f51e],\nli[data-v-3596f51e]{margin:0;padding:0;list-style:none}.position[data-v-3596f51e]{display:flex;align-items:center}.position .left-icon[data-v-3596f51e]{width:%?28?%;margin-right:%?5?%}.centent[data-v-3596f51e]{margin-top:%?50?%;padding:%?30?%;border-radius:%?20?%;overflow:hidden;background-color:#fff}.centent .phone[data-v-3596f51e]{font-size:%?40?%}.centent .phone .phone-title[data-v-3596f51e]{display:flex;align-items:center}.centent .phone .title[data-v-3596f51e]{font-weight:700}.centent .phone .left-icon[data-v-3596f51e]{width:%?35?%;margin-right:%?10?%}.centent .phone .tips[data-v-3596f51e]{margin:%?10?% 0 %?50?%;font-size:%?28?%;color:#ff9243}.centent .phone-tail-number[data-v-3596f51e]{display:flex;justify-content:space-around;width:100%;margin-bottom:%?40?%;position:relative}.centent .phone-tail-number .uni-input[data-v-3596f51e]{position:absolute;width:100%;height:100%;left:0;top:0;opacity:0}.centent .phone-tail-number .numbers[data-v-3596f51e]{text-align:center;font-weight:700;min-height:%?130?%;font-size:%?80?%;border-bottom:%?6?% solid #e5e5e7;width:20%}.centent .buttons[data-v-3596f51e]{display:flex;justify-content:space-around;margin-bottom:%?50?%}.centent .buttons .btn[data-v-3596f51e]{width:45%;background-color:#f6f6f6;text-align:center;padding:%?10?%;border-radius:%?10?%;overflow:hidden}.centent .buttons .btn .name[data-v-3596f51e]{display:block;font-size:%?36?%;font-weight:700}.centent .buttons .btn .price[data-v-3596f51e]{font-size:%?28?%}.submit[data-v-3596f51e]{margin-top:%?50?%}.submit .button[data-v-3596f51e]{background-color:#1db4c7;width:70%;border-radius:%?50?%;overflow:hidden;font-size:%?32?%;color:#fff}.tnPop2[data-v-3596f51e]{text-align:center;padding:%?30?%!important}.tnPop2 .image[data-v-3596f51e]{width:35%}.tnPop2 .texts[data-v-3596f51e]{margin-top:%?20?%;font-size:%?55?%;font-weight:700}.tnPop2 .texts .num[data-v-3596f51e]{color:#ff9243}.tnPop[data-v-3596f51e]{text-align:center;padding:%?70?% %?30?% %?30?%}.tnPop .title[data-v-3596f51e]{font-size:%?45?%;font-weight:700;margin-bottom:%?20?%}.tnPop .tips[data-v-3596f51e]{color:#ff9243}.tnPop .nums[data-v-3596f51e]{font-size:%?75?%;font-weight:700}.tnPop .btns[data-v-3596f51e]{margin-top:%?60?%;display:flex;justify-content:space-between;width:100%;font-size:%?28?%}.tnPop .btns .button[data-v-3596f51e]{width:45%;background-color:#e5e5e7}.tnPop .btns .btn2[data-v-3596f51e]{background-color:#1db4c7!important;color:#fff}.prompt[data-v-3596f51e]{position:relative;height:100%;text-align:center}.prompt .title[data-v-3596f51e]{padding:%?10?% %?20?%;font-size:%?45?%;font-weight:bolder}.prompt .title .logo[data-v-3596f51e]{width:17%;margin-right:%?20?%}.prompt .title .close[data-v-3596f51e]{position:absolute;right:%?30?%;top:%?10?%;font-style:italic}.prompt .cabinetInfo[data-v-3596f51e]{position:absolute;bottom:0;left:0;width:100%;text-align:center}.prompt .cabinetInfo .num[data-v-3596f51e]{font-size:%?120?%;font-weight:700;margin-bottom:%?30?%}.prompt .cabinetInfo .image[data-v-3596f51e]{width:70%}.prompt .cabinetInfo .openCab[data-v-3596f51e]{width:70%;border-radius:%?20?%;background-color:#1db4c7;color:#fff;margin:%?30?% auto;font-size:%?30?%}.orderList[data-v-3596f51e]{height:100%;text-align:center;background-color:#999;display:flex;flex-direction:column}.orderList .title[data-v-3596f51e]{border-radius:%?20?%;font-size:%?35?%;margin:%?10?% %?30?% 0;padding:%?10?% 0;font-weight:bolder;background-color:#fff;position:relative}.orderList .title .close[data-v-3596f51e]{position:absolute;right:%?20?%;top:%?10?%}.orderList .scrlist[data-v-3596f51e]{flex:1;overflow-y:auto}.orderList .scrlist .list-box[data-v-3596f51e]{padding:0 %?30?% %?30?%}.orderList .scrlist .for-item[data-v-3596f51e]{padding:%?30?%;border-radius:%?20?%;background-color:#fff;position:relative;overflow:hidden;margin-top:%?30?%}.orderList .scrlist .for-item .status[data-v-3596f51e]{position:absolute;right:0;top:0;border-radius:0 0 0 %?20?%;padding:%?10?% %?12?%;color:#fff;background:linear-gradient(to bottom left,#fdae8d,#f65322)}.orderList .scrlist .for-item .status2[data-v-3596f51e]{position:absolute;right:0;top:0;border-radius:0 0 0 %?20?%;padding:%?10?% %?12?%;color:#fff;background:linear-gradient(to bottom left,#27d58c,#26b87c)}.orderList .scrlist .for-item .time[data-v-3596f51e]{text-align:left;font-size:%?33?%;font-weight:700}.orderList .scrlist .for-item .ul-lis .li-flex[data-v-3596f51e]{text-align:left;font-size:%?32?%;display:flex;justify-content:space-between;align-items:center;line-height:%?60?%}.orderList .scrlist .for-item .ul-lis .li-flex .span[data-v-3596f51e]{width:30%;color:#666}.orderList .scrlist .for-item .ul-lis .li-flex .text[data-v-3596f51e]{flex:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.orderList .scrlist .for-item .btns[data-v-3596f51e]{margin-top:%?50?%;display:flex;justify-content:flex-end}.orderList .scrlist .for-item .btns .button[data-v-3596f51e]{font-size:%?30?%;margin:0 0 0 %?20?%;width:40%}[data-v-3596f51e] .uni-scroll-view,[data-v-3596f51e] .tn-popup__content__center_box{overflow:visible!important}.doors[data-v-3596f51e]{padding:%?30?%;text-align:center}.doors .tips[data-v-3596f51e]{margin-top:%?-120?%;width:35%;margin-bottom:%?30?%}.doors .text[data-v-3596f51e]{width:%?440?%;font-size:%?50?%;font-weight:700;margin:0 auto}.doors .btns[data-v-3596f51e]{margin-top:%?60?%;display:flex;justify-content:space-between;width:100%;font-size:%?28?%}.doors .btns .button[data-v-3596f51e]{width:45%;background-color:#e5e5e7}.doors .btns .btn2[data-v-3596f51e]{background-color:#1db4c7!important;color:#fff}',""]),t.exports=e},"1fbf":function(t,e,o){"use strict";o.r(e);var n=o("6197"),i=o("84ae");for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);o("47c3");var s=o("828b"),r=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"ef46d0a4",null,!1,n["a"],void 0);e["default"]=r.exports},"25b7":function(t,e,o){"use strict";var n=o("2dca"),i=o.n(n);i.a},"2dca":function(t,e,o){var n=o("1c1e");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=o("967d").default;i("d9c69c76",n,!0,{sourceMap:!1,shadowMode:!1})},"3e44":function(t,e,o){"use strict";o.r(e);var n=o("46a1"),i=o("029b");for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);o("4a6c"),o("25b7");var s=o("828b"),r=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"3596f51e",null,!1,n["a"],void 0);e["default"]=r.exports},4022:function(t,e,o){"use strict";o("6a54");var n=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.payApi=e.keepRecordsApi=e.getiPriceApi=e.getiPhoneApi=e.getiCabinetApi=e.getTakeoutOrderTreatApi=e.getTakeoutOrderInfoApi=e.getTakeoutLockInfoApi=e.getOrderTreatApi=e.getOrderInfoApi=e.getLockInfoApi=e.craterOrderApi=void 0;var i=n(o("7653"));e.getiPhoneApi=function(t){var e=t.code,o=t.lock_id;return i.default.get("api/user.third_lock.third_lock_order/checkCode",{code:e,lock_id:o})};e.getiPriceApi=function(t){var e=t.lock_id;return i.default.get("api/user.third_lock.third_lock/getPrice",{lock_id:e})};e.getiCabinetApi=function(t){var e=t.lock_id,o=t.size;return i.default.get("api/user.third_lock.third_lock/getEmptyChannel",{lock_id:e,size:o})};e.craterOrderApi=function(t){var e=t.lock_id,o=t.channel_id,n=t.code;return i.default.post("api/user.third_lock.third_lock_order/createOrder",{lock_id:e,channel_id:o,code:n})};e.payApi=function(t){var e=t.id,o=t.order_type,n=t.action,a=t.pay_type,s=t.ochannel;return i.default.post("api/user.order.pay/initiatePayment",{id:e,order_type:o,action:n,pay_type:a,ochannel:s})};e.keepRecordsApi=function(t){var e=t.page,o=t.psize;return i.default.get("api/user.third_lock.third_lock_order/myOrder",{page:e,psize:o})};e.getOrderInfoApi=function(t){var e=t.lock_id,o=t.code;return i.default.post("api/user.third_lock.third_lock_order/checkTakeout",{lock_id:e,code:o})};e.getOrderTreatApi=function(t){var e=t.lock_id;return i.default.get("api/user.third_lock.third_lock_order/myWaitTakeoutOrder",{lock_id:e})};e.getTakeoutOrderInfoApi=function(t){var e=t.lock_id,o=t.code;return i.default.post("api/user.lock.lock_order/checkTakeout",{lock_id:e,code:o})};e.getTakeoutOrderTreatApi=function(t){var e=t.lock_id;return i.default.get("api/user.lock.lock_order/myWaitTakeoutOrder",{lock_id:e})};e.getLockInfoApi=function(t){var e=t.lock_id;return i.default.get("api/user.third_lock.third_lock/getLockInfo",{lock_id:e})};e.getTakeoutLockInfoApi=function(t){var e=t.lock_id;return i.default.get("api/user.lock.lock_order/getLockInfo",{lock_id:e})}},"45b3":function(t,e,o){var n=o("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-popup[data-v-ef46d0a4]{display:block;position:fixed;top:0;left:0;right:0;bottom:0;overflow:hidden}.tn-popup__content[data-v-ef46d0a4]{display:block;position:absolute;transition:all .25s linear}.tn-popup__content--visible[data-v-ef46d0a4]{-webkit-transform:translateZ(0)!important;transform:translateZ(0)!important}.tn-popup__content--visible.tn-popup--center[data-v-ef46d0a4]{-webkit-transform:scale(1);transform:scale(1);opacity:1}.tn-popup__content__center_box[data-v-ef46d0a4]{min-width:%?100?%;min-height:%?100?%;display:block;position:relative}.tn-popup__content__scroll-view[data-v-ef46d0a4]{width:100%;height:100%}.tn-popup__content__center--animation-zoom[data-v-ef46d0a4]{-webkit-transform:scale(1.15);transform:scale(1.15)}.tn-popup__scroll_view[data-v-ef46d0a4]{width:100%;height:100%}.tn-popup--left[data-v-ef46d0a4]{top:0;bottom:0;left:0;background-color:#fff}.tn-popup--right[data-v-ef46d0a4]{top:0;bottom:0;right:0;background-color:#fff}.tn-popup--top[data-v-ef46d0a4]{left:0;right:0;top:0;background-color:#fff}.tn-popup--bottom[data-v-ef46d0a4]{left:0;right:0;bottom:0;background-color:#fff}.tn-popup--center[data-v-ef46d0a4]{display:flex;flex-direction:column;bottom:0;top:0;left:0;right:0;justify-content:center;align-items:center;opacity:0}.tn-popup__close[data-v-ef46d0a4]{position:absolute}.tn-popup__close--top-left[data-v-ef46d0a4]{top:%?30?%;left:%?30?%}.tn-popup__close--top-right[data-v-ef46d0a4]{top:%?30?%;right:%?30?%}.tn-popup__close--bottom-left[data-v-ef46d0a4]{bottom:%?30?%;left:%?30?%}.tn-popup__close--bottom-right[data-v-ef46d0a4]{bottom:%?30?%;right:%?30?%}.tn-popup__mask[data-v-ef46d0a4]{width:100%;height:100%;position:fixed;top:0;left:0;right:0;border:0;background-color:rgba(0,0,0,.4);transition:.25s linear;transition-property:opacity;opacity:0}.tn-popup__mask--show[data-v-ef46d0a4]{opacity:1}',""]),t.exports=e},"46a1":function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){return n}));var n={tnPopup:o("1fbf").default},i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"mind-page"},[o("v-uni-view",{staticClass:"navbar tn-shadow",style:[t.navBarStyle]},[o("v-uni-text",{staticClass:"tn-icon-left left-icon",style:[t.navbarContentStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navBack.apply(void 0,arguments)}}}),o("v-uni-view",{staticClass:"navbar__title tn-flex-center",style:[t.navbarContentStyle]},[t._v("取件")])],1),o("v-uni-view",{staticClass:"position",style:{paddingTop:t.navBarInfo.height+"px"}},[o("v-uni-image",{staticClass:"left-icon",attrs:{src:"https://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/locker-delivery/location.png",mode:"widthFix"}}),o("span",[t._v(t._s(t.locationInfo.address||""))])],1),o("v-uni-view",{staticClass:"centent"},[o("v-uni-view",{staticClass:"phone"},[o("v-uni-view",{staticClass:"phone-title"},[o("v-uni-image",{staticClass:"left-icon",attrs:{src:"https://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/locker-delivery/mobile.png",mode:"widthFix"}}),o("span",{staticClass:"title"},[t._v("请输入顾客手机号后4位")])],1),o("p",{staticClass:"tips"},[t._v("注意不是隐私号")])],1),o("v-uni-view",{staticClass:"phone-tail-number",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openinput.apply(void 0,arguments)}}},[o("v-uni-input",{staticClass:"uni-input",attrs:{"auto-blur":!0,focus:t.focusStatu,maxlength:"4",type:"number"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.changInput.apply(void 0,arguments)}},model:{value:t.code,callback:function(e){t.code=e},expression:"code"}}),t._l(4,(function(e,n){return o("v-uni-view",{key:n,staticClass:"numbers"},[o("span",[t._v(t._s(t.code[n]))])])}))],2)],1),4===t.code.length?o("v-uni-view",{staticClass:"submit"},[o("v-uni-button",{staticClass:"button",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getOrder(2)}}},[t._v("确定")])],1):t._e(),o("tn-popup",{attrs:{mode:"bottom",height:"90%"},model:{value:t.showOrderList,callback:function(e){t.showOrderList=e},expression:"showOrderList"}},[o("v-uni-view",{staticClass:"orderList"},[o("v-uni-view",{staticClass:"title"},[o("span",[t._v("待取订单")]),o("v-uni-view",{staticClass:"close",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showOrderList=!1}}},[t._v("X")])],1),o("v-uni-scroll-view",{staticClass:"scrlist",attrs:{"scroll-y":"true"}},[o("v-uni-view",{staticClass:"list-box"},t._l(t.listData,(function(e,n){return o("v-uni-view",{key:n,staticClass:"for-item",style:{marginBottom:n==t.listData.length-1?"30rpx":""}},[1==e.order_status?o("v-uni-view",{staticClass:"status"},[t._v("未取件")]):o("v-uni-view",{staticClass:"status2"},[t._v("已取件")]),o("span",{staticClass:"time"},[t._v("存入时间 "+t._s(e.update_time))]),o("ul",{staticClass:"ul-lis"},[o("li",{staticClass:"li-flex"},[o("span",{staticClass:"span"},[t._v("外卖柜地址")]),o("p",{staticClass:"text"},[t._v(t._s(e.lock_address))])]),o("li",{staticClass:"li-flex"},[o("span",{staticClass:"span"},[t._v("柜门号码")]),o("p",{staticClass:"text"},[t._v(t._s(e.channel_name))])]),o("li",{staticClass:"li-flex"},[o("span",{staticClass:"span"},[t._v("取件号码")]),o("p",{staticClass:"text"},[t._v(t._s(e.code))])])]),o("v-uni-view",{staticClass:"btns"},[o("v-uni-button",{staticClass:"button",staticStyle:{"background-color":"#1DB4C7",color:"#fff"},on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.openOrder(n,e.order_status)}}},[t._v("取该订单")])],1)],1)})),1)],1)],1)],1),o("tn-popup",{attrs:{mode:"bottom",height:"50%"},model:{value:t.showPrompt,callback:function(e){t.showPrompt=e},expression:"showPrompt"}},[o("v-uni-view",{staticClass:"prompt"},[o("v-uni-view",{staticClass:"title"},[o("i",[t._v("请前往柜门处再开柜")]),o("v-uni-view",{staticClass:"close",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showPrompt=!1}}},[t._v("X")])],1),o("v-uni-view",{staticClass:"cabinetInfo"},[o("v-uni-view",{staticClass:"num"},[t._v(t._s(t.cabindeInfo.channel_name))]),o("v-uni-image",{staticClass:"image",attrs:{src:"https://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/locker-delivery/carb.png",mode:"widthFix"}}),o("v-uni-button",{staticClass:"openCab",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm()}}},[t._v("点击开柜")])],1)],1)],1)],1)},a=[]},"47c3":function(t,e,o){"use strict";var n=o("a547"),i=o.n(n);i.a},"4a6c":function(t,e,o){"use strict";var n=o("f721"),i=o.n(n);i.a},6197:function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.visibleSync?o("v-uni-view",{staticClass:"tn-popup-class tn-popup",style:[t.customStyle,t.popupStyle,{zIndex:t.elZIndex-1}],attrs:{"hover-stop-propagation":!0}},[o("v-uni-view",{staticClass:"tn-popup__mask",class:[{"tn-popup__mask--show":t.showPopup&&t.mask}],style:{zIndex:t.elZIndex-2},attrs:{"hover-stop-propagation":!0},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),function(){}.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.maskClick.apply(void 0,arguments)}}}),o("v-uni-view",{staticClass:"tn-popup__content",class:["center"!==t.mode?t.backgroundColorClass:"",t.safeAreaInsetBottom?"tn-safe-area-inset-bottom":"","tn-popup--"+t.mode,t.showPopup?"tn-popup__content--visible":"",t.zoom&&"center"===t.mode?"tn-popup__content__center--animation-zoom":""],style:[t.contentStyle],on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)},click:[function(e){arguments[0]=e=t.$handleEvent(e),t.modeCenterClose.apply(void 0,arguments)},function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)}]}},["center"===t.mode?o("v-uni-view",{staticClass:"tn-popup__content__center_box",class:[t.backgroundColorClass],style:[t.centerStyle],on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)},click:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)}}},[t.closeBtn?o("v-uni-view",{staticClass:"tn-popup__close",class:["tn-icon-"+t.closeBtnIcon,"tn-popup__close--"+t.closeBtnPosition],style:[t.closeBtnStyle,{zIndex:t.elZIndex}],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}):t._e(),o("v-uni-scroll-view",{staticClass:"tn-popup__content__scroll-view"},[t._t("default")],2)],1):o("v-uni-scroll-view",{staticClass:"tn-popup__content__scroll-view",attrs:{"scroll-y":!0}},[t._t("default")],2),"center"!==t.mode&&t.closeBtn?o("v-uni-view",{staticClass:"tn-popup__close",class:["tn-popup__close--"+t.closeBtnPosition],style:{zIndex:t.elZIndex},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[o("v-uni-view",{class:["tn-icon-"+t.closeBtnIcon],style:[t.closeBtnStyle]})],1):t._e()],1)],1):t._e()},i=[]},"65c2":function(t,e,o){"use strict";o("6a54");var n=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("64aa"),o("c223");var i=n(o("74ff")),a={mixins:[i.default],name:"tn-popup",props:{value:{type:Boolean,default:!1},mode:{type:String,default:"left"},mask:{type:Boolean,default:!0},length:{type:[Number,String],default:"auto"},width:{type:String,default:""},height:{type:String,default:""},zoom:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!1},maskCloseable:{type:Boolean,default:!0},customStyle:{type:Object,default:function(){return{}}},borderRadius:{type:Number,default:0},zIndex:{type:Number,default:0},closeBtn:{type:Boolean,default:!1},boxBg:{type:String,default:"#ffffff"},closeBtnIcon:{type:String,default:"close"},closeBtnPosition:{type:String,default:"top-right"},closeIconColor:{type:String,default:"#AAAAAA"},closeIconSize:{type:Number,default:30},negativeTop:{type:Number,default:0},marginTop:{type:Number,default:0},popup:{type:Boolean,default:!0}},computed:{popupStyle:function(){var t={};return"top"!==this.mode&&"left"!==this.mode&&"right"!==this.mode||!this.marginTop||(t.marginTop=this.$tn.string.getLengthUnitValue(this.marginTop,"px")),t},contentStyle:function(){var t={};if("left"===this.mode||"right"===this.mode?t={width:this.width?this.$tn.string.getLengthUnitValue(this.width):this.$tn.string.getLengthUnitValue(this.length),height:"100%",transform:"translate3D(".concat("left"===this.mode?"-100%":"100%",", 0px, 0px)")}:"top"!==this.mode&&"bottom"!==this.mode||(t={width:"100%",height:this.height?this.$tn.string.getLengthUnitValue(this.height):this.$tn.string.getLengthUnitValue(this.length),transform:"translate3D(0px, ".concat("top"===this.mode?"-100%":"100%",", 0px)")}),t.zIndex=this.elZIndex,this.borderRadius){switch(this.mode){case"left":t.borderRadius="0 ".concat(this.borderRadius,"rpx ").concat(this.borderRadius,"rpx 0");break;case"top":t.borderRadius="0 0 ".concat(this.borderRadius,"rpx ").concat(this.borderRadius,"rpx");break;case"right":t.borderRadius="".concat(this.borderRadius,"rpx 0 0 ").concat(this.borderRadius,"rpx");break;case"bottom":t.borderRadius="".concat(this.borderRadius,"rpx ").concat(this.borderRadius,"rpx 0 0");break}t.overflow="hidden"}return this.backgroundColorStyle&&"center"!==this.mode&&(t.backgroundColor=this.backgroundColorStyle),t},centerStyle:function(){var t={};return t.width=this.width?this.$tn.string.getLengthUnitValue(this.width):this.$tn.string.getLengthUnitValue(this.length),t.height=this.height?this.$tn.string.getLengthUnitValue(this.height):"auto",t.zIndex=this.elZIndex,t.backgroundColor=this.boxBg,this.negativeTop&&(t.marginTop="-".concat(this.$tn.string.getLengthUnitValue(this.negativeTop))),this.borderRadius&&(t.borderRadius="".concat(this.borderRadius,"rpx"),t.overflow="hidden"),this.backgroundColorStyle&&(t.backgroundColor=this.backgroundColorStyle),t},closeBtnStyle:function(){var t={};return this.closeIconColor&&(t.color=this.closeIconColor),this.closeIconSize&&(t.fontSize=this.closeIconSize+"rpx"),t},elZIndex:function(){return this.zIndex?this.zIndex:this.$tn.zIndex.popup}},data:function(){return{timer:null,visibleSync:!1,showPopup:!1,closeFromInner:!1}},watch:{value:function(t){if(t){if(this.visibleSync)return void(this.visibleSync=!1);this.open()}else this.closeFromInner||this.close();this.closeFromInner=!1}},mounted:function(){this.value&&this.open()},methods:{maskClick:function(){this.maskCloseable&&this.close()},open:function(){this.change("visibleSync","showPopup",!0)},close:function(){this.closeFromInner=!0,this.change("showPopup","visibleSync",!1)},modeCenterClose:function(){"center"==this.mode&&this.maskCloseable&&this.close()},change:function(t,e,o){var n=this;!0===this.popup&&this.$emit("input",o),this[t]=o,this.timer=o?setTimeout((function(){n[e]=o,n.$emit(o?"open":"close"),clearTimeout(n.timer)}),10):setTimeout((function(){n[e]=o,n.$emit(o?"open":"close"),clearTimeout(n.timer)}),250)}}};e.default=a},"74ff":function(t,e,o){o("64aa"),t.exports={data:function(){},props:{backgroundColor:{type:String,default:""},fontColor:{type:String,default:""},fontSize:{type:Number,default:0},fontUnit:{type:String,default:"rpx"}},computed:{backgroundColorStyle:function(){return this.$tn.color.getBackgroundColorStyle(this.backgroundColor)},backgroundColorClass:function(){return this.$tn.color.getBackgroundColorInternalClass(this.backgroundColor)},fontColorStyle:function(){return this.$tn.color.getFontColorStyle(this.fontColor)},fontColorClass:function(){return this.$tn.color.getFontColorInternalClass(this.fontColor)},fontSizeStyle:function(){return this.$tn.string.getLengthUnitValue(this.fontSize,this.fontUnit)}},methods:{}}},"84ae":function(t,e,o){"use strict";o.r(e);var n=o("65c2"),i=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},a547:function(t,e,o){var n=o("45b3");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=o("967d").default;i("02fcab87",n,!0,{sourceMap:!1,shadowMode:!1})},a69d:function(t,e,o){"use strict";o("6a54");var n=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.locationByIpApi=e.getUserAddressListApi=e.getNearestAddressApi=e.getNearAreaApi=e.getNearAddressPoisApi=e.getDefaultAgentApi=e.getAgentListByKeywordsApi=e.getAddressInfoWithKeyword=e.getAddressInfoWithIDApi=e.getAddressByIpApi=e.getAddressAreaListDataApi=e.editAddressApi=e.deleteAddressApi=e.addAddressApi=void 0;var i=n(o("7653"));e.getUserAddressListApi=function(){return i.default.get("api/user.member.address/list")};e.getNearAreaApi=function(t){var e=t.latitude,o=t.longitude;return i.default.get("api/user.home.home/getOtherAgents",{latitude:e,longitude:o})};e.getNearAddressPoisApi=function(t){var e=t.latitude,o=t.longitude;return i.default.get("api/Map/regeo",{latitude:e,longitude:o})};e.getAddressInfoWithKeyword=function(t){return i.default.get("api/Map/suggestion",{keywords:t})};e.getAddressInfoWithIDApi=function(t){return i.default.get("api/user.member.address/detail",{id:t})};e.addAddressApi=function(t){return i.default.post("api/user.member.address/addressModify",t)};e.editAddressApi=function(t){return i.default.post("api/user.member.address/addressModify",t)};e.deleteAddressApi=function(t){return i.default.get("api/user.member.address/del",{id:t})};e.getAddressAreaListDataApi=function(){return i.default.get("api/user.arealist.AreaList/list")};e.getAddressByIpApi=function(){return i.default.get("api/Map/getIp")};e.getAgentListByKeywordsApi=function(t){return i.default.get("api/Map/getAgentListByKeywords",{keywords:t})};e.getDefaultAgentApi=function(){return i.default.get("api/user.home.home/getDefaultAgent")};e.locationByIpApi=function(){return i.default.get("api/Map/locationByIp")};e.getNearestAddressApi=function(t){return i.default.get("api/user.member.address/getNearestAddress",t)}},dc1f:function(t,e,o){"use strict";o("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={data:function(){return{}},computed:{themeBgColor:function(){return this.$isTheme()?"--theme-general-color":this.vuex_themeBgColor||""},themeOpacityBgColor:function(){return this.vuex_themeBgColor?"".concat(this.vuex_themeBgColor,"7F"):""},themeFontColor:function(){return this.$isTheme()?"--general-color-text":this.vuex_themeFontColor||""},themeBtnStyle:function(){var t={};return this.vuex_themeBgColor&&(t.backgroundColor=this.vuex_themeBgColor),this.vuex_themeFontColor&&(t.color=this.vuex_themeFontColor),this.$isTheme()&&(t.backgroundColor="var(--theme-general-color)",t.color="--general-color-text"),t},themeLineBtnStyle:function(){var t={};return this.vuex_themeBgColor&&(t.border="1rpx solid ".concat(this.vuex_themeBgColor),t.color=this.vuex_themeBgColor),this.$isTheme()&&(t.border="1rpx solid var(--theme-general-color)",t.color="var(--theme-general-color)"),t}}}},f721:function(t,e,o){var n=o("fb84");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=o("967d").default;i("4442e7ba",n,!0,{sourceMap:!1,shadowMode:!1})},fb84:function(t,e,o){var n=o("c86c");e=n(!1),e.push([t.i,"uni-page-body[data-v-3596f51e]{background-color:#f5f7f9}body.?%PAGE?%[data-v-3596f51e]{background-color:#f5f7f9}",""]),t.exports=e}}]);