diff --git a/api/member/auth.js b/api/member/auth.js
index 9f8a8824..4a33d850 100644
--- a/api/member/auth.js
+++ b/api/member/auth.js
@@ -5,6 +5,8 @@ export function sendSmsCode(mobile, scene) {
return request.post('app-api/member/auth/send-sms-code', {
mobile,
scene
+ }, {
+ noAuth: true // TODO 芋艿:后续要做调整
});
}
diff --git a/api/member/user.js b/api/member/user.js
index cf160503..0ee5251b 100644
--- a/api/member/user.js
+++ b/api/member/user.js
@@ -14,3 +14,15 @@ export function updateUser(data) {
export function updateUserMobile(data) {
return request.put('app-api/member/user/update-mobile', data);
}
+
+// 修改用户密码
+export function updateUserPassword(data) {
+ return request.put('app-api/member/user/update-password', data);
+}
+
+// 重置密码
+export function resetUserPassword(data) {
+ return request.put('app-api/member/user/reset-password', data, {
+ noAuth: true // TODO 芋艿:后续要做调整
+ });
+}
diff --git a/pages.json b/pages.json
index 2d31ffed..cf3f956c 100644
--- a/pages.json
+++ b/pages.json
@@ -130,12 +130,6 @@
"style": {
}
},
- {
- "path": "retrievePassword/index",
- "style": {
- "navigationBarTitleText": "忘记密码"
- }
- },
{
"path": "user_info/index",
"style": {
diff --git a/pages/retrieve_password/index.vue b/pages/retrieve_password/index.vue
index 21d89f70..19f3fae5 100644
--- a/pages/retrieve_password/index.vue
+++ b/pages/retrieve_password/index.vue
@@ -1,8 +1,8 @@
-
-
+
+
@@ -10,13 +10,13 @@
-
-
+
+
-
-
+
+
-
+
确认
-
- 立即登录
+
+ 立即登录
-
+
diff --git a/pages/users/retrievePassword/index.vue b/pages/users/retrievePassword/index.vue
deleted file mode 100644
index e9937e6a..00000000
--- a/pages/users/retrievePassword/index.vue
+++ /dev/null
@@ -1,161 +0,0 @@
-
-
-
-
-
找回密码
-
-
-
-
-
-
-
-
-
-
-
-
-
-
确认
-
- 立即登录
-
-
-
-
-
-
-
-
diff --git a/pages/users/user_phone/index.vue b/pages/users/user_phone/index.vue
index 7748e3f3..d811fd29 100644
--- a/pages/users/user_phone/index.vue
+++ b/pages/users/user_phone/index.vue
@@ -122,7 +122,7 @@
oldCode: this.captcha
}).then(res => {
return this.$util.Tips({
- title: res.message,
+ title: '手机修改成功',
icon: 'success'
}, {
tab: 5,
diff --git a/pages/users/user_pwd_edit/index.vue b/pages/users/user_pwd_edit/index.vue
index 68cafe2a..15fed304 100644
--- a/pages/users/user_pwd_edit/index.vue
+++ b/pages/users/user_pwd_edit/index.vue
@@ -2,16 +2,18 @@
-
-
-
-