diff --git a/pkg_user/views/gift/components/AddressList.vue b/pkg_user/views/gift/components/AddressList.vue index fe99f91..00b4a4f 100644 --- a/pkg_user/views/gift/components/AddressList.vue +++ b/pkg_user/views/gift/components/AddressList.vue @@ -17,6 +17,7 @@ v-for="(item, index) in addressList" :key="index" class="address-item" + :class="{'active': item.id == activeIndex}" > @@ -58,6 +59,7 @@ export default { return { webUrl: this.$VUE_APP_RESOURCES_URL, showPopup: false, // 新增控制弹窗显示的状态 + activeIndex: '' } }, methods: { @@ -78,6 +80,7 @@ export default { }, // 选择地址 handleSelect(item) { + this.activeIndex = item.id uni.showModal({ title: '提示', content: '确认选择这个收货地址吗?', @@ -165,4 +168,8 @@ export default { width: 100%; padding: 20rpx 0; } +.active{ + background-color: #F5F5F5; + border-radius: 10rpx; +} \ No newline at end of file