From f7456aafa2a0f35da26af8bbbf3b6a621a3c5b47 Mon Sep 17 00:00:00 2001
From: huliyong <2783385703@qq.com>
Date: Fri, 27 Jun 2025 19:03:55 +0800
Subject: [PATCH] =?UTF-8?q?feat(wallet):=20=E5=AE=9E=E7=8E=B0=E9=92=B1?=
=?UTF-8?q?=E5=8C=85=E6=B5=81=E6=B0=B4=E9=A1=B5=E9=9D=A2=E5=8A=9F=E8=83=BD?=
=?UTF-8?q?=E5=B9=B6=E4=BC=98=E5=8C=96=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
refactor(withdraw): 重构提现页面使用组件和动态数据
perf(recycle): 优化回收页面价格计算和单位显示逻辑
fix(App): 调整全局请求数量配置
---
App.vue | 5 +-
api/model/recyclingDestination.js | 7 +
pages/component/my.vue | 1768 ++++++++++++++++++-------------------
pages/component/recycle.vue | 89 +-
pages/subcomponent/wallet.vue | 778 ++++++++++------
pages/subcomponent/withdraw.vue | 64 +-
6 files changed, 1501 insertions(+), 1210 deletions(-)
diff --git a/App.vue b/App.vue
index 839c098..90b210a 100644
--- a/App.vue
+++ b/App.vue
@@ -24,7 +24,7 @@
globalDataLoaded: false,
loadingProgress: 0,
loadedCount: 0,
- totalRequests: 4 // 总共需要加载的请求数量
+ totalRequests: 3 // 总共需要加载的请求数量
}
},
globalData: {
@@ -61,9 +61,8 @@
this.getBannerList(),
this.getPricePreviewList(),
this.getConfigData(),
- this.getQrCode()
]
-
+ this.getQrCode()
await Promise.all(promises)
// 确保进度达到100%
diff --git a/api/model/recyclingDestination.js b/api/model/recyclingDestination.js
index e7d7615..53cd16f 100644
--- a/api/model/recyclingDestination.js
+++ b/api/model/recyclingDestination.js
@@ -18,6 +18,13 @@ const api = {
method: 'GET',
auth : false,
},
+ // 联系客服问题相关详情
+ withdraw: {
+ url: '/recycle-admin/applet/money/withdraw',
+ method: 'POST',
+ auth : true,
+ },
+
}
export default api
\ No newline at end of file
diff --git a/pages/component/my.vue b/pages/component/my.vue
index 0518940..ac19a7e 100644
--- a/pages/component/my.vue
+++ b/pages/component/my.vue
@@ -1,1011 +1,997 @@
-
-
-
-
-
-
-
-
-
- 暂未登录请先登录
-
-
-
-
-
-
- 暂未登录请先登录
-
-
-
-
-
-
-
- {{ userTypeText }}
-
-
- {{userInfo.nickName}}
- ID: {{userInfo.intentioCode}}
+
+
+
+
-
-
-
- 我的余额
-
- ¥
- {{userInfo.money}}
-
-
- 去提现
-
-
-
-
- 累计回收
-
- {{totalOrders}}
- 单
-
+
+
+
+
+ 暂未登录请先登录
+
+
-
-
-
-
-
- 分享赚佣金
-
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pages/component/recycle.vue b/pages/component/recycle.vue
index 67d4b78..b004398 100644
--- a/pages/component/recycle.vue
+++ b/pages/component/recycle.vue
@@ -73,7 +73,7 @@
¥
{{item.price}}
- /件
+ /{{ item.unit || '件' }}
@@ -111,7 +111,7 @@
- 已选 {{totalCount}} 件 预计回收可得
+ 已选 {{totalCount}} {{ totalUnitText }} 预计回收可得
@@ -142,7 +142,7 @@
{{item.name}}
品牌:{{item.brandName}}
{{item.service}}
- ¥{{item.price}}/件
+ ¥{{item.price}}/{{ item.unit || '件' }}
@@ -154,7 +154,7 @@