| 1 |
- require('common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesOrder/shipInfo"],{"0778":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r}));var o=function(){var e=this,t=e.$createElement;e._self._c},i=[]},"1c5b":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n("4838")),o=n("3a10"),i=n("7736");function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n,r,o,i,c){try{var s=e[i](c),u=s.value}catch(a){return void n(a)}s.done?t(u):Promise.resolve(u).then(r,o)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function c(e){s(i,r,o,c,u,"next",e)}function u(e){s(i,r,o,c,u,"throw",e)}c(void 0)}))}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(){n.e("components/plugin/list-cell").then(function(){return resolve(n("1861"))}.bind(null,n)).catch(n.oe)},m=function(){n.e("components/app-form-send1").then(function(){return resolve(n("a1b0"))}.bind(null,n)).catch(n.oe)},h=n("90f4"),p={name:"BillingAffirm",components:{TuiListCell:l,appFormSend:m},data:function(){return{customId:"",orderId:"",autoLoad:!1,form:{shopId:"",shopName:"",receiveProvince:"",receiveCity:"",receiveFloor:"",receiveAddress:"",receiveLong:"",receiveLat:"",sendType:"3",sendSide:"2",sendDate:"",sendTime:"",sendCost:"",customId:"",product:"",remark:""},showCustomer:!1}},onLoad:function(t){this.customId=t.id,this.orderId=t.orderId,this.getMerchantInfo||"0"==this.customId?e.setNavigationBarTitle({title:"确认客户地址"}):this.initMerchantInfo().then((function(t){e.setNavigationBarTitle({title:"确认客户地址"})}))},computed:f({},(0,i.mapGetters)(["getMerchantInfo","getLoginInfo"])),methods:f(f({},(0,i.mapActions)(["initMerchantInfo"])),{},{init:function(){this._getDet()},_getDet:function(){var t=this,n=e.getStorageSync("modifyShopB");this.$util.isEmpty(n)||Object.keys(this.form).forEach((function(e,r){t.form[e]=n[e]}))},changeCustomerFn:function(e){console.log("changeCustomerFn",e),this.form.customId=e.id,this.form.customName=e.name},confirmFn:function(t){console.log(t),(0,o.sendExpressage)({id:this.orderId,sendCost:t.sendCost,expressId:t.sendSide,sendTime:t.sendTime,remark:t.remark}).then((function(t){e.navigateBack({delta:1})}))},formSubmit:function(){var e=u(r.default.mark((function e(t){var n,o,i,c,s;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(console.log(this.selectList),e.prev=1,n=[],o=this.form,"1"==o.sendType||(i=[{name:"receiveProvince",rule:["required"],msg:["请选择地址"]},{name:"receiveAddress",rule:["required"],msg:["请填写详细地址"]}],n=n.concat(i)),this.$util.isEmpty(this.selectList)||(c=this.selectList.map((function(e){return{productId:e.id,bigNum:e.bigCount,smallNum:e.smallCount}})),o.product=JSON.stringify(c)),this.getMerchantInfo){e.next=9;break}return e.next=9,this.initMerchantInfo();case 9:o.shopId=this.getMerchantInfo.id,1==this.waySele&&(o.sendCost="免运费"),s=h.validation(o,n),console.log(s),s?this.$msg(s):this.confirmFn(o),e.next=19;break;case 16:e.prev=16,e.t0=e["catch"](1),console.log(999999888,e.t0);case 19:case"end":return e.stop()}}),e,this,[[1,16]])})));function t(t){return e.apply(this,arguments)}return t}(),gobackEvent:function(){e.navigateBack({delta:1})}})};t.default=p}).call(this,n("f3be")["default"])},"799d":function(e,t,n){},9096:function(e,t,n){"use strict";n.r(t);var r=n("0778"),o=n("f44d");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("da0c");var c,s=n("0095"),u=Object(s["a"])(o["default"],r["b"],r["c"],!1,null,"63cd79b3",null,!1,r["a"],c);t["default"]=u.exports},da0c:function(e,t,n){"use strict";var r=n("799d"),o=n.n(r);o.a},e289:function(e,t,n){"use strict";(function(e){n("6cdc");r(n("4a15"));var t=r(n("9096"));function r(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("f3be")["createPage"])},f44d:function(e,t,n){"use strict";n.r(t);var r=n("1c5b"),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=o.a}},[["e289","common/runtime","common/vendor"]]]);
|