From 4777eb2dd63da6bc4fff186e57a278aae3baef1f Mon Sep 17 00:00:00 2001 From: "pikachu1995@126.com" Date: Tue, 29 Sep 2026 18:11:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(buyer):=20=E6=96=B0=E5=A2=9E=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=B9=B6=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E6=8F=90=E5=8D=87=E7=94=A8=E6=88=B7=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 `getMemberMessage` 接口方法,用于获取会员消息 - 调整全局及商品列表样式,提升可读性与一致性 - 精简 `Search.vue`,移除不必要的店铺搜索切换 - 放宽 `addressManage` 中地址别名的输入长度 - 优化 `ShowGoods.vue` 和 `ShowGoodsDetail.vue` 的布局与样式 - 更新 `Cart.vue` 中的购物车步骤展示,让流程导航更清晰 - 调整多个组件,统一字号并优化界面元素 --- buyer/src/api/member.js | 9 + buyer/src/assets/styles/global.scss | 9 +- buyer/src/assets/styles/goodsList.scss | 11 +- buyer/src/components/Search.vue | 21 +- buyer/src/components/addressManage/index.vue | 4 +- .../src/components/goodsDetail/ShowGoods.vue | 200 ++-- .../goodsDetail/ShowGoodsDetail.vue | 888 +++++++++--------- buyer/src/components/header/Header.vue | 18 +- buyer/src/components/map/multiple-map.vue | 6 +- buyer/src/components/nav/CateNav.vue | 188 ++-- buyer/src/components/nav/GoodsClassNav.vue | 611 ++++++------ buyer/src/components/userCenter/Layout.vue | 23 +- buyer/src/pages/Cart.vue | 176 ++-- buyer/src/pages/GoodsDetail.vue | 59 +- buyer/src/pages/GoodsList.vue | 159 ++-- buyer/src/pages/Index.vue | 4 +- buyer/src/pages/Login.vue | 538 +++++------ buyer/src/pages/Merchant.vue | 476 +++++++--- buyer/src/pages/SignUp.vue | 356 ++++--- buyer/src/pages/article/index.vue | 261 +++-- buyer/src/pages/home/enumeration.js | 2 +- .../pages/home/memberCenter/AccountSafe.vue | 6 +- .../pages/home/memberCenter/CommentList.vue | 293 +++--- .../home/memberCenter/ComplainDetail.vue | 4 +- .../pages/home/memberCenter/ComplainList.vue | 300 +++--- .../src/pages/home/memberCenter/Favorites.vue | 282 ++++-- .../pages/home/memberCenter/MemberGrade.vue | 387 +++++--- .../src/pages/home/memberCenter/ModifyPwd.vue | 30 +- buyer/src/pages/home/memberCenter/Point.vue | 143 ++- buyer/src/pages/home/memberCenter/Profile.vue | 439 +++++---- .../home/memberCenter/evaluation/AddEval.vue | 6 +- .../memberCenter/evaluation/EvalDetail.vue | 339 ++++--- .../home/memberCenter/memberMsg/MsgDetail.vue | 133 ++- .../home/memberCenter/memberMsg/MsgList.vue | 169 +++- .../src/pages/home/orderCenter/AddAddress.vue | 4 +- .../src/pages/home/orderCenter/AfterSale.vue | 409 +++++--- .../home/orderCenter/AfterSaleDetail.vue | 458 ++++++--- .../pages/home/orderCenter/ApplyAfterSale.vue | 4 +- buyer/src/pages/home/orderCenter/Complain.vue | 4 +- .../src/pages/home/orderCenter/MyAddress.vue | 2 +- buyer/src/pages/home/orderCenter/MyOrder.vue | 459 +++++---- .../pages/home/orderCenter/OrderDetail.vue | 400 +++++--- buyer/src/pages/home/userCenter/Coupons.vue | 71 +- .../pages/home/userCenter/MoneyManagement.vue | 409 +++++--- .../src/pages/home/userCenter/MyGiftCards.vue | 13 +- buyer/src/pages/home/userCenter/MyTracks.vue | 115 ++- buyer/src/pages/payment/Pay.vue | 756 ++++++++------- buyer/src/pages/payment/PayMent.vue | 2 +- buyer/src/pages/payment/ThirdPay.vue | 2 +- buyer/src/pages/shopEntry/FirstApply.vue | 2 +- buyer/src/pages/shopEntry/ThirdApply.vue | 2 +- buyer/src/pages/user/Home.vue | 43 +- buyer/src/router/index.js | 2 +- buyer/src/utils/buyerLogin.js | 47 +- 54 files changed, 5816 insertions(+), 3938 deletions(-) diff --git a/buyer/src/api/member.js b/buyer/src/api/member.js index e0305eb14..bbe177de8 100644 --- a/buyer/src/api/member.js +++ b/buyer/src/api/member.js @@ -446,6 +446,15 @@ export function memberMsgList (params) { * @param {String} messageId 消息id */ +export function getMemberMessage (id) { + return request({ + url: `/buyer/message/member/${id}`, + method: Method.GET, + needToken: true, + skipMessage: true + }); +} + export function readMemberMsg (id) { return request({ url: `/buyer/message/member/${id}`, diff --git a/buyer/src/assets/styles/global.scss b/buyer/src/assets/styles/global.scss index 7f5103e9e..3fa954986 100644 --- a/buyer/src/assets/styles/global.scss +++ b/buyer/src/assets/styles/global.scss @@ -355,16 +355,17 @@ li { margin-top: 6px; } .goods-show-detail { - font-size: 12px; + font-size: 14px; + line-height: 21px; margin: 6px 0px; } .goods-show-num { - font-size: 12px; + font-size: 14px; margin-bottom: 6px; color: #666; } .goods-show-num { - font-size: 12px; + font-size: 14px; margin-bottom: 6px; color: #009688; } @@ -373,7 +374,7 @@ li { font-weight: bold; } .goods-show-seller { - font-size: 12px; + font-size: 14px; color: $theme_color; } .goods-page { diff --git a/buyer/src/assets/styles/goodsList.scss b/buyer/src/assets/styles/goodsList.scss index 30b17b936..7be01552e 100644 --- a/buyer/src/assets/styles/goodsList.scss +++ b/buyer/src/assets/styles/goodsList.scss @@ -36,8 +36,9 @@ margin-top: 6px; } .goods-show-detail { - height: 36px; - font-size: 12px; + height: 42px; + font-size: 14px; + line-height: 21px; margin: 6px 0px; overflow:hidden; text-overflow: ellipsis; @@ -51,12 +52,12 @@ color:#E23A3A; } .goods-show-num { - font-size: 12px; + font-size: 14px; margin-bottom: 6px; color: #666; } .goods-show-num { - font-size: 12px; + font-size: 14px; margin-bottom: 6px; color: #009688; } @@ -65,7 +66,7 @@ font-weight: bold; } .goods-show-seller { - font-size: 12px; + font-size: 14px; color: $theme_color; } .goods-page { diff --git a/buyer/src/components/Search.vue b/buyer/src/components/Search.vue index f5b47e1e5..96d6ffc42 100644 --- a/buyer/src/components/Search.vue +++ b/buyer/src/components/Search.vue @@ -37,10 +37,6 @@