cyywl_shop_app/dist/static/js/pages-users-user_address-in...

1 line
16 KiB
JavaScript
Raw Normal View History

2023-05-26 10:48:58 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_address-index"],{"0257":function(t,e,i){"use strict";var n=i("1d7e"),a=i.n(n);a.a},"1ae4":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".pictrueBox[data-v-47a70398]{width:%?130?%;height:%?120?%}\n\n/*返回主页按钮*/.home[data-v-47a70398]{position:fixed;color:#fff;text-align:center;z-index:9999;right:%?15?%;display:flex}.home .homeCon[data-v-47a70398]{border-radius:%?50?%;opacity:0;height:0;color:$theme-color;width:0}.home .homeCon.on[data-v-47a70398]{opacity:1;-webkit-animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);width:%?300?%;height:%?86?%;margin-bottom:%?20?%;display:flex;justify-content:center;align-items:center;background:#f44939!important}.home .homeCon .iconfont[data-v-47a70398]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-47a70398]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto}.home .pictrue .image[data-v-47a70398]{width:100%;height:100%;border-radius:50%;-webkit-transform:rotate(90deg);transform:rotate(90deg);ms-transform:rotate(90deg);moz-transform:rotate(90deg);webkit-transform:rotate(90deg);o-transform:rotate(90deg)}",""]),t.exports=e},"1d7e":function(t,e,i){var n=i("76f2");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("d7a1004c",n,!0,{sourceMap:!1,shadowMode:!1})},"24fc":function(t,e,i){"use strict";i.r(e);var n=i("7fb3"),a=i("c904");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("0257");var r=i("f0c5"),o=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"67f27ab4",null,!1,n["a"],void 0);e["default"]=o.exports},"48d7":function(t,e,i){"use strict";(function(t){i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("d3b7"),i("159b"),i("14d9"),i("d81d"),i("ac1f"),i("5319"),i("00b4");var a=i("f741"),s=i("ed11"),r=i("c2a3"),o=i("26cb"),d=n(i("bbd6")),c=(getApp(),{components:{home:d.default},data:function(){return{regionDval:["浙江省","杭州市","滨江区"],cartId:"",pinkId:0,couponId:0,id:0,userAddress:{isDefault:!1},region:["省","市","区"],valueRegion:[0,0,0],isAuto:!1,isShowAuth:!1,district:[],multiArray:[],multiIndex:[0,0,0],cityId:0,defaultRegion:["广东省","广州市","番禺区"],defaultRegionCode:"440113",bargain:!1,combination:!1,secKill:!1}},computed:(0,o.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,e){t&&(this.getUserAddress(),this.getCityList())},deep:!0}},onLoad:function(t){this.isLogin?(this.preOrderNo=t.preOrderNo||0,this.id=t.id||0,uni.setNavigationBarTitle({title:t.id?"修改地址":"添加地址"}),this.getUserAddress(),this.$Cache.has("cityList")?(this.district=this.$Cache.getItem("cityList"),this.initialize()):this.getCityList()):(0,r.toLogin)()},methods:{getCityList:function(){var t=this,e=this;(0,s.getCity)().then((function(i){t.district=i.data;t.$Cache.setItem({name:"cityList",value:i.data,expires:6048e5}),e.initialize()}))},initialize:function(){var t=[],e=[],i=[];if(this.district.length){var n=this.district[0].children||[],a=n.length&&n[0].children||[];this.district.forEach((function(e){t.push(e.name)})),n.forEach((function(t){e.push(t.name)})),a.forEach((function(t){i.push(t.name)})),this.multiArray=[t,e,i]}},bindRegionChange:function(t){var e=this.multiIndex,i=this.district[e[0]]||{children:[]},n=i.children[e[1]]||{cityId:0},a=this.multiArray,s=t.detail.value;this.region=[a[0][s[0]],a[1][s[1]],a[2][s[2]]],this.cityId=n.cityId,this.valueRegion=[0,0,0],this.initialize()},bindMultiPickerColumnChange:function(t){var e=t.detail.column,i=t.detail.value,n=this.district[i]||{children:[]},a=this.multiArray,s=this.multiIndex;switch(s[e]=i,e){case 0:var r=n.children[0]||{children:[]};a[1]=n.children.map((function(t){return t.name})),a[2]=r.children.map((function(t){return t.name}));break;case 1:var o=this.district[s[0]].children[s[1]].children||[];a[2]=o.map((function(t){return t.name}));break;case