From d172a1c9b80541c7f0019d5686d15ffd3058e7f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E9=A6=99=E7=90=AA?= <624506849@qq.com> Date: Fri, 17 Jul 2026 17:35:42 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(cart):=20=E8=B0=83=E6=95=B4=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=8F=90=E7=A4=BA=E5=B1=95=E7=A4=BA=E5=B9=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=B7=B2=E4=B8=8B=E6=9E=B6=E5=95=86=E5=93=81=E9=81=AE?= =?UTF-8?q?=E7=BD=A9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 简化 Cart.vue 中错误文案展示,移除多余 margin 优化 error-goods 样式:使用 inset 定位,并通过 box-sizing 管理 padding,改善布局与响应表现 --- buyer/src/pages/Cart.vue | 28 +++++----- buyer/src/pages/home/orderCenter/MyOrder.vue | 2 +- .../sys/setting-manage/settingManage.vue | 56 +++++++++++++++---- 3 files changed, 58 insertions(+), 28 deletions(-) diff --git a/buyer/src/pages/Cart.vue b/buyer/src/pages/Cart.vue index 54352fbd..88e98398 100644 --- a/buyer/src/pages/Cart.vue +++ b/buyer/src/pages/Cart.vue @@ -193,7 +193,7 @@
-
{{ goods.errorMessage }}
+
{{ goods.errorMessage }}
删除 @@ -785,20 +785,18 @@ export default { outline-color: $theme_color; } } - } - .error-goods { - position: absolute; - width: 100%; - height: 100%; - margin-left: -20px; - background-color: rgba($color: #999, $alpha: 0.5); - z-index: 10; - display: flex; - align-items: center; - justify-content: space-between; - padding-left: 150px; - color: #000; - padding-right: 30px; + .error-goods { + position: absolute; + inset: 0; + background-color: rgba($color: #999, $alpha: 0.5); + z-index: 10; + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 30px 0 150px; + box-sizing: border-box; + color: #000; + } } } &-footer { diff --git a/buyer/src/pages/home/orderCenter/MyOrder.vue b/buyer/src/pages/home/orderCenter/MyOrder.vue index 0d1ec14e..09cc3c15 100644 --- a/buyer/src/pages/home/orderCenter/MyOrder.vue +++ b/buyer/src/pages/home/orderCenter/MyOrder.vue @@ -55,7 +55,7 @@
{{ goods.name }}
- {{ $filters.unitPrice(goods.goodsPrice, "¥") }} x {{ goods.num }} + {{ $filters.unitPrice(goods.goodsPrice, "¥") }} x {{ goods.num }} {{refundPriceList(goods.isRefund)}}
评价 diff --git a/manager/src/views/sys/setting-manage/settingManage.vue b/manager/src/views/sys/setting-manage/settingManage.vue index f36d8bf8..b1f3b8c4 100644 --- a/manager/src/views/sys/setting-manage/settingManage.vue +++ b/manager/src/views/sys/setting-manage/settingManage.vue @@ -93,6 +93,7 @@ export default { { type: "WECHAT_PAYMENT", name: "微信支付设置" }, ], tabWay: [], // tab数据 + settingRequestSeq: 0, }; }, @@ -115,29 +116,60 @@ export default { this.selected = name; this.getSettingData(name); }, + resolveTabWay() { + const tabMap = { + setting: this.setting, + authLogin: this.authLogin, + pay: this.pay, + }; + this.tabWay = tabMap[this.$route.name] || []; + }, + normalizeSettingResult(res) { + if (!res || res.result == null) { + return {}; + } + const raw = res.result; + if (typeof raw === "string") { + try { + return JSON.parse(raw); + } catch (e) { + return {}; + } + } + if (typeof raw === "object") { + return raw; + } + return {}; + }, /** * 进入页面请求第一个配置 */ getSettingData(name) { this.settingData = ""; - Object.keys(this).forEach((item) => { - if (this.$route.name == item) { - this.tabWay = this[item]; - } - }); - // 点击页面给每项第一个数据赋值 + this.resolveTabWay(); + if (!name) { + if (!this.tabWay.length) { + return; + } name = this.tabWay[0].type; this.selected = name; } - getSetting(name).then((res) => { - if (res.result) { - this.settingData = JSON.stringify(res.result); - } else { + const requestId = ++this.settingRequestSeq; + getSetting(name) + .then((res) => { + if (requestId !== this.settingRequestSeq) { + return; + } + this.settingData = JSON.stringify(this.normalizeSettingResult(res)); + }) + .catch(() => { + if (requestId !== this.settingRequestSeq) { + return; + } this.settingData = "{}"; - } - }); + }); }, }, }; From 12291ad4d542bfbda2698bc756536f00cdcb8e06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E9=A6=99=E7=90=AA?= <624506849@qq.com> Date: Tue, 21 Jul 2026 17:01:38 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat(invoiceModal):=20=E5=8F=91=E7=A5=A8?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E7=BB=84=E4=BB=B6=E6=96=B0=E5=A2=9E=20change?= =?UTF-8?q?=20=E4=BA=8B=E4=BB=B6=20-=20=E5=9C=A8=E5=8F=91=E7=A5=A8?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E4=B8=AD=E5=A2=9E=E5=8A=A0=20change=20?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=20emit=EF=BC=8C=E4=BE=BF=E4=BA=8E=E7=88=B6?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E7=9B=91=E5=90=AC=E6=95=B0=E6=8D=AE=E5=8F=98?= =?UTF-8?q?=E5=8C=96=20-=20=E4=BC=98=E5=8C=96=20coupon-publish=20=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=20selectedMember=E3=80=81selectedList=20?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=EF=BC=8C=E5=AE=8C=E5=96=84=E4=BC=9A=E5=91=98?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/components/invoiceModal/index.vue | 1 + manager/src/views/member/list/index.vue | 43 +++++++++++++++++-- .../coupon-activity/coupon-publish.vue | 34 +++++++-------- 3 files changed, 57 insertions(+), 21 deletions(-) diff --git a/buyer/src/components/invoiceModal/index.vue b/buyer/src/components/invoiceModal/index.vue index c497e913..633b0ff8 100644 --- a/buyer/src/components/invoiceModal/index.vue +++ b/buyer/src/components/invoiceModal/index.vue @@ -92,6 +92,7 @@ import { mobile, email } from '@/plugins/RegExp.js'; export default { name: 'invoiceModal', + emits: ['change'], data () { return { invoice: 1, // 1 电子普通发票 2 增值税专用发票 diff --git a/manager/src/views/member/list/index.vue b/manager/src/views/member/list/index.vue index 10e36df0..8c40975b 100644 --- a/manager/src/views/member/list/index.vue +++ b/manager/src/views/member/list/index.vue @@ -68,7 +68,13 @@ row-key="id" @selection-change="onSelectionChange" > - + - +