refactor(app): 重构用户中心和订单相关页面
-调整了 app.config.ts 中的页面路径和顺序 - 移除了 article 页面 - 重构了 cart、find、order 和 user 页面的布局和功能 - 优化了导航栏和订单状态的显示逻辑 - 统一了页面样式和图标使用
This commit is contained in:
@@ -133,7 +133,7 @@ const GoodsDetail = () => {
|
||||
});
|
||||
|
||||
// 加载商品规格
|
||||
listShopGoodsSpec({ goodsId: Number(goodsId) } as any)
|
||||
listShopGoodsSpec({goodsId: Number(goodsId)} as any)
|
||||
.then((data) => {
|
||||
setSpecs(data || []);
|
||||
})
|
||||
@@ -142,7 +142,7 @@ const GoodsDetail = () => {
|
||||
});
|
||||
|
||||
// 加载商品SKU
|
||||
listShopGoodsSku({ goodsId: Number(goodsId) } as any)
|
||||
listShopGoodsSku({goodsId: Number(goodsId)} as any)
|
||||
.then((data) => {
|
||||
setSkus(data || []);
|
||||
})
|
||||
@@ -217,7 +217,7 @@ const GoodsDetail = () => {
|
||||
top: "50px",
|
||||
right: "110px",
|
||||
}}
|
||||
onClick={() => navTo(`/pages/cart/cart`, true)}>
|
||||
onClick={() => Taro.switchTab({url: `/pages/cart/cart`})}>
|
||||
<Badge value={cartCount} top="-2" right="2">
|
||||
<div style={{display: 'flex', alignItems: 'center'}}>
|
||||
<Cart size={16}/>
|
||||
|
||||
Reference in New Issue
Block a user