From 297bdd95ddd1a15eeebd002ce039a9b78e3ac2e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E9=A6=99=E7=90=AA?= <624506849@qq.com> Date: Mon, 6 Jul 2026 16:33:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20API=20=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=8F=82=E6=95=B0=E4=B8=8E=E7=BB=84=E4=BB=B6=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BC=98=E5=8C=96=20-=20=E5=9C=A8=20account.js=20?= =?UTF-8?q?=E5=92=8C=20member.js=20=E4=B8=AD=E6=B7=BB=E5=8A=A0=20loading?= =?UTF-8?q?=20=E5=92=8C=20skipMessage=20=E5=8F=82=E6=95=B0=EF=BC=8C?= =?UTF-8?q?=E6=8F=90=E5=8D=87=20API=20=E8=B0=83=E7=94=A8=E7=9A=84=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BD=93=E9=AA=8C=E3=80=82=20-=20=E5=9C=A8=20ShowGood?= =?UTF-8?q?s.vue=20=E4=B8=AD=E4=BC=98=E5=8C=96=E5=95=86=E5=93=81=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=B1=95=E7=A4=BA=E6=A0=B7=E5=BC=8F=EF=BC=8C=E5=A2=9E?= =?UTF-8?q?=E5=BC=BA=E5=8F=AF=E8=AF=BB=E6=80=A7=E5=92=8C=E4=BA=A4=E4=BA=92?= =?UTF-8?q?=E6=80=A7=E3=80=82=20-=20=E5=9C=A8=20Cart.vue=20=E4=B8=AD?= =?UTF-8?q?=E9=87=8D=E6=9E=84=E8=B4=AD=E7=89=A9=E8=BD=A6=E5=95=86=E5=93=81?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=BB=93=E6=9E=84=EF=BC=8C=E6=8F=90=E5=8D=87?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E4=B8=80=E8=87=B4=E6=80=A7=E3=80=82=20-=20?= =?UTF-8?q?=E5=9C=A8=E5=A4=9A=E4=B8=AA=E9=A1=B5=E9=9D=A2=E4=B8=AD=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=BA=86=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF=E7=9A=84?= =?UTF-8?q?=E5=86=85=E5=AE=B9=EF=BC=8C=E7=A1=AE=E4=BF=9D=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E7=9A=84=E6=B8=85=E6=99=B0=E5=8F=8D=E9=A6=88?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/api/account.js | 4 +- buyer/src/api/member.js | 4 +- .../src/components/goodsDetail/ShowGoods.vue | 100 +++++++-- .../goodsDetail/ShowGoodsDetail.vue | 65 +++--- buyer/src/pages/Cart.vue | 206 ++++++++++++------ buyer/src/pages/GoodsDetail.vue | 24 +- buyer/src/pages/GoodsList.vue | 14 +- .../pages/home/memberCenter/ComplainList.vue | 2 +- .../pages/home/memberCenter/Distribution.vue | 28 ++- .../src/pages/home/memberCenter/Favorites.vue | 8 +- .../src/pages/home/memberCenter/ModifyPwd.vue | 17 +- .../home/memberCenter/evaluation/AddEval.vue | 75 +++++-- .../src/pages/home/orderCenter/AddAddress.vue | 9 +- .../src/pages/home/orderCenter/AfterSale.vue | 6 +- .../home/orderCenter/AfterSaleDetail.vue | 21 +- buyer/src/pages/home/orderCenter/Complain.vue | 26 ++- .../pages/home/orderCenter/OrderDetail.vue | 24 +- buyer/src/pages/home/userCenter/MyTracks.vue | 12 +- buyer/src/plugins/request.js | 15 +- manager/src/views/goods/goods-info/goods.vue | 7 +- seller/src/styles/element.scss | 5 + .../views/goods/goods-seller/addGoods.scss | 16 ++ .../goods/goods-seller/goodsOperationSec.vue | 73 +++++-- .../lili-components/editor/upload-image.vue | 54 ++++- .../after-order/reurnGoodsOrderDetail.vue | 4 +- seller/src/views/shop/ossManage.scss | 14 +- seller/src/views/shop/ossManage.vue | 79 ++++--- seller/src/views/shop/ossManages.vue | 36 ++- 28 files changed, 689 insertions(+), 259 deletions(-) diff --git a/buyer/src/api/account.js b/buyer/src/api/account.js index b7b133b1..53aaf414 100644 --- a/buyer/src/api/account.js +++ b/buyer/src/api/account.js @@ -55,7 +55,9 @@ export function editPwd (params) { url: `/buyer/passport/member/modifyPass`, method: Method.PUT, needToken: true, - data: params + data: params, + loading: false, + skipMessage: true }) } diff --git a/buyer/src/api/member.js b/buyer/src/api/member.js index 0106de9d..31a55140 100644 --- a/buyer/src/api/member.js +++ b/buyer/src/api/member.js @@ -427,7 +427,9 @@ export function distCash (params) { url: `/buyer/distribution/cash`, method: Method.POST, needToken: true, - params + params, + loading: false, + skipMessage: true }); } diff --git a/buyer/src/components/goodsDetail/ShowGoods.vue b/buyer/src/components/goodsDetail/ShowGoods.vue index 1c8dcd55..44e1c7df 100644 --- a/buyer/src/components/goodsDetail/ShowGoods.vue +++ b/buyer/src/components/goodsDetail/ShowGoods.vue @@ -28,28 +28,36 @@
- {{ isCollected ? "已收藏" : "收藏" }} + + + {{ isCollected ? '已收藏' : '收藏' }} +
-

- {{ skuDetail.goodsName }} +

+ {{ skuDetail.goodsName }} 实物商品 虚拟商品 -

