From da6d79a75c3ef9ee9d1b0c979454f98177af8dd8 Mon Sep 17 00:00:00 2001 From: xvv Date: Wed, 25 Sep 2024 11:17:30 +0800 Subject: [PATCH] 9.25 --- gasStation-uni/pagesHome/Address/Address.vue | 62 +++++++++++++++----- 1 file changed, 47 insertions(+), 15 deletions(-) diff --git a/gasStation-uni/pagesHome/Address/Address.vue b/gasStation-uni/pagesHome/Address/Address.vue index c6c26d178..ffd585ca0 100644 --- a/gasStation-uni/pagesHome/Address/Address.vue +++ b/gasStation-uni/pagesHome/Address/Address.vue @@ -17,11 +17,12 @@ - - - - + + + + + + 默认信息 @@ -55,7 +56,8 @@ return { title: '', dataList: '', - checked: false, + checkboxValue1: [], + checked: true, } }, onShow() { @@ -65,20 +67,21 @@ }, methods: { - chooseDefault(data,checked) { - if (checked) { + chooseDefault(data) { + console.log(data); + if (data.checked == false) { data.ifDefault = 1 - }else{ + } else { data.ifDefault = 2 } request({ url: '/business/userManager/mtUserExpressAddress', method: 'put', - data:data + data: data }).then((res) => { if (res.code == 200) { this.getList() - console.log(res,81); + console.log(res, 81); } }) }, @@ -96,7 +99,7 @@ } this.$set(item, 'checked', item.checked); // 正确更新响应式属性 }) - console.log(res,this.dataList,98); + console.log(res, this.dataList, 98); this.$forceUpdate() } }) @@ -115,11 +118,13 @@ }) }, // 删除 - delInfo(data){ + delInfo(data) { request({ url: '/business/userManager/mtUserExpressAddress', method: 'delete', - params:{id:data.id} + params: { + id: data.id + } }).then((res) => { if (res.code == 200) { this.getList() @@ -198,7 +203,10 @@ box-sizing: border-box; } - .box-left {} + .box-left { + display: flex; + align-items: center; + } .box-right { width: 30%; @@ -226,4 +234,28 @@ justify-content: space-between; margin-top: 20px; } + + .acvf { + border-radius: 50%; + border: 1px solid #eee; + height: 16px; + width: 16px; + display: flex; + align-items: center; + justify-content: center; + margin-right: 10px; + } + + .acv { + border-radius: 50%; + border: 1px solid #1678ff; + height: 16px; + width: 16px; + background: #1678ff; + color: #fff; + margin-right: 10px; + display: flex; + align-items: center; + justify-content: center; + } \ No newline at end of file