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 @@ - - - - - - - 设置密码: - - - - - - - - - - 原密码: - - - - - - - - - - 新密码: - - - - - - - - - - 确认新密码: - - - - - - -