Commit 5ea9febc45a928d022a70cc9853a00ae04a14887

Authored by zhiyangdu
1 parent 8ed9c63f

/判断当前地址是否设置,如果没设置,设置首选地址

src/pages/partyBuildingGoodDetails/partyBuildingGoodDetails.vue
... ... @@ -334,14 +334,12 @@ export default {
334 334 */
335 335 if (this.goodsInfo.shop_type == 1) {
336 336 // 判断当前地址是否设置,如果没设置,设置首选地址
337   - if (!this.currentAddress) {
338   -
339   - // 设置首选地址
340   - this.getMyFirstAddress();
341   - } else {
342   -
  337 + if (window.localStorage.getItem('currentAddress')) {
343 338 // 设置地址浮层参数
344 339 this.setAddressModalOptions();
  340 + } else {
  341 + // 设置首选地址
  342 + this.getMyFirstAddress();
345 343 }
346 344 // 判断组件是否加载
347 345 if (typeof this.$refs.addressModal === 'object') {
... ...