(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/Buy_soap_tape/orderPlacer"],{152:function(e,t,n){"use strict";(function(e){n(5);r(n(4));var t=r(n(153));function r(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n(1)["createPage"])},153:function(e,t,n){"use strict";n.r(t);var r=n(154),u=n(156);for(var o in u)"default"!==o&&function(e){n.d(t,e,(function(){return u[e]}))}(o);n(158),n(160);var a,i=n(11),c=Object(i["default"])(u["default"],r["render"],r["staticRenderFns"],!1,null,"5fe00f3e",null,!1,r["components"],a);c.options.__file="pages/Buy_soap_tape/orderPlacer.vue",t["default"]=c.exports},154:function(e,t,n){"use strict";n.r(t);var r=n(155);n.d(t,"render",(function(){return r["render"]})),n.d(t,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(t,"components",(function(){return r["components"]}))},155:function(e,t,n){"use strict";var r;n.r(t),n.d(t,"render",(function(){return u})),n.d(t,"staticRenderFns",(function(){return a})),n.d(t,"recyclableRender",(function(){return o})),n.d(t,"components",(function(){return r}));var u=function(){var e=this,t=e.$createElement;e._self._c},o=!1,a=[];u._withStripped=!0},156:function(e,t,n){"use strict";n.r(t);var r=n(157),u=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t["default"]=u.a},157:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(43));function u(e){return e&&e.__esModule?e:{default:e}}var o={data:function(){return{id:"",message:"",result:"",buyForm:{buy_name:"",buy_phone:"",buy_code:"+86"},requesting:!1,areaName:"中国大陆",isMatch:/^[1][3-9]\d{9}$/,codeList:r.default}},onLoad:function(t){var n=this;if(e.$on("CHOOSEPHONECODE",(function(e,t,r,u){n.areaName=e,n.buyForm.buy_code=t,n.isMatch=u})),t.data&&(this.buyForm=JSON.parse(decodeURIComponent(t.data)),this.buyForm.buy_code)){var r=this.buyForm.buy_code.indexOf("+"),u=this.buyForm.buy_code.substring(r+1);this.codeList[0].list.map((function(e){e.code===Number(u)&&(n.areaName=e.name,n.isMatch=e.phoneReg)}))}},methods:{save:function(){this.buyForm.buy_name&&(this.buyForm.buy_name=this.buyForm.buy_name.replace(/\s*/g,"")),this.buyForm.buy_name.match(/^[\u4E00-\u9FA5\uf900-\ufa2d·s]{2,20}$/)?this.buyForm.buy_phone?!this.isMatch||this.buyForm.buy_phone.match(this.isMatch)?(e.$emit("orderPlace",this.buyForm),e.navigateBack()):e.showToast({title:"手机号所属与区号不一致",icon:"none",mask:!0}):e.showToast({title:"手机号码不能为空",icon:"none",mask:!0}):e.showToast({title:"真实姓名不符合要求",icon:"none",mask:!0})}}};t.default=o}).call(this,n(1)["default"])},158:function(e,t,n){"use strict";n.r(t);var r=n(159),u=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t["default"]=u.a},159:function(e,t,n){},160:function(e,t,n){"use strict";n.r(t);var r=n(161),u=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t["default"]=u.a},161:function(e,t,n){}},[[152,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/Buy_soap_tape/orderPlacer.js.map