You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
high-mini/unpackage/dist/build/mp-weixin/pages/user/address/address.js

1 line
3.0 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/address/address"],{"3a8d":function(e,t,a){"use strict";a.r(t);var d=a("69c9"),s=a.n(d);for(var i in d)"default"!==i&&function(e){a.d(t,e,(function(){return d[e]}))}(i);t["default"]=s.a},"5e2f":function(e,t,a){"use strict";(function(e){a("eba6");d(a("66fd"));var t=d(a("905d"));function d(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,a("543d")["createPage"])},"699f":function(e,t,a){"use strict";var d=a("b2a9"),s=a.n(d);s.a},"69c9":function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={data:function(){return{isSelect:!1,addressList:[{id:1,name:"大黑哥",head:"大",tel:"18816881688",address:{region:{label:"广东省-深圳市-福田区",value:[18,2,1],cityCode:"440304"},detailed:"深南大道1111号无名摩登大厦6楼A2"},isDefault:!0},{id:2,name:"大黑哥",head:"大",tel:"15812341234",address:{region:{label:"广东省-深圳市-福田区",value:[18,2,1],cityCode:"440304"},detailed:"深北小道2222号有名公寓502"},isDefault:!1},{id:3,name:"老大哥",head:"老",tel:"18155467897",address:{region:{label:"广东省-深圳市-福田区",value:[18,2,1],cityCode:"440304"},detailed:"深南大道1111号无名摩登大厦6楼A2"},isDefault:!1},{id:4,name:"王小妹",head:"王",tel:"13425654895",address:{region:{label:"广东省-深圳市-福田区",value:[18,2,1],cityCode:"440304"},detailed:"深南大道1111号无名摩登大厦6楼A2"},isDefault:!1}]}},onShow:function(){var t=this;e.getStorage({key:"delAddress",success:function(a){var d=t.addressList.length;if(a.data.hasOwnProperty("id"))for(var s=0;s<d;s++)if(t.addressList[s].id==a.data.id){t.addressList.splice(s,1);break}e.removeStorage({key:"delAddress"})}}),e.getStorage({key:"saveAddress",success:function(a){var d=t.addressList.length;if(a.data.hasOwnProperty("id")){for(var s=0;s<d;s++)if(t.addressList[s].id==a.data.id){t.addressList.splice(s,1,a.data);break}}else{var i=t.addressList[d-1];i++,a.data.id=i,t.addressList.push(a.data)}e.removeStorage({key:"saveAddress"})}})},onLoad:function(e){"select"==e.type&&(this.isSelect=!0)},methods:{edit:function(t){e.setStorage({key:"address",data:t,success:function(){e.navigateTo({url:"edit/edit?type=edit"})}})},add:function(){e.navigateTo({url:"edit/edit?type=add"})},select:function(t){this.isSelect&&e.setStorage({key:"selectAddress",data:t,success:function(){e.navigateBack()}})}}};t.default=a}).call(this,a("543d")["default"])},"905d":function(e,t,a){"use strict";a.r(t);var d=a("dd19"),s=a("3a8d");for(var i in s)"default"!==i&&function(e){a.d(t,e,(function(){return s[e]}))}(i);a("699f");var n,r=a("f0c5"),u=Object(r["a"])(s["default"],d["b"],d["c"],!1,null,null,null,!1,d["a"],n);t["default"]=u.exports},b2a9:function(e,t,a){},dd19:function(e,t,a){"use strict";var d;a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){return d}));var s=function(){var e=this,t=e.$createElement;e._self._c},i=[]}},[["5e2f","common/runtime","common/vendor"]]]);