From edb5d70e9a95495dd6dea9939bfbb44284198bcc Mon Sep 17 00:00:00 2001
From: zmj <1493694146@qq.com>
Date: Mon, 24 Jun 2024 15:03:11 +0800
Subject: [PATCH] add
---
api/address.js | 4 ++
pageQuota/balanceDetail/index.vue | 83 +++++++++++++++++++++++++++++++
pages.json | 9 +++-
pages/index/index.vue | 7 ++-
pages/login/test.vue | 6 ++-
pages/my/my.vue | 8 +--
6 files changed, 109 insertions(+), 8 deletions(-)
create mode 100644 pageQuota/balanceDetail/index.vue
diff --git a/api/address.js b/api/address.js
index 50022aa..7cd7b05 100644
--- a/api/address.js
+++ b/api/address.js
@@ -29,4 +29,8 @@ export const getMassageCode = (data) => {
export const setPayPassword = (data) => {
return request.post('/user/user/set_payPassword', data);
+}
+
+export const getFundList = (data) => {
+ return request.get('/user/user/fundList', data);
}
\ No newline at end of file
diff --git a/pageQuota/balanceDetail/index.vue b/pageQuota/balanceDetail/index.vue
new file mode 100644
index 0000000..47c6ca0
--- /dev/null
+++ b/pageQuota/balanceDetail/index.vue
@@ -0,0 +1,83 @@
+
+
+ {{mark}}
+
+
+
+
+
+ 余额宝自动转入
+ -204.00
+
+
+ 2024-10-21
+ 余额 204.00
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages.json b/pages.json
index c1ae891..2db36bc 100644
--- a/pages.json
+++ b/pages.json
@@ -234,9 +234,14 @@
"navigationBarTitleText": "会员报备",
"enablePullDownRefresh": true
}
+ },
+ {
+ "path": "balanceDetail/index",
+ "style": {
+ "navigationBarTitleText": "余额明细",
+ "enablePullDownRefresh": true
+ }
}
-
-
]
}
],
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 93ae8a3..749cef2 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -232,7 +232,8 @@
import {
productLogApi,
userInfoApi,
- getStoreInfo
+ getStoreInfo,
+ loginUpdateUserApi
} from "@/api/user.js";
import viewPopup from "@/components/viewPopup.vue"
import goodPopup from "@/components/goodPopup.vue"
@@ -630,6 +631,10 @@
userInfoApi().then(res => {
const user = res.data;
userStore.setUserInfo(user);
+ if (!user.openid) loginUpdateUserApi({
+ mobile: user.mobile
+ })
+
if (user.is_staff == 1) {
uni.reLaunch({
url: "/multipleShop/verificationOrder/index"
diff --git a/pages/login/test.vue b/pages/login/test.vue
index 32c2ed4..f66e9f3 100644
--- a/pages/login/test.vue
+++ b/pages/login/test.vue
@@ -39,7 +39,8 @@
userLoginApi,
userInfoApi,
getStoreInfo,
- getloginSms
+ getloginSms,
+ loginUpdateUserApi
} from "@/api/user.js";
import {
ref,
@@ -97,6 +98,9 @@
userInfoApi().then(res => {
const user = res.data;
userStore.setUserInfo(user);
+ if (!user.openid) loginUpdateUserApi({
+ mobile: user.mobile
+ })
uni.reLaunch({
url: '/pages/index/index'
}) // 存储token到本地存储中
diff --git a/pages/my/my.vue b/pages/my/my.vue
index 7109249..351e715 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -43,20 +43,20 @@
-
+
{{userInfo.now_money||"0.00"}}
余额
-
+
{{userInfo.purchase_funds||'0.00'}}
采购款
-
+
{{userInfo.return_money||'0.00'}}
返还金
-
+
{{userInfo.integral ||"0.00"}}
礼品券