| 1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesOrder/shipInfo"],{1637:function(e,n,t){"use strict";var o=t("e65c"),r=t.n(o);r.a},9096:function(e,n,t){"use strict";t.r(n);var o=t("f8f0"),r=t("f44d");for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);t("1637");var c,u=t("8261"),a=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,"24934b9e",null,!1,o["a"],c);n["default"]=a.exports},"91b3":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=u(t("644f")),r=u(t("e350")),i=t("3a10"),c=(t("5315"),t("7736"));function u(e){return e&&e.__esModule?e:{default:e}}function a(e,n,t,o,r,i,c){try{var u=e[i](c),a=u.value}catch(s){return void t(s)}u.done?n(a):Promise.resolve(a).then(o,r)}function s(e){return function(){var n=this,t=arguments;return new Promise((function(o,r){var i=e.apply(n,t);function c(e){a(i,o,r,c,u,"next",e)}function u(e){a(i,o,r,c,u,"throw",e)}c(void 0)}))}}function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){d(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function d(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var p=function(){t.e("components/plugin/list-cell").then(function(){return resolve(t("1861"))}.bind(null,t)).catch(t.oe)},m=function(){Promise.all([t.e("common/vendor"),t.e("components/module/app-avatar")]).then(function(){return resolve(t("d84d"))}.bind(null,t)).catch(t.oe)},h=function(){Promise.all([t.e("common/vendor"),t.e("components/plugin/simple-address")]).then(function(){return resolve(t("618a"))}.bind(null,t)).catch(t.oe)},v=function(){t.e("components/app-area-sel").then(function(){return resolve(t("62ec"))}.bind(null,t)).catch(t.oe)},b=function(){Promise.all([t.e("common/vendor"),t.e("components/app-customer-sel")]).then(function(){return resolve(t("a51e"))}.bind(null,t)).catch(t.oe)},g=function(){t.e("components/app-formRadio-btn").then(function(){return resolve(t("c6ee"))}.bind(null,t)).catch(t.oe)},y=function(){Promise.all([t.e("common/vendor"),t.e("components/app-address-group")]).then(function(){return resolve(t("cdfa"))}.bind(null,t)).catch(t.oe)},O=function(){t.e("components/app-send-time").then(function(){return resolve(t("0a72"))}.bind(null,t)).catch(t.oe)},I=function(){t.e("components/app-form-send1").then(function(){return resolve(t("a1b0"))}.bind(null,t)).catch(t.oe)},P=t("90f4"),w={name:"BillingAffirm",components:{TuiListCell:p,AppAvatarModule:m,SimpleAddress:h,AppAreaSel:v,AppCustomerSel:b,appFormRadioBtn:g,appAddressGroup:y,appSendTime:O,appFormSend:I},mixins:[r.default],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:""},showCustomer:!1}},onLoad:function(n){this.customId=n.id,this.orderId=n.orderId,this.getMerchantInfo?e.setNavigationBarTitle({title:this.getMerchantInfo.name}):this.initMerchantInfo().then((function(n){e.setNavigationBarTitle({title:n.name})}))},computed:l({},(0,c.mapGetters)(["getMerchantInfo","getLoginInfo"])),methods:l(l({},(0,c.mapActions)(["initMerchantInfo"])),{},{init:function(){this._getDet()},_getDet:function(){var n=this,t=e.getStorageSync("modifyShopB");this.$util.isEmpty(t)||Object.keys(this.form).forEach((function(e,o){n.form[e]=t[e]}))},changeCustomerFn:function(e){console.log("changeCustomerFn",e),this.form.customId=e.id,this.form.customName=e.name},confirmFn:function(n){console.log(n),(0,i.sendExpressage)({id:this.orderId,sendCost:n.sendCost,expressId:n.sendSide,sendTime:n.sendTime}).then((function(n){e.navigateBack({delta:1})}))},formSubmit:function(){var e=s(o.default.mark((function e(n){var t,r,i,c,u;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,t=[],r=this.form,"1"==r.sendType||(i=[{name:"receiveProvince",rule:["required"],msg:["请选择地址"]},{name:"receiveAddress",rule:["required"],msg:["请填写详细地址"]}],t=t.concat(i)),c=this.selectList.map((function(e){return{productId:e.id,bigNum:e.bigCount,smallNum:e.smallCount}})),r.product=JSON.stringify(c),this.getMerchantInfo){e.next=9;break}return e.next=9,this.initMerchantInfo();case 9:r.shopId=this.getMerchantInfo.id,1==this.waySele&&(r.sendCost="免运费"),console.log(9999,r),u=P.validation(r,t),u?this.$msg(u):this.confirmFn(r),e.next=19;break;case 16:e.prev=16,e.t0=e["catch"](0),console.log(999999,e.t0);case 19:case"end":return e.stop()}}),e,this,[[0,16]])})));function n(n){return e.apply(this,arguments)}return n}(),gobackEvent:function(){e.navigateBack({delta:1})}})};n.default=w}).call(this,t("934e")["default"])},e289:function(e,n,t){"use strict";(function(e){t("6cdc");o(t("b5e3"));var n=o(t("9096"));function o(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,t("934e")["createPage"])},e65c:function(e,n,t){},f44d:function(e,n,t){"use strict";t.r(n);var o=t("91b3"),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},f8f0:function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){return o}));var r=function(){var e=this,n=e.$createElement;e._self._c},i=[]}},[["e289","common/runtime","common/vendor"]]]);
|