From 545f928f83ce3b74258c8596231e0dd91e0f1ab9 Mon Sep 17 00:00:00 2001
From: liangzai <2440983361@qq.com>
Date: Wed, 29 Apr 2026 11:39:05 +0800
Subject: [PATCH] f
---
src/components.d.ts | 2 +-
src/pages/promoteDetails.vue | 185 +++++++++++++++++---------------
src/pages/rewardsDetails.vue | 167 +++++++++++++++-------------
src/pages/subordinateDetail.vue | 107 ++++++++++++------
src/pages/subordinateList.vue | 109 ++++++++++++-------
src/pages/withdrawDetails.vue | 175 ++++++++++++++++--------------
src/utils/request.js | 19 ++++
7 files changed, 442 insertions(+), 322 deletions(-)
diff --git a/src/components.d.ts b/src/components.d.ts
index e580c1b..22adb8f 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -23,8 +23,8 @@ declare module 'vue' {
WdFormItem: typeof import('wot-design-uni/components/wd-form-item/wd-form-item.vue')['default']
WdIcon: typeof import('wot-design-uni/components/wd-icon/wd-icon.vue')['default']
WdInput: typeof import('wot-design-uni/components/wd-input/wd-input.vue')['default']
+ WdLoadmore: typeof import('wot-design-uni/components/wd-loadmore/wd-loadmore.vue')['default']
WdNavbar: typeof import('wot-design-uni/components/wd-navbar/wd-navbar.vue')['default']
- WdPagination: typeof import('wot-design-uni/components/wd-pagination/wd-pagination.vue')['default']
WdPicker: typeof import('wot-design-uni/components/wd-picker/wd-picker.vue')['default']
WdPopup: typeof import('wot-design-uni/components/wd-popup/wd-popup.vue')['default']
WdTabbar: typeof import('wot-design-uni/components/wd-tabbar/wd-tabbar.vue')['default']
diff --git a/src/pages/promoteDetails.vue b/src/pages/promoteDetails.vue
index 6b18c5e..a846608 100644
--- a/src/pages/promoteDetails.vue
+++ b/src/pages/promoteDetails.vue
@@ -1,43 +1,49 @@
-
-
-
-
+
+
-
-
- {{ item.create_time || '-' }}
-
- {{ getAmountPrefix(item) }}{{ getDisplayAmount(item).toFixed(2) }}
-
-
-
-
-
- {{ item.product_name }}
-
-
- {{ getStatusText(item) }}
-
-
-
- 原始 {{ toNumber(item.amount).toFixed(2) }},已退 {{ toNumber(item.refunded_amount).toFixed(2) }}
-
+
+
+ {{ item.create_time || '-' }}
+
+ {{ getAmountPrefix(item) }}{{ getDisplayAmount(item).toFixed(2) }}
+
+
+
+
+ {{ item.product_name }}
+
+
+ {{ getStatusText(item) }}
+
+
+
+ 原始 {{ toNumber(item.amount).toFixed(2) }},已退 {{ toNumber(item.refunded_amount).toFixed(2) }}
+
+
-
-
-
-
+
+ 加载中...
+
+
+ 暂无记录
+
+
+
+
+
{
"layout": "page",
diff --git a/src/pages/rewardsDetails.vue b/src/pages/rewardsDetails.vue
index ffcfae5..eabe965 100644
--- a/src/pages/rewardsDetails.vue
+++ b/src/pages/rewardsDetails.vue
@@ -1,34 +1,40 @@
-
-
-
-
+
+
-
-
- {{ item.create_time || '-' }}
- +{{ item.amount.toFixed(2) }}
-
-
-
-
- {{ typeToChinese(item.type) }}
-
-
+
+
+ {{ item.create_time || '-' }}
+ +{{ item.amount.toFixed(2) }}
+
+
+
+ {{ typeToChinese(item.type) }}
+
+
+
-
-
-
-
+
+ 加载中...
+
+
+ 暂无记录
+
+
+
+
+
{
"layout": "page",
diff --git a/src/pages/subordinateDetail.vue b/src/pages/subordinateDetail.vue
index fadd410..5feaf9a 100644
--- a/src/pages/subordinateDetail.vue
+++ b/src/pages/subordinateDetail.vue
@@ -1,16 +1,22 @@
-
+
@@ -221,15 +271,15 @@ onMounted(() => {
-
+
贡献记录
-
-
+
+
暂无贡献记录
-
+
@@ -252,24 +302,15 @@ onMounted(() => {
加载中...
-
-
-
+
-
+
diff --git a/src/pages/subordinateList.vue b/src/pages/subordinateList.vue
index 37bbd27..c8091a2 100644
--- a/src/pages/subordinateList.vue
+++ b/src/pages/subordinateList.vue
@@ -1,14 +1,17 @@
-
+
@@ -101,15 +147,15 @@ onMounted(() => {
下级总数
- {{ statistics.totalSubordinates }}
+ {{ data.total }}
-
-
+
+
@@ -169,33 +215,20 @@ onMounted(() => {
加载中...
-
+
暂无下级代理
-
-
-
-
+
+
+
{
"layout": "page",
"title": "提现记录",
diff --git a/src/utils/request.js b/src/utils/request.js
index 3d380bb..1fdce9c 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -99,6 +99,25 @@ function request(options) {
success: (res) => {
// 响应拦截器逻辑
if (res.statusCode === 200) {
+ // 检测会员过期响应头,自动刷新代理信息
+ const header = res.header || {}
+ if (header['X-Membership-Expired'] === 'true' || header['x-membership-expired'] === 'true') {
+ const { getAgentInfo } = require('@/apis/agent.js')
+ getAgentInfo().then(res => {
+ if (res.code === 200 && res.data) {
+ uni.setStorageSync('agentInfo', {
+ level: res.data.level,
+ isAgent: res.data.is_agent,
+ status: res.data.status,
+ agentID: res.data.agent_id,
+ mobile: res.data.mobile,
+ isRealName: res.data.is_real_name,
+ expiryTime: res.data.expiry_time
+ })
+ }
+ }).catch(() => {})
+ }
+
if (res.data?.code === USER_DISABLED_CODE || res.data?.code === USER_CANCELLED_CODE) {
forceLogoutToLogin()
reject(res.data)