Fix:3289 【礼品功能】进入礼包商品详情页,礼包赠送区域会先闪烁后正常显示
This commit is contained in:
@@ -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