Fix:收礼无法点击填写地址按钮
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<view class="v12-text-center v12-font-26 v12-white-text v12-mt-3">去商城看看>></view>
|
||||
</view>
|
||||
<!-- 弹窗内容 -->
|
||||
<view v-if="!isReceive && card.giftProducts[0].isReceive !== 1" class="address-btn v12-white v12-primary-text" @click="setAddress">
|
||||
<view v-if="!isReceive && card.giftProducts[0].isReceive !== 1" class="address-btn v12-white v12-primary-text" @click="setAddress(0)">
|
||||
填写地址并收下
|
||||
</view>
|
||||
<button open-type="share" class="share-btn v12-white v12-primary-text v12-d-flex" v-if="card.canTransfer !== 0 && !isReceive && card.giftProducts[0].isReceive !== 1">
|
||||
@@ -129,11 +129,14 @@ export default {
|
||||
})
|
||||
},
|
||||
setAddress(flag) {
|
||||
console.log(flag);
|
||||
getAddressList().then(res => {
|
||||
if (res.data.length === 0) {
|
||||
this.$refs.addressDialog.open()
|
||||
} else {
|
||||
this.address = res.data
|
||||
console.log(flag);
|
||||
|
||||
if(flag) return
|
||||
this.$refs.AddressList.open()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user