Fix:收礼无法点击填写地址按钮
This commit is contained in:
@@ -37,8 +37,10 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 添加新地址按钮 -->
|
<!-- 添加新地址按钮 -->
|
||||||
<view class="add-btn v12-primary v12-white-text" @click="addNewAddress">
|
<view class="v12-white btn-wrap">
|
||||||
<text>添加新地址</text>
|
<view class="add-btn v12-primary v12-white-text" @click="addNewAddress">
|
||||||
|
<text>添加新地址</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
@@ -114,7 +116,7 @@ export default {
|
|||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
}
|
}
|
||||||
.address-list {
|
.address-list {
|
||||||
padding: 20rpx;
|
padding: 20rpx 20rpx 0rpx;
|
||||||
width: 640rpx;
|
width: 640rpx;
|
||||||
height: 800rpx;
|
height: 800rpx;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
@@ -147,13 +149,16 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.add-btn {
|
.add-btn {
|
||||||
margin-top: 30rpx;
|
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border: 1rpx solid #ddd;
|
border: 1rpx solid #ddd;
|
||||||
border-radius: 100rpx;
|
border-radius: 100rpx;
|
||||||
|
}
|
||||||
|
.btn-wrap{
|
||||||
position: sticky;
|
position: sticky;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
padding: 20rpx 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
<view class="v12-text-center v12-font-26 v12-white-text v12-mt-3">去商城看看>></view>
|
<view class="v12-text-center v12-font-26 v12-white-text v12-mt-3">去商城看看>></view>
|
||||||
</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>
|
</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">
|
<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) {
|
setAddress(flag) {
|
||||||
|
console.log(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
|
||||||
|
console.log(flag);
|
||||||
|
|
||||||
if(flag) return
|
if(flag) return
|
||||||
this.$refs.AddressList.open()
|
this.$refs.AddressList.open()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user