Fix:收礼无法点击填写地址按钮

This commit is contained in:
modendeveloper
2025-02-24 21:42:50 +08:00
parent 744e6d98f9
commit 12fa155630
2 changed files with 13 additions and 5 deletions
@@ -37,10 +37,12 @@
</view>
</view>
<!-- 添加新地址按钮 -->
<view class="v12-white btn-wrap">
<view class="add-btn v12-primary v12-white-text" @click="addNewAddress">
<text>添加新地址</text>
</view>
</view>
</view>
</u-popup>
</template>
@@ -114,7 +116,7 @@ export default {
margin-bottom: 20rpx;
}
.address-list {
padding: 20rpx;
padding: 20rpx 20rpx 0rpx;
width: 640rpx;
height: 800rpx;
overflow: auto;
@@ -147,13 +149,16 @@ export default {
}
.add-btn {
margin-top: 30rpx;
padding: 20rpx;
text-align: center;
background-color: #fff;
border: 1rpx solid #ddd;
border-radius: 100rpx;
}
.btn-wrap{
position: sticky;
bottom: 0;
width: 100%;
padding: 20rpx 0;
}
</style>
+4 -1
View File
@@ -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()
}