require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageOne/mes/addNew"],{283:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(26);o(n(25));var s=o(n(284));e.__webpack_require_UNI_MP_PLUGIN__=n,t(s.default)}).call(this,n(1)["default"],n(2)["createPage"])},284:function(e,t,n){"use strict";n.r(t);var o=n(285),s=n(287);for(var r in s)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return s[e]}))}(r);n(289);var i,c=n(32),a=Object(c["default"])(s["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],i);a.options.__file="pageOne/mes/addNew.vue",t["default"]=a.exports},285:function(e,t,n){"use strict";n.r(t);var o=n(286);n.d(t,"render",(function(){return o["render"]})),n.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(t,"components",(function(){return o["components"]}))},286:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return s})),n.d(t,"staticRenderFns",(function(){return i})),n.d(t,"recyclableRender",(function(){return r})),n.d(t,"components",(function(){return o}));try{o={addressPicker:function(){return Promise.all([n.e("common/vendor"),n.e("components/address-picker/address-picker")]).then(n.bind(null,481))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var s=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){e.is_switch=!e.is_switch})},r=!1,i=[];s._withStripped=!0},287:function(e,t,n){"use strict";n.r(t);var o=n(288),s=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=s.a},288:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={data:function(){return{name:"",mobile:"",region:"",address:"",is_switch:!1}},methods:{onChange:function(e){this.region=e.data[0]+"/"+e.data[1]+"/"+e.data[2]},addAddress:function(){var e=this;return""==this.name?this.$tools.showtt("收货人不能为空"):""==this.mobile?this.$tools.showtt("手机号不能为空"):this.$tools.isPhone(this.mobile)?""==this.region?this.$tools.showtt("请选择所在区域"):""==this.address?this.$tools.showtt("详细地址不能为空"):void this.$tools.axiosFromToken("POST","address/addAddress",{name:this.name,mobile:this.mobile,region:this.region,address:this.address,is_switch:0==this.is_switch?0:1}).then((function(t){e.$tools.showtt(t.msg),1==t.code&&setTimeout((function(){e.$tools.goBack()}),1e3)})):this.$tools.showtt("无效手机号")}}};t.default=o},289:function(e,t,n){"use strict";n.r(t);var o=n(290),s=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=s.a},290:function(e,t,n){}},[[283,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pageOne/mes/addNew.js.map