From ca84e7d51ea27346f03390bafb64a13c56eaeb07 Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Wed, 8 Jan 2025 15:30:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=B7=AF=E5=BE=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/me/withdraw.js | 3 --- api/user/user.js | 13 ++++++++++++- pages.json | 5 +++++ pages/me/index.vue | 18 ++++++++++-------- pages/me/setting.vue | 6 +++--- pages/me/userInfo.vue | 35 ++++++++++++++++------------------- 6 files changed, 46 insertions(+), 34 deletions(-) diff --git a/api/me/withdraw.js b/api/me/withdraw.js index 1e18e87..425201a 100644 --- a/api/me/withdraw.js +++ b/api/me/withdraw.js @@ -1,8 +1,5 @@ import http from '@/http/http.js' - - - /** * 获取提现金额 */ diff --git a/api/user/user.js b/api/user/user.js index 0f89981..93846b2 100644 --- a/api/user/user.js +++ b/api/user/user.js @@ -8,4 +8,15 @@ export const selectUserById = (data) => { url: '/user/selectUserById', data: data }) -} \ No newline at end of file +} + +/** + * 修改用户信息 + */ +export const updateUsers = (data) => { + return http.request({ + url: '/user/updateUsers', + method: 'POST', + data: data, + }) +} diff --git a/pages.json b/pages.json index 51babc2..e15f514 100644 --- a/pages.json +++ b/pages.json @@ -95,6 +95,11 @@ "navigationBarTitleText": "注册", "navigationStyle": "custom" } + }, { + "path": "pages/login/bind", + "style": { + "navigationBarTitleText": "修改手机号" + } }, { "path": "pages/login/registerApp", "style": { diff --git a/pages/me/index.vue b/pages/me/index.vue index 808992b..6917c38 100644 --- a/pages/me/index.vue +++ b/pages/me/index.vue @@ -9,14 +9,14 @@ - + - + {{ userInfo.phone || '请登录' }} @@ -31,7 +31,7 @@ 我的追剧 {{ likeData.collectCount }} - + 我的红包 {{ amount || 0 }} @@ -82,11 +82,11 @@ 帮助中心 - + 检查更新 - + 用户协议 @@ -94,7 +94,7 @@ 关于我们 - + 隐私政策 @@ -106,7 +106,7 @@