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.
1 line
8.3 KiB
1 line
8.3 KiB
3 months ago
|
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_address/index"],{"5b96":function(e,t,i){},"6fe9":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return s})),i.d(t,"a",(function(){}));var n=function(){var e=this.$createElement,t=(this._self._c,this.addressInfo.length);this.$mp.data=Object.assign({},{$root:{g0:t}})},s=[]},"87e3":function(e,t,i){"use strict";i.r(t);var n=i("e677"),s=i.n(n);for(var d in n)["default"].indexOf(d)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(d);t["default"]=s.a},a2ed:function(e,t,i){"use strict";(function(e,t){var n=i("47a9");i("7561");n(i("3240"));var s=n(i("d9c5"));e.__webpack_require_UNI_MP_PLUGIN__=i,t(s.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},d9c5:function(e,t,i){"use strict";i.r(t);var n=i("6fe9"),s=i("87e3");for(var d in s)["default"].indexOf(d)<0&&function(e){i.d(t,e,(function(){return s[e]}))}(d);i("f00f");var o=i("828b"),r=Object(o["a"])(s["default"],n["b"],n["c"],!1,null,"bf3a8dd8",null,!1,n["a"],void 0);t["default"]=r.exports},e677:function(e,t,i){"use strict";(function(e){var n=i("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=n(i("7ca3")),d=i("77d7"),o=(i("a230"),i("7ba4")),r=i("8f59"),a=n(i("cef6")),c=n(i("1146"));function u(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function l(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?u(Object(i),!0).forEach((function(t){(0,s.default)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var f={components:{areaWindow:function(){Promise.all([i.e("common/vendor"),i.e("components/areaWindow/index")]).then(function(){return resolve(i("e740"))}.bind(null,i)).catch(i.oe)},home:function(){Promise.all([i.e("common/vendor"),i.e("components/home/index")]).then(function(){return resolve(i("b7a2"))}.bind(null,i)).catch(i.oe)}},mixins:[a.default],data:function(){return{cartId:"",pinkId:0,couponId:0,id:0,userAddress:{is_default:!1},isAuto:!1,isShowAuth:!1,district:[],news:"",noCoupon:0,display:!1,addressInfo:[],addressVal:"",latitude:"",longitude:"",city_id:0,addressValue:"",deliveryType:1,store_name:"",storeId:0,product_id:0,fromType:0}},computed:l(l({},(0,r.mapGetters)(["isLogin"])),{},{addressText:function(){return this.addressInfo.map((function(e){return e.label})).join("/")}}),watch:{isLogin:{handler:function(e,t){},deep:!0}},onLoad:function(t){this.cartId=t.cartId||"",this.pinkId=t.pinkId||0,this.couponId=t.couponId||0,this.id=t.id||0,this.noCoupon=t.noCoupon||0,this.news=t.new||"",this.deliveryType=t.delivery_type||1,this.store_name=t.store_name,this.storeId=t.store_id,this.product_id=t.product_id,this.fromType=t.fromType,e.setNavigationBarTitle({title:t.id?"修改地址":"添加地址"}),this.isLogin?this.getUserAddress():(0,o.toLogin)()},onShow:function(){e.removeStorageSync("form_type_cart")},methods:{onLoadFun:function(){this.getUserAddress(),this.isShowAuth=!1},authColse:function(e){this.isShowAuth=e},changeRegion:function(){this.display=!0},OnChangeAddress:function(e){this.latitude="",this.longitude="",this.addressInfo=e},changeClose:function(){this.display=!1},getUserAddress:function(){if(!this.id)return!1;var e=this;(0,d.getAddressDetail)(this.id).then((function(t){t.data.province,t.data.city,t.data.district,t.data.street;e.$set(e,"userAddress",t.data),e.addressInfo=t.data.city_list,e.latitude=t.data.latitude,e.longitude=t.data.longitude,e.city_id=t.data.city_id}))},chooseLocation:function(){var t=this,i=this;e.chooseLocation({success:function(e){var n,s;n=e.latitude.toString(),s=e.longitude.toString(),t.latitude=e.latitude,t.longitude=e.longitude,(0,d.getGeocoder)({lat:n,long:s}).then((function(e){var t=e.data;(0,d
|