+
{{ skuDetail.sellingPoint }} @@ -224,13 +232,13 @@
- 库存{{ skuDetail.quantity }} +   库存{{ skuDetail.quantity }}
@@ -325,9 +333,7 @@ export default { handler(val) { this.skuDetail = val.data; this.wholesaleList = val.wholesaleList; - if (this.wholesaleList && this.wholesaleList.length > 0) { - this.count = this.wholesaleList[0].num; - } + this.syncCountWithQuantity(); this.promotion(); this.swiperGoodsImg(); }, @@ -388,6 +394,13 @@ export default { }) : []; }, + quantityMax() { + const qty = Number(this.skuDetail.quantity) || 0; + return qty > 0 ? qty : 1; + }, + isOutOfStock() { + return (Number(this.skuDetail.quantity) || 0) <= 0; + }, }, methods: { // 初始化video @@ -408,6 +421,22 @@ export default { }, + syncCountWithQuantity() { + const qty = Number(this.skuDetail.quantity) || 0; + if (qty <= 0) { + this.count = 1; + return; + } + if (this.wholesaleList && this.wholesaleList.length > 0) { + this.count = Math.min(Math.max(this.wholesaleList[0].num, 1), qty); + return; + } + if (this.count > qty) { + this.count = qty; + } else if (this.count < 1) { + this.count = 1; + } + }, changeCount(val) { if (this.wholesaleList && this.wholesaleList.length > 0) { if (this.count <= this.wholesaleList[0].num) { @@ -688,11 +717,23 @@ export default { flex-direction: column; } -.item-detail-title p { +.item-detail-title-row { + display: flex; + align-items: center; + flex-wrap: wrap; + gap: 8px; + padding: 8px 0; +} + +.item-detail-name { @include content_color($light_content_color); font-weight: bold; font-size: 20px; - padding: 8px 0; + line-height: 1.4; +} + +.goods-type-tag { + flex-shrink: 0; } .item-detail-express { @@ -941,13 +982,32 @@ export default { .goodsConfig { display: flex; justify-content: space-between; - > span { + + .collect-btn { + display: inline-flex; + align-items: center; + gap: 4px; padding-right: 10px; - &:hover { - cursor: pointer; - color: $theme_color; + color: #666; + cursor: pointer; + line-height: 1; + + &.is-collected { + .collect-icon { + color: #ffc107; + } } } + + .collect-icon { + display: inline-flex; + align-items: center; + font-size: 16px; + } + + .collect-text { + line-height: 1; + } } .sell-point { font-size: 12px; diff --git a/buyer/src/components/goodsDetail/ShowGoodsDetail.vue b/buyer/src/components/goodsDetail/ShowGoodsDetail.vue index e4c4d177..e01e7cee 100644 --- a/buyer/src/components/goodsDetail/ShowGoodsDetail.vue +++ b/buyer/src/components/goodsDetail/ShowGoodsDetail.vue @@ -338,7 +338,7 @@ export default { font-weight: bolder; } .item-intro-detail{ - margin: 0 30px; + margin: 0; width: 100%; } .item-intro-nav{ @@ -365,6 +365,8 @@ export default { } .item-intro-img { width: 100%; + box-sizing: border-box; + padding: 0 30px; min-height: 300px; :deep img{ margin:0 auto; @@ -377,6 +379,8 @@ export default { .item-param-container { display: flex; flex-direction: column; + box-sizing: border-box; + padding: 0 30px; } .item-param-box { padding: 5px; @@ -400,6 +404,10 @@ export default { color: #666666; background-color: #F7F7F7; } +.remarks-container { + box-sizing: border-box; + padding: 0 30px; +} .remarks-analyse-box { padding: 15px; display: flex; @@ -507,31 +515,36 @@ export default { } /***************商品详情介绍和推荐侧边栏结束***************/ /* 改变标签页样式 */ -:deep(.el-tabs__active-bar) { - background-color: $theme_color !important; -} -:deep(.el-tabs__header) { - border: none; -} -.item-tabs > .el-tabs > .el-tabs__header .el-tabs__item { - border-radius: 0px; - color: #999; - height: 38px; -} -.item-tabs > .el-tabs > .el-tabs__header .el-tabs__item.is-active { - color: #fff; - background-color: $theme_color; -} -.item-tabs > .el-tabs > .el-tabs__header .el-tabs__item.is-active:before { - content: ''; - display: block; - width: 100%; - height: 1px; - color: #fff; - background: #F7F7F7; - position: absolute; - top: 0; - left: 0; +.item-tabs { + :deep(.el-tabs__header) { + border: none; + margin: 0; + background-color: #f7f7f7; + } + + :deep(.el-tabs__active-bar) { + background-color: $theme_color !important; + } + + :deep(.el-tabs__item) { + border-radius: 0; + color: #999; + height: 38px; + padding: 0 20px; + + &:hover { + color: #999; + } + } + + :deep(.el-tabs__nav) { + padding-left: 10px; + } + + :deep(.el-tabs__item.is-active) { + color: $theme_color !important; + background-color: transparent; + } } :deep(.el-rate__icon) { color: $theme_color; diff --git a/buyer/src/pages/Cart.vue b/buyer/src/pages/Cart.vue index 5d728f4c..7e11566c 100644 --- a/buyer/src/pages/Cart.vue +++ b/buyer/src/pages/Cart.vue @@ -25,8 +25,9 @@
+
-
+
购物车空空如也

去选购>
-
-
-
- - {{ - shop.storeName - }} -
- - -
-
- ¥{{ item.price }} - {{ item.couponDiscount }}折 - 满{{ item.consumeThreshold }}元可用 - {{ item.disabled ? "已领取" : "领取" }} -
+
+
+
+
+
- -
{{ shop.promotionNotice }}
-
- +
+