1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageC/addressManagement/addressManagement"],{"1f60":function(t,e,n){"use strict";n.r(e);var a=n("af85"),i=n.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);e["default"]=i.a},"38c0":function(t,e,n){},"6a67":function(t,e,n){"use strict";var a=n("38c0"),i=n.n(a);i.a},a3eb:function(t,e,n){"use strict";n.r(e);var a=n("b7af"),i=n("1f60");for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n("6a67");var d,c=n("f0c5"),o=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,"1dca01ac",null,!1,a["a"],d);e["default"]=o.exports},af85:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=function(){n.e("pageC/addressManagement/component/address").then(function(){return resolve(n("129f"))}.bind(null,n)).catch(n.oe)},i={components:{addressVue:a},data:function(){return{manage:"",addressList:[],type:"",page:1}},onLoad:function(t){console.log(t),t.tabs&&(this.manage=t.tabs),this.type=t.type},computed:{i18n:function(){return this.$t("index")}},methods:{goBack:function(e){if("setup"!=this.type){var n=this.getOpenerEventChannel();n.emit("getadd",e),t.$emit("isRefresh",this.index),t.navigateBack({delta:1})}},switchTab:function(t){this.manage=t,this.getAddressList(t)},setDefault:function(e){var n=this;t.$u.http.post("/api/address/default/".concat(e.id)).then((function(t){n.getAddressList(n.manage)})).catch((function(){}))},toDetail:function(e){this.manage?t.navigateTo({url:"/pageC/addEditAddress/addEditAddress?id=".concat(e)}):t.navigateTo({url:"/pageC/internationalAddress/internationalAddress?id=".concat(e)})},deleteAddress:function(e){var n=this;t.$u.http.delete("/api/address/".concat(e.id)).then((function(t){n.getAddressList(n.manage)}))},toAddRess:function(e){t.navigateTo({url:e})},getAddressList:function(e){var n=this;t.$u.http.get("/api/address?is_page=0&page=&limit=&is_domestic=".concat(e,"&is_default=")).then((function(t){n.addressList=t}))}},onShow:function(){},mounted:function(){this.getAddressList(this.manage),t.setNavigationBarTitle({title:this.i18n.address})}};e.default=i}).call(this,n("543d")["default"])},b7af:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return a}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.addressList.length);t.$mp.data=Object.assign({},{$root:{g0:n}})},s=[]},d2f7:function(t,e,n){"use strict";(function(t,e){var a=n("4ea4");n("f93b");a(n("66fd"));var i=a(n("a3eb"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])}},[["d2f7","common/runtime","common/vendor"]]]);
|