From 6b09cf8a903faf77ee0e02a0a4f417ccff790940 Mon Sep 17 00:00:00 2001 From: linxi <957440651@qq.com> Date: Mon, 17 Aug 2026 14:39:29 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A5761=20=E3=80=90=E7=A4=BC=E5=93=81?= =?UTF-8?q?=E9=9B=86=E9=87=87=E4=B8=AD=E5=BF=83PC=E7=AB=AF=E3=80=91?= =?UTF-8?q?=E3=80=90=E5=95=86=E6=88=B7=E5=85=A5=E9=A9=BB-=E7=A4=BC?= =?UTF-8?q?=E5=93=81=E9=9B=86=E9=87=87=E4=B8=AD=E5=BF=83=E3=80=91=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E3=80=81=E8=B5=84=E8=B4=A8=E5=86=85=E5=AE=B9=EF=BC=8C?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=9B=BE=E7=89=87=E5=8F=AF=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=EF=BC=8C=E6=97=A0=E5=88=A0=E9=99=A4=E6=8C=89?= =?UTF-8?q?=E9=94=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_join/views/wholesaler.vue | 63 ++++++++++++++++++++++++++++++----- 1 file changed, 54 insertions(+), 9 deletions(-) diff --git a/pkg_join/views/wholesaler.vue b/pkg_join/views/wholesaler.vue index ce8e1ed..bac3623 100644 --- a/pkg_join/views/wholesaler.vue +++ b/pkg_join/views/wholesaler.vue @@ -44,11 +44,19 @@ v-if="!form.avatar" class="btn-upload" >上传图片 - + + + + x + + @@ -139,12 +147,23 @@ >上传图片 - + class="img-wrap" + > + + + x + + @@ -433,6 +452,15 @@ export default { } }) }, + // 删除图片 + deleteImg(target, index) { + if (target === 'avatar') { + this.form.avatar = '' + } else if (target === 'qualification') { + this.qualificationArr.splice(index, 1) + this.form.qualification = this.qualificationArr.join(',') + } + }, // 省市区 result(values) { this.address = { @@ -526,6 +554,23 @@ export default { .font-color-red{ font-size: 24rpx; } +.img-wrap { + position: relative; + display: inline-block; + + .delete-badge { + position: absolute; + top: 0; + right: 20rpx; + background: #000; + color: #fff; + padding: 2rpx 8rpx; + border-radius: 0 0 0 200rpx; + font-size: 22rpx; + z-index: 10; + text-align: center; + } +} .captcha-wrap { display: flex; align-items: center;