From 638abae69b3c8acd3025df9b21bcbedf19d034fd Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Tue, 12 Dec 2023 16:12:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E8=AE=BE=E7=BD=AE=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/user.js | 14 + pages.json | 18 ++ pages/user/user.vue | 6 + .../securitySettings/securitySettings.vue | 275 ++++++++++++++++++ .../pages/systemSettings/systemSettings.vue | 134 --------- 5 files changed, 313 insertions(+), 134 deletions(-) create mode 100644 pagesUser/pages/securitySettings/securitySettings.vue diff --git a/api/user.js b/api/user.js index e9addd9..513d9ad 100644 --- a/api/user.js +++ b/api/user.js @@ -13,6 +13,20 @@ export function oauthtoken(data) { data }); } + +/** + * 修改密码 + * @param {Object} data + */ +export function editPassword(data) { + + return request({ + url: `blade-system/user/update-password?oldPassword=${data.oldPassword}&newPassword=${data.newPassword}&newPassword1=${data.newPassword1}`, + method: "post", + data + }); +} + /** * 整托备货 * @param {Object} data diff --git a/pages.json b/pages.json index 243f3af..1696051 100644 --- a/pages.json +++ b/pages.json @@ -1243,6 +1243,24 @@ } } } + }, + { + "path": "pages/securitySettings/securitySettings", + "style": { + "navigationBarTitleText": "安全设置", + "enablePullDownRefresh": true, + "onReachBottomDistance": 1, + "navigationStyle": "custom", + "app-plus": { + "animationDuration": 300, + "animationType": "zoom-fade-out", + "pullToRefresh": { + "support": true, + "color": "#d3832a", //小圈圈的颜色 + "style": "circle" //小圈圈的样式 + } + } + } } ] }, diff --git a/pages/user/user.vue b/pages/user/user.vue index c30fbd1..863353d 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -165,6 +165,12 @@ url: '/pagesUser/pages/systemSettings/systemSettings' }) } + // 安全设置 + else if (item.type == 4) { + uni.navigateTo({ + url: '/pagesUser/pages/securitySettings/securitySettings' + }) + } // 关于我们 else if (item.type == 5) { uni.navigateTo({ diff --git a/pagesUser/pages/securitySettings/securitySettings.vue b/pagesUser/pages/securitySettings/securitySettings.vue new file mode 100644 index 0000000..60f3ce6 --- /dev/null +++ b/pagesUser/pages/securitySettings/securitySettings.vue @@ -0,0 +1,275 @@ + + + + + \ No newline at end of file diff --git a/pagesUser/pages/systemSettings/systemSettings.vue b/pagesUser/pages/systemSettings/systemSettings.vue index 0797535..83e4ec6 100644 --- a/pagesUser/pages/systemSettings/systemSettings.vue +++ b/pagesUser/pages/systemSettings/systemSettings.vue @@ -19,72 +19,9 @@ - - - - - - - 设置密码: - - - - - - - - - - 原密码: - - - - - - - - - - 新密码: - - - - - - - - - - 确认新密码: - - - - - - -