pages-send-goods-send-goods.ea067cf3.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-send-goods-send-goods"],{"27c8":function(e,t,n){"use strict";var i=n("ec76"),a=n.n(i);a.a},"54d3":function(e,t,n){"use strict";n.r(t);var i=n("e058"),a=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},6053:function(e,t,n){"use strict";n.r(t);var i=n("9bf3"),a=n("54d3");for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("27c8");var s,c=n("f0c5"),d=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"c203866c",null,!1,i["a"],s);t["default"]=d.exports},"92de":function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";.app-item[data-v-c203866c]{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-c203866c]{margin-top:%?10?%}.app-item uni-input[data-v-c203866c], .app-item uni-picker[data-v-c203866c], .app-item uni-textarea[data-v-c203866c]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-c203866c]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-c203866c]{width:25%;height:50%;float:left;display:flex;align-items:center;flex-direction:column}.kingkong uni-navigator uni-image[data-v-c203866c]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-c203866c]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-c203866c]{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-c203866c]{color:#fff;background:#f76454}.small-btn[data-v-c203866c]{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-c203866c]{color:#999;border-color:#999}.login-btn[data-v-c203866c]{flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-c203866c]{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-c203866c]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-c203866c]{margin-right:%?20?%}.border-right[data-v-c203866c]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-c203866c]{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-c203866c]{margin-right:%?6?%}.position-center[data-v-c203866c]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-c203866c]{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-c203866c]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-c203866c]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.data-card .data-card-text .text[data-v-c203866c]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-c203866c]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-c203866c]{color:#f76454}.swiper-nav[data-v-c203866c]{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-c203866c]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%}.swiper-nav .item.active[data-v-c203866c]{color:#f76454}.swiper-nav .moveBar[data-v-c203866c]{display:flex;align-items:center;justify-content:center;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-c203866c]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-c203866c]{flex:1;width:100%}.swiper-area uni-swiper[data-v-c203866c]{width:100%;height:100%}.article-header[data-v-c203866c]{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-c203866c]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-c203866c]{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-c203866c]{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-c203866c]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-c203866c]{color:#f76454}.article-footer[data-v-c203866c]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-c203866c]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-c203866c]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-c203866c]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-c203866c]{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-c203866c]{width:100vw;height:100vh;position:fixed;top:0;left:0;background:rgba(0,0,0,.5);display:flex;flex-direction:column;align-items:center;z-index:999}.guide_box .express_img[data-v-c203866c]{width:%?608?%;height:%?731?%;margin-top:20vh}.scan_box[data-v-c203866c]{width:%?690?%;background:#f9f9fb;border-radius:%?8?%}.scan_box .scan_btn[data-v-c203866c]{width:%?196?%;height:%?60?%;background:#fff4f3;border:%?2?% solid #fb231f;border-radius:%?34?%;color:#fb231f;margin-right:%?10?%;z-index:999999}.scan_box uni-input[data-v-c203866c]{width:70%}.send_box[data-v-c203866c]{width:100%;min-height:100%;background:#fff}.send_box .send_goods[data-v-c203866c]{width:%?690?%;padding-top:%?30?%;margin:0 auto;background-color:#fff}.send_box .send_goods .label[data-v-c203866c]{margin:%?30?% 0}.send_box .send_goods .label uni-text[data-v-c203866c]:first-child{font-size:%?32?%;font-weight:700}.send_box .send_goods .label uni-text[data-v-c203866c]:last-child{font-size:%?32?%;color:#fb231f;font-weight:700}.send_box .send_goods .picker[data-v-c203866c]{background:#f9f9fb;height:%?88?%;line-height:%?88?%;border-radius:%?8?%;padding:0 %?30?%}.send_box .send_goods .picker .iconfont[data-v-c203866c]{color:#999}.send_box .send_goods .picker .inp_box[data-v-c203866c]{font-size:%?30?%}.send_box .send_goods uni-input[data-v-c203866c]{height:%?88?%;background:#f9f9fb;border-radius:%?8?%;padding-left:%?30?%;box-sizing:border-box;font-size:%?30?%}.send_box .send_goods .place[data-v-c203866c]{font-size:%?30?%;color:#999}.send_box .send_goods .sub_btn[data-v-c203866c]{margin:%?60?% auto %?50?%}.send_box .send_goods .address_box[data-v-c203866c]{padding:%?30?%;width:100%;box-sizing:border-box;background-color:#f9f9fb;border-radius:%?24?%}.send_box .send_goods .address_box .icondizhi1[data-v-c203866c]{color:#fb231f;font-size:%?50?%;vertical-align:middle}.send_box .send_goods .address_box .add_box[data-v-c203866c]{margin-left:%?20?%;font-size:%?30?%;color:#999}.send_box .send_goods .address_box .iconiconfontjiantou2[data-v-c203866c]{color:#999}.send_box .send_goods .address_box .ads_info[data-v-c203866c]{margin:0 %?15?%}.send_box .send_goods .address_box .ads_info .shop_info[data-v-c203866c]{font-size:%?32?%;font-weight:700}.send_box .send_goods .address_box .ads_info .shop_info uni-text[data-v-c203866c]:last-child{font-size:%?28?%;color:#999}.send_box .send_goods .address_box .ads_info .ads_del[data-v-c203866c]{margin-top:%?15?%}.send_box .send_goods .scan_box[data-v-c203866c]{width:%?690?%;background:#f9f9fb;border-radius:%?8?%}.send_box .send_goods .scan_box .scan_btn[data-v-c203866c]{width:%?196?%;height:%?60?%;background:#fff4f3;border:%?2?% solid #fb231f;border-radius:%?34?%;color:#fb231f;margin-right:%?10?%}.send_box .send_goods .scan_box uni-input[data-v-c203866c]{width:70%}',""]),e.exports=t},"9bf3":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var a=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:n("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.num,callback:function(t){e.num=t},expression:"num"}}),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.logsName?"#333":"#999"}},[e._v(e._s(e.logsName?e.logsName:"请选择快递公司"))]),i("v-uni-text",{staticClass:"iconfont iconzhcc_xiangxiajiantou"})],1)],1)],1),"顺丰速运"==e.logsName||"顺丰快递"==e.logsName?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=[]},e058:function(e,t,n){"use strict";(function(e){n("99af"),n("baa5"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("d2e1"),a=n("4718"),o={data:function(){var e=this.getDate({format:!0});return{num:"",logs:[],logsName:"",logsCode:"",order_no:"",index:0,date:e,startDay:"2020-01-01",user_id:"",address:"",defaultAds:"",ads:{province:"",city:"",area:"",location:""},userName:"",userPhone:"",userAds:"",express_phone:"",showGuide:!0}},onLoad:function(e){this.order_no=e.order_no,this.user_id=e.user_id,this.getCode()},onShow:function(){this.otherFun(),this.address},methods:{scanCode:function(){var t=this;this.showGuide=!1;var n=window.location.href;(0,i.location)({url:n}).then((function(n){if(200==n.code){var i=JSON.parse(n.data);a.config({debug:!1,appId:i.appId,timestamp:i.timestamp,nonceStr:i.nonceStr,signature:i.signature,jsApiList:["scanQRCode"]}),a.ready((function(){a.checkJsApi({jsApiList:["scanQRCode"],success:function(e){0!=e.checkResult.scanQRCode||alert("你的微信版本太低,不支持微信JS接口,请升级到最新的微信版本!")}}),a.error((function(t){e.log(t.errMsg,"错误消息")})),a.scanQRCode({needResult:1,scanType:["qrCode","barCode"],success:function(e){var n=e.resultStr,i=n.lastIndexOf("/"),a=n.substring(i+1,n.length),o=a.lastIndexOf(","),s=a.substring(o+1,a.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.num=e.data.LogisticCode,e.data.Shippers){var n=e.data.Shippers[0],i=n.ShipperName,a=n.ShipperCode;t.logsName=i,t.logsCode=a}else uni.showModal({content:"请重新扫码或手动选择输入",showCancel:!1}),t.logsName=t.logsCode=""}else uni.showModal({content:e.data||"获取数据失败",showCancel:!1})}))},onConfirm:function(e){this.ads.location="".concat(e.checkArr[0],"-").concat(e.checkArr[1],"-").concat(e.checkArr[2]),this.ads.province=e.checkArr[0],this.ads.city=e.checkArr[1],this.ads.area=e.checkArr[2]},choosePicker:function(){this.$refs.Selector.show()},otherFun:function(e){e&&(this.address=e,this.express_phone||(this.express_phone=e.phone))},addressList:function(){uni.navigateTo({url:"../ads-list/ads-list?user_id="+this.user_id})},getCode:function(){var e=this;(0,i.getLogsCode)().then((function(t){if(200==t.code){var n=t.data;for(var i in n)e.logs.push({code:i,name:n[i]})}else uni.showModal({content:t.data||"获取物流公司失败",showCancel:!1})}))},bindPickerChange:function(e){var t=e.detail.value;this.index=t,this.logsName=this.logs[t].name,this.logsCode=this.logs[t].code},bindDateChange:function(t){this.date=t.target.value,e.log(this.date)},getDate:function(e){var t=new Date,n=t.getFullYear(),i=t.getMonth()+1,a=t.getDate();return"start"===e?n-=60:"end"===e&&(n+=2),i=i>9?i:"0"+i,a=a>9?a:"0"+a,"".concat(n,"-").concat(i,"-").concat(a)},submit:function(){return this.num?"请选择物流公司"==this.logsName?(uni.showModal({content:"物流名称不能为空",showCancel:!1}),!1):"顺丰速运"!=this.logsName||this.express_phone?this.date?(uni.showLoading({title:"提交中...."}),void(0,i.addLogs)({order_no:this.order_no,express_no:this.num,express_code:this.logsCode,express_company:this.logsName,express_time:this.date,address_id:this.address.id||this.defaultAds.id||"",express_phone:this.express_phone}).then((function(e){200==e.code?uni.showModal({content:"发货成功",showCancel:!1,success:function(e){e.confirm&&uni.reLaunch({url:"../order-manage/order-manage?status=3"})}}):uni.showModal({content:e.data||"发货失败",showCancel:!1}),uni.hideLoading()})).catch((function(e){uni.hideLoading()}))):(uni.showModal({content:"发货日期不能为空",showCancel:!1}),!1):(uni.showModal({content:"请输入收货人手机号",showCancel:!1}),!1):(uni.showModal({content:"物流单号不能为空",showCancel:!1}),!1)}}};t.default=o}).call(this,n("5a52")["default"])},ec76:function(e,t,n){var i=n("92de");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("4f06").default;a("521bc00c",i,!0,{sourceMap:!1,shadowMode:!1})}}]);