Fix:3289 【礼品功能】进入礼包商品详情页,礼包赠送区域会先闪烁后正常显示

This commit is contained in:
linxi
2025-02-24 17:20:18 +08:00
parent 6af05e705a
commit 1319517a41
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -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()
}
})