(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-edit-logisitics-edit-logisitics"],{"0e97":function(e,t,a){"use strict";a.r(t);var i=a("ff75"),n=a("1091");for(var o in n)"default"!==o&&function(e){a.d(t,e,(function(){return n[e]}))}(o);a("f554");var s,r=a("f0c5"),d=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"09ea9eb0",null,!1,i["a"],s);t["default"]=d.exports},1091:function(e,t,a){"use strict";a.r(t);var i=a("842d"),n=a.n(i);for(var o in i)"default"!==o&&function(e){a.d(t,e,(function(){return i[e]}))}(o);t["default"]=n.a},"842d":function(e,t,a){"use strict";(function(e){a("baa5"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a("d2e1"),n=a("4718"),o={data:function(){return{num:"",logs:[],order_no:"",index:0,startDay:"2020-01-01",date:"",express_phone:"",express_company:"",express_code:"",express_no:"",img:"",showGuide:!0}},onLoad:function(e){var t=JSON.parse(decodeURIComponent(e.data));this.order_no=t.order_no,this.img=t.img,this.express_company=t.express_company,this.express_code=t.express_code,this.express_no=t.express_no,this.express_phone=t.express_phone,this.date=t.express_time,this.getCode()},methods:{scanCode:function(){var t=this,a=window.location.href;(0,i.location)({url:a}).then((function(a){if(200==a.code){var i=JSON.parse(a.data);n.config({debug:!1,appId:i.appId,timestamp:i.timestamp,nonceStr:i.nonceStr,signature:i.signature,jsApiList:["scanQRCode"]}),n.ready((function(){n.checkJsApi({jsApiList:["scanQRCode"],success:function(e){0!=e.checkResult.scanQRCode||alert("你的微信版本太低,不支持微信JS接口,请升级到最新的微信版本!")}}),n.error((function(t){e.log(t.errMsg,"错误消息")})),n.scanQRCode({needResult:1,scanType:["qrCode","barCode"],success:function(e){var a=e.resultStr,i=a.lastIndexOf("/"),n=a.substring(i+1,a.length),o=n.lastIndexOf(","),s=n.substring(o+1,n.length);t.getExpress(s)}})}))}else e.log("扫码失败")}))},getExpress:function(e){var t=this;(0,i.getExpress)({expressCode:e}).then((function(e){if(200==e.code){if(!e.data.Success)return uni.showModal({content:"请重新扫码或手动选择输入",showCancel:!1}),!1;if(t.express_no=e.data.LogisticCode,e.data.Shippers){var a=e.data.Shippers[0],i=a.ShipperName,n=a.ShipperCode;t.express_company=i,t.express_code=n}else uni.showModal({content:"请重新扫码或手动选择输入",showCancel:!1}),t.logsName=t.logsCode=""}else uni.showModal({content:e.data||"获取数据失败",showCancel:!1})}))},getCode:function(){var e=this;(0,i.getLogsCode)().then((function(t){if(200==t.code){var a=t.data;for(var i in a)e.logs.push({code:i,name:a[i]})}else uni.showModal({content:t.data||"获取物流公司失败",showCancel:!1})}))},bindPickerChange:function(t){var a=t.detail.value;this.index=a,this.express_company=this.logs[a].name,this.express_code=this.logs[a].code,e.log(this.express_code)},bindDateChange:function(e){this.date=e.target.value},submit:function(){var e=this;return this.express_no?"请选择物流公司"==this.express_company?(uni.showModal({content:"物流名称不能为空",showCancel:!1}),!1):"顺丰速运"!=this.express_company||this.express_phone?this.date?void(0,i.editLog)({order_no:this.order_no,express_no:this.express_no,express_code:this.express_code,express_company:this.express_company,express_time:this.date,express_phone:this.express_phone}).then((function(t){200==t.code?uni.showModal({content:"修改成功",showCancel:!1,success:function(t){t.confirm&&uni.reLaunch({url:"../logistics-detail/logistics-detail?order_no="+e.order_no+"&img="+e.img})}}):uni.showModal({content:t.data||"修改失败",showCancel:!1})})):(uni.showModal({content:"发货日期不能为空",showCancel:!1}),!1):(uni.showModal({content:"请输入收货人手机号",showCancel:!1}),!1):(uni.showModal({content:"物流单号不能为空",showCancel:!1}),!1)}}};t.default=o}).call(this,a("5a52")["default"])},c113:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";.app-item[data-v-09ea9eb0]{display:flex;align-items:center;justify-content:center;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-09ea9eb0]{margin-top:%?10?%}.app-item uni-input[data-v-09ea9eb0], .app-item uni-picker[data-v-09ea9eb0], .app-item uni-textarea[data-v-09ea9eb0]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-09ea9eb0]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-09ea9eb0]{width:25%;height:50%;float:left;display:flex;align-items:center;flex-direction:column}.kingkong uni-navigator uni-image[data-v-09ea9eb0]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-09ea9eb0]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-09ea9eb0]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?630?%;height:%?88?%;font-size:%?34?%;margin:%?88?% auto 0;border-radius:%?44?%;color:#f76454;border:2px solid #f76454}.big-btn.bg[data-v-09ea9eb0]{color:#fff;background:#f76454}.small-btn[data-v-09ea9eb0]{display:flex;align-items:center;justify-content:center;flex-direction:row;padding:0 %?14?%;font-size:%?26?%;margin-left:%?10?%;color:#f76454;height:%?48?%!important;min-width:%?106?%!important;border:%?2?% solid #f76454}.small-btn.dank[data-v-09ea9eb0]{color:#999;border-color:#999}.login-btn[data-v-09ea9eb0]{flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-09ea9eb0]{display:flex;align-items:center;justify-content:center;flex-direction:row;top:50%;left:50%;width:%?400?%;height:%?88?%;color:#fff;position:fixed;font-size:%?32?%;border-radius:%?10?%;background:#f76454;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ellipsis[data-v-09ea9eb0]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-09ea9eb0]{margin-right:%?20?%}.border-right[data-v-09ea9eb0]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-09ea9eb0]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?16?%!important;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-09ea9eb0]{margin-right:%?6?%}.position-center[data-v-09ea9eb0]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-09ea9eb0]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-09ea9eb0]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-09ea9eb0]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.data-card .data-card-text .text[data-v-09ea9eb0]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-09ea9eb0]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-09ea9eb0]{color:#f76454}.swiper-nav[data-v-09ea9eb0]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:100%;height:%?84?%;color:#666;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;border-bottom:%?1?% solid #f2f2f2}.swiper-nav .item[data-v-09ea9eb0]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%}.swiper-nav .item.active[data-v-09ea9eb0]{color:#f76454}.swiper-nav .moveBar[data-v-09ea9eb0]{display:flex;align-items:center;justify-content:center;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-09ea9eb0]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-09ea9eb0]{flex:1;width:100%}.swiper-area uni-swiper[data-v-09ea9eb0]{width:100%;height:100%}.article-header[data-v-09ea9eb0]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?120?%;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-09ea9eb0]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-09ea9eb0]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%;margin-left:%?20?%;justify-content:flex-start}.article-header .name .identity[data-v-09ea9eb0]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-09ea9eb0]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-09ea9eb0]{color:#f76454}.article-footer[data-v-09ea9eb0]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-09ea9eb0]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-09ea9eb0]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-09ea9eb0]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-09ea9eb0]{color:#f76454}\r\n/*主题色及按钮渐变背景*/\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.guide_box[data-v-09ea9eb0]{width:100vw;height:100vh;position:fixed;top:0;left:0;background:rgba(0,0,0,.5);display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:999}.guide_box .express_img[data-v-09ea9eb0]{width:%?608?%;height:%?731?%}.address_box[data-v-09ea9eb0]{padding:%?30?%;width:100%;box-sizing:border-box;background-color:#f9f9fb;border-radius:%?24?%}.address_box .icondizhi1[data-v-09ea9eb0]{color:#fb231f;font-size:%?50?%;vertical-align:middle}.address_box .gray[data-v-09ea9eb0]{margin-left:%?20?%}.address_box .iconiconfontjiantou2[data-v-09ea9eb0]{color:#999}.address_box .ads_info[data-v-09ea9eb0]{margin:0 %?15?%}.address_box .ads_info .shop_info[data-v-09ea9eb0]{font-size:%?32?%;font-weight:700}.address_box .ads_info .shop_info uni-text[data-v-09ea9eb0]:last-child{font-size:%?28?%;color:#999}.address_box .ads_info .ads_del[data-v-09ea9eb0]{margin-top:%?15?%}.new_user .ads_picker[data-v-09ea9eb0]{width:%?690?%;background:#f9f9fb;padding-right:%?15?%}.new_user .ads_picker uni-input[data-v-09ea9eb0]{width:92%;font-size:%?28?%}.new_user .ads_picker .iconfont[data-v-09ea9eb0]{color:#999}.send_box[data-v-09ea9eb0]{width:100%;min-height:100%;background:#fff}.send_box .send_goods[data-v-09ea9eb0]{width:%?690?%;margin:0 auto;padding-top:%?30?%}.send_box .send_goods .label[data-v-09ea9eb0]{margin:%?30?% 0}.send_box .send_goods .label uni-text[data-v-09ea9eb0]:first-child{font-size:%?32?%;font-weight:700}.send_box .send_goods .label uni-text[data-v-09ea9eb0]:last-child{font-size:%?32?%;color:#fb231f;font-weight:700}.send_box .send_goods .scan_box[data-v-09ea9eb0]{width:%?690?%;background:#f9f9fb;border-radius:%?8?%}.send_box .send_goods .scan_box .scan_btn[data-v-09ea9eb0]{width:%?196?%;height:%?60?%;background:#fff4f3;border:%?2?% solid #fb231f;border-radius:%?34?%;color:#fb231f;margin-right:%?10?%;z-index:999999}.send_box .send_goods .scan_box uni-input[data-v-09ea9eb0]{width:70%}.send_box .send_goods .picker[data-v-09ea9eb0]{background:#f9f9fb;height:%?88?%;line-height:%?88?%;border-radius:%?8?%;padding:0 %?30?%}.send_box .send_goods .picker .iconfont[data-v-09ea9eb0]{color:#999}.send_box .send_goods .picker .inp_box[data-v-09ea9eb0]{font-size:%?30?%}.send_box .send_goods uni-input[data-v-09ea9eb0]{height:%?88?%;background:#f9f9fb;border-radius:%?8?%;padding-left:%?30?%;box-sizing:border-box}.send_box .send_goods .place[data-v-09ea9eb0]{font-size:%?30?%;color:#999}.send_box .send_goods .sub_btn[data-v-09ea9eb0]{margin:%?60?% auto %?50?%}',""]),e.exports=t},eff7:function(e,t,a){var i=a("c113");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("5ebae848",i,!0,{sourceMap:!1,shadowMode:!1})},f554:function(e,t,a){"use strict";var i=a("eff7"),n=a.n(i);n.a},ff75:function(e,t,a){"use strict";var i;a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return i}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"send_box"},[e.showGuide?i("v-uni-view",{staticClass:"guide_box",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.showGuide=!1}}},[i("v-uni-image",{staticClass:"express_img",attrs:{src:a("9e2a"),mode:""}})],1):e._e(),i("v-uni-view",{staticClass:"send_goods"},[i("v-uni-view",[i("v-uni-view",{staticClass:"label"},[i("v-uni-text",[e._v("发货单号")]),i("v-uni-text",[e._v("*")])],1),i("v-uni-view",{staticClass:"flexB scan_box"},[i("v-uni-input",{attrs:{type:"text",placeholder:"在此输入快递单号","placeholder-class":"place"},model:{value:e.express_no,callback:function(t){e.express_no=t},expression:"express_no"}}),i("v-uni-view",{staticClass:"scan_btn flexCC",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.scanCode()}}},[e._v("快速录入单号")])],1)],1),i("v-uni-view",[i("v-uni-view",{staticClass:"label"},[i("v-uni-text",[e._v("快递公司")]),i("v-uni-text",[e._v("*")])],1),i("v-uni-picker",{attrs:{value:e.index,range:e.logs,"range-key":"name"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindPickerChange.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"picker flexB"},[i("v-uni-view",{staticClass:"inp_box",style:{color:e.express_company?"#333":"#999"}},[e._v(e._s(e.express_company?e.express_company:"请选择快递公司"))]),i("v-uni-text",{staticClass:"iconfont iconzhcc_xiangxiajiantou"})],1)],1)],1),"顺丰速运"==e.express_company?i("v-uni-view",[i("v-uni-view",{staticClass:"label"},[i("v-uni-text",[e._v("收货人手机号")]),i("v-uni-text",[e._v("*")])],1),i("v-uni-input",{attrs:{type:"text",placeholder:"在此输入收货人手机号","placeholder-class":"place"},model:{value:e.express_phone,callback:function(t){e.express_phone=t},expression:"express_phone"}})],1):e._e(),i("v-uni-view",[i("v-uni-view",{staticClass:"label"},[i("v-uni-text",[e._v("发货日期")]),i("v-uni-text",[e._v("*")])],1),i("v-uni-picker",{attrs:{mode:"date",value:e.date,start:e.startDay},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindDateChange.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"picker flexB"},[i("v-uni-view",{staticClass:"inp_box"},[e._v(e._s(e.date))]),i("v-uni-text",{staticClass:"iconfont iconzhcc_xiangxiajiantou"})],1)],1)],1),i("v-uni-view",{staticClass:"sub_btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submit.apply(void 0,arguments)}}},[e._v("提交")])],1)],1)},o=[]}}]);