From 1d73521e17339b525ac3cf0528270f04c3f3c290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Fri, 21 Nov 2025 10:47:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(shop):=20=E6=9B=B4=E6=96=B0=E5=95=86?= =?UTF-8?q?=E5=93=81=E4=BB=B7=E6=A0=BC=E6=98=BE=E7=A4=BA=E5=8F=8A=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E7=8A=B6=E6=80=81=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改商品列表和详情页价格展示,增加会员价和原价显示 - 调整订单确认收货状态值从30改为20 - 恢复订单列表中查看物流按钮功能 - 更新二维码接口域名地址 - 统一使用Taro组件替换部分原生HTML标签 --- src/components/SimpleQRCodeModal.tsx | 2 +- src/pages/index/BestSellers.tsx | 2 + src/shop/category/components/GoodsList.tsx | 59 ++++++++++++---------- src/shop/goodsDetail/index.tsx | 6 ++- src/user/order/components/OrderList.tsx | 10 ++-- 5 files changed, 43 insertions(+), 36 deletions(-) diff --git a/src/components/SimpleQRCodeModal.tsx b/src/components/SimpleQRCodeModal.tsx index 167c8cc..1acde23 100644 --- a/src/components/SimpleQRCodeModal.tsx +++ b/src/components/SimpleQRCodeModal.tsx @@ -81,7 +81,7 @@ const SimpleQRCodeModal: React.FC = ({ {qrContent ? ( 二维码 void}) => { {item.price} + 会员价 + ¥{item.salePrice} diff --git a/src/shop/category/components/GoodsList.tsx b/src/shop/category/components/GoodsList.tsx index 19f34aa..f84ae9e 100644 --- a/src/shop/category/components/GoodsList.tsx +++ b/src/shop/category/components/GoodsList.tsx @@ -1,5 +1,6 @@ import {Image} from '@nutui/nutui-react-taro' import {Share} from '@nutui/icons-react-taro' +import {View, Text} from '@tarojs/components' import Taro from '@tarojs/taro' import './GoodsList.scss' @@ -8,43 +9,45 @@ const GoodsList = (props: any) => { return ( <> -
-
- {props.data?.map((item, index) => { + + + {props.data?.map((item: any, index: number) => { return ( -
+ Taro.navigateTo({url: '/shop/goodsDetail/index?id=' + item.goodsId})}/> -
-
-
{item.name}
-
- {item.comments} - 已售 {item.sales} -
-
-
- - {item.price} -
-
-
+ + + {item.name} + + {item.comments} + 已售 {item.sales} + + + + + {item.price} + 会员价 + ¥{item.salePrice} + + + Taro.navigateTo({url: '/shop/goodsDetail/index?id=' + item.goodsId})}/> -
-
+ Taro.navigateTo({url: '/shop/goodsDetail/index?id=' + item.goodsId})}>购买 -
-
-
-
-
-
+
+
+ + + + ) })} -
-
+
+
) } diff --git a/src/shop/goodsDetail/index.tsx b/src/shop/goodsDetail/index.tsx index 3b716eb..37a6630 100644 --- a/src/shop/goodsDetail/index.tsx +++ b/src/shop/goodsDetail/index.tsx @@ -280,8 +280,10 @@ const GoodsDetail = () => { <> - - {goods.price} + + {goods.price} + 会员价 + ¥{goods.salePrice} 已售 {goods.sales} diff --git a/src/user/order/components/OrderList.tsx b/src/user/order/components/OrderList.tsx index 1ccbac2..b7d9015 100644 --- a/src/user/order/components/OrderList.tsx +++ b/src/user/order/components/OrderList.tsx @@ -284,7 +284,7 @@ function OrderList(props: OrderListProps) { await updateShopOrder({ ...orderToConfirmReceive, - deliveryStatus: 30, // 已收货 + deliveryStatus: 20, // 已收货 orderStatus: 1 // 已完成 }); @@ -748,10 +748,10 @@ function OrderList(props: OrderListProps) { {/* 待收货状态:显示查看物流和确认收货 */} {item.deliveryStatus === 20 && item.orderStatus !== 2 && ( - {/**/} +