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