|
|
|
@ -20,7 +20,7 @@ |
|
|
|
</swiper> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="coupon" v-if="promotionImgList == {}"> |
|
|
|
<div class="coupon" v-if="promotionImgList.imgUrl"> |
|
|
|
<a :href="promotionImgList.linkUrl || ''"><img :src="promotionImgList.imgUrl"/></a> |
|
|
|
</div> |
|
|
|
<div class="new-card" v-for="item in goodsList"> |
|
|
|
@ -168,14 +168,15 @@ |
|
|
|
//获取默认地址信息 |
|
|
|
getdefaultAddress (){ |
|
|
|
homeApi.getdefaultAddress().then(res => { |
|
|
|
// console.log('默认地址信息',res) |
|
|
|
console.log('默认地址信息',res) |
|
|
|
if ( res.code == 0 ){ |
|
|
|
if ( !res.data ){ |
|
|
|
this.show = true |
|
|
|
this.merchantNo = 2 |
|
|
|
} else { |
|
|
|
this.defaultCity = res.data.districtName || '' |
|
|
|
this.districtId = res.data.districtId || '' |
|
|
|
this.merchantNo = res.data.merchantNo || '' |
|
|
|
this.merchantNo = res.data.merchantNo || 2 |
|
|
|
this.addressValue = [] |
|
|
|
this.addressValue.push(res.data.provinceId) |
|
|
|
this.addressValue.push(res.data.cityId) |
|
|
|
@ -184,14 +185,15 @@ |
|
|
|
} else { |
|
|
|
this.$vux.toast.text(res.msg,"middle"); |
|
|
|
} |
|
|
|
console.log(this.merchantNo) |
|
|
|
this.getGoodsList() |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
//异步加载 |
|
|
|
this.getdefaultAddress() |
|
|
|
this.getGoodsList() |
|
|
|
this.getAddress() |
|
|
|
} |
|
|
|
}; |
|
|
|
|