Fix:3289 【礼品功能】进入礼包商品详情页,礼包赠送区域会先闪烁后正常显示
This commit is contained in:
@@ -64,8 +64,8 @@
|
||||
</view>
|
||||
<view class="introduce bold">{{ storeInfo.storeName }}</view>
|
||||
<view v-if="storeInfo.isGiftCard === 1" class="v12-primary v12-white-text v12-px-2 v12-py-1 v12-mt-2 v12-radius-20 v12-font-bold v12-justify-between v12-align-center">
|
||||
<view class="v12-font-28 v12-align-center">
|
||||
<img class="gift-img" :src="webUrl + '/orderIcon/gift.png'" mode="widthFix">
|
||||
<view class="v12-font-28 v12-align-center" style="height: 74rpx">
|
||||
<image class="gift-img" :src="webUrl + '/orderIcon/gift.png'" mode="widthFix" ></image>
|
||||
支持礼包赠送
|
||||
</view>
|
||||
<view @click="toGift" class="v12-white v12-dark-text v12-radius-20 v12-font-28 gift-btn">
|
||||
@@ -2130,6 +2130,7 @@ export default {
|
||||
}
|
||||
.gift-img{
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -85,7 +85,7 @@ export default {
|
||||
handler(newVal, oldVal) {
|
||||
if (newVal && newVal.id) {
|
||||
// this.address = newVal
|
||||
this.setAddress()
|
||||
this.setAddress(1)
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
@@ -128,12 +128,13 @@ export default {
|
||||
uni.hideLoading()
|
||||
})
|
||||
},
|
||||
setAddress() {
|
||||
setAddress(flag) {
|
||||
getAddressList().then(res => {
|
||||
if (res.data.length === 0) {
|
||||
this.$refs.addressDialog.open()
|
||||
} else {
|
||||
this.address = res.data
|
||||
if(flag) return
|
||||
this.$refs.AddressList.open()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user