forked from gxwebsoft/mp-10550
refactor(user): 优化用户订单相关功能
- 移除 coupon API 中的 SERVER_API_URL,直接使用相对路径 - 优化 order 页面的搜索和重置逻辑- 更新 OrderList 组件,支持空订单时显示 Empty 组件- 调整 UserCard 中的用户统计数据加载逻辑 - 修改 UserOrder 组件中的订单状态文本和链接
This commit is contained in:
@@ -71,7 +71,7 @@ function UserCard() {
|
||||
|
||||
// 加载用户统计数据
|
||||
if (data.userId) {
|
||||
// loadUserStats(data.userId)
|
||||
loadUserStats(data.userId)
|
||||
}
|
||||
|
||||
// 获取openId
|
||||
|
||||
@@ -51,10 +51,10 @@ function UserOrder() {
|
||||
<View className={'item flex justify-center flex-col items-center'}
|
||||
onClick={() => navTo('/user/order/order?statusFilter=5', true)}>
|
||||
<Comment size={24} className={'text-gray-500 font-normal'}/>
|
||||
<Text className={'text-sm text-gray-600 py-1'}>待评价</Text>
|
||||
<Text className={'text-sm text-gray-600 py-1'}>已完成</Text>
|
||||
</View>
|
||||
<View className={'item flex justify-center flex-col items-center'}
|
||||
onClick={() => navTo('/user/order/order?statusFilter=7', true)}>
|
||||
onClick={() => navTo('/user/order/order?statusFilter=6', true)}>
|
||||
<Refund size={26} className={'font-normal text-gray-500'}/>
|
||||
<Text className={'text-sm text-gray-600 py-1'}>退货/售后</Text>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user