(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesMall/component/modal/address"],{"0d3a":function(t,e,n){},"32db":function(t,e,n){"use strict";var o=n("0d3a"),i=n.n(o);i.a},"5fb4":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return o}));var o={uniPopup:function(){return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null,"f295"))}},i=function(){var t=this.$createElement,e=(this._self._c,this.isToken?this.addressList.length:null);this.$mp.data=Object.assign({},{$root:{g0:e}})},s=[]},"6c5c":function(t,e,n){"use strict";n.r(e);var o=n("b38c"),i=n.n(o);for(var s in o)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(s);e["default"]=i.a},b38c:function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("7ca3")),s=n("8f59"),r=o(n("f5e9"));function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}var u={name:"componentModalAddress",data:function(){return{selectId:null,addressList:[],isToken:!1}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,s.mapState)({themeColor:function(t){return t.app.themeColor},iconEdit:function(t){return r.default.svgToUrl("edit",t.app.themeColor)}})),methods:{open:function(e){var n=this;this.selectId=e||null,t.getStorageSync("token")?(this.isToken=!0,this.getAddress((function(){n.$refs.popupModal.open()}))):(this.isToken=!1,this.$refs.popupModal.open())},onClose:function(){this.$refs.popupModal.close()},onChange:function(t){this.$emit("onChange",t.show)},getAddress:function(e){var n=this;this.$util.request("mall.address.list").then((function(o){e&&e(),1==o.code?n.addressList=o.data||[]:t.showToast({title:o.msg,icon:"none"})})).catch((function(t){e&&e(),console.error("获取地址列表 ",t)}))},toLogin:function(){var e=this;t.navigateTo({url:"/pages/login/index",success:function(){e.onClose()}})},addAddress:function(){this.$util.toPage({mode:1,path:"/pagesMall/address/index"}),this.onClose()},editAddress:function(t){this.$util.toPage({mode:1,path:"/pagesMall/address/add?addressData="+JSON.stringify(t)}),this.onClose()},onConfirm:function(t){this.onClose(),this.$emit("confirm",t)}}};e.default=u}).call(this,n("df3c")["default"])},e3d7:function(t,e,n){"use strict";n.r(e);var o=n("5fb4"),i=n("6c5c");for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n("32db");var r=n("828b"),a=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"6e01405d",null,!1,o["a"],void 0);e["default"]=a.exports}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pagesMall/component/modal/address-create-component',
    {
        'pagesMall/component/modal/address-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("e3d7"))
        })
    },
    [['pagesMall/component/modal/address-create-component']]
]);
