text: (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/cart/addplace"],{4592:function(e,n,t){},"4fe9":function(e,n,t){"use strict";(function(e){t("2ed8");a(t("66fd"));var n=a(t("b0aa"));function a(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,t("543d")["createPage"])},aa77:function(e,n,t){"use strict";t.r(n);var a=t("ca1e"),r=t.n(a);for(var u in a)"default"!==u&&function(e){t.d(n,e,(function(){return a[e]}))}(u);n["default"]=r.a},b0aa:function(e,n,t){"use strict";t.r(n);var a=t("cffd"),r=t("aa77");for(var u in r)"default"!==u&&function(e){t.d(n,e,(function(){return r[e]}))}(u);t("e846");var c,i=t("f0c5"),o=Object(i["a"])(r["default"],a["b"],a["c"],!1,null,"45da84b8",null,!1,a["a"],c);n["default"]=o.exports},ca1e:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=r(t("a34a"));function r(e){return e&&e.__esModule?e:{default:e}}function u(e,n,t,a,r,u,c){try{var i=e[u](c),o=i.value}catch(s){return void t(s)}i.done?n(o):Promise.resolve(o).then(a,r)}function c(e){return function(){var n=this,t=arguments;return new Promise((function(a,r){var c=e.apply(n,t);function i(e){u(c,a,r,i,o,"next",e)}function o(e){u(c,a,r,i,o,"throw",e)}i(void 0)}))}}var i={data:function(){return{name:"",number:null,detail:"",checked:!1,area:"",show:!1,params:{province:!0,city:!0,area:!0},paramsres:{}}},methods:{setDefault:function(){},showRegionPicker:function(){this.show=!0},addplace:function(){var e=this;return c(a.default.mark((function n(){var t;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t={name:e.name,phone:e.number,address:e.detail,province:e.paramsres.province.label,city:e.paramsres.city.label,county:e.paramsres.area.label},!0===e.checked&&(t.is_default=1),n.next=4,e.$u.api.addplace(t);case 4:e.$u.route({type:"reLaunch",url:"pages/cart/place"}),e.$u.toast("添加地址成功");case 6:case"end":return n.stop()}}),n)})))()},confirm:function(e){this.area="",this.paramsres=e,this.area=this.paramsres.province.label+this.paramsres.city.label+this.paramsres.area.label,console.log(this.paramsres)}}};n.default=i},cffd:function(e,n,t){"use strict";t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return u})),t.d(n,"a",(function(){return a}));var a={uSwitch:function(){return t.e("uview-ui/components/u-switch/u-switch").then(t.bind(null,"527a"))},uIcon:function(){return t.e("uview-ui/components/u-icon/u-icon").then(t.bind(null,"b3fc"))},uPicker:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-picker/u-picker")]).then(t.bind(null,"5eea"))}},r=function(){var e=this,n=e.$createElement;e._self._c},u=[]},e846:function(e,n,t){"use strict";var a=t("4592"),r=t.n(a);r.a}},[["4fe9","common/runtime","common/vendor"]]]);