10 changed files with 969 additions and 750 deletions
-
46api/member.js
-
13api/setting/general.js
-
16api/setting/nextPwd.js
-
31api/setting/password.js
-
15pages/home/member.vue
-
25pages/setting/account.vue
-
21pages/setting/general.vue
-
45pages/setting/nextPwd.vue
-
46pages/setting/password.vue
-
7utils/http.js
@ -0,0 +1,46 @@ |
|||
import util from '../common/util.js' |
|||
|
|||
/*export const getUserInfo = (data = {}) => { |
|||
return util.request( |
|||
'/api/my/userInfo', |
|||
(res) => { |
|||
console.log('用户信息请求成功:', res); |
|||
}, |
|||
{data}, |
|||
|
|||
(err) => { |
|||
console.log('用户信息请求失败:', err); |
|||
} |
|||
); |
|||
}; |
|||
*/ |
|||
|
|||
import { http } from '../utils/http' |
|||
|
|||
|
|||
/** |
|||
* 用户信息获取接口 |
|||
* @param data |
|||
* @returns {Promise<unknown>} |
|||
*/ |
|||
export const getUserInfo = (data) => { |
|||
return http({ |
|||
method: 'POST', |
|||
url: '/api/my/userInfo', |
|||
data: |
|||
data |
|||
, |
|||
}) |
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
@ -0,0 +1,13 @@ |
|||
import { http } from '../utils/http' |
|||
|
|||
|
|||
|
|||
export const getSetting = (data) => { |
|||
return http({ |
|||
method: 'POST', |
|||
url: '/api/my/getSetting', |
|||
data: |
|||
data |
|||
, |
|||
}) |
|||
} |
|||
@ -0,0 +1,16 @@ |
|||
import {http} from '../../utils/http' |
|||
|
|||
/** |
|||
* 修改密码 |
|||
* @param data |
|||
* @returns {*} |
|||
*/ |
|||
export const updatePassword = (data) => { |
|||
return http({ |
|||
method: 'POST', |
|||
url: '/api/my/updatePassword', |
|||
data: |
|||
data |
|||
, |
|||
}) |
|||
} |
|||
@ -0,0 +1,31 @@ |
|||
import {http} from '../../utils/http' |
|||
|
|||
/** |
|||
* 验证码发送 |
|||
* @param data |
|||
* @returns {*} |
|||
*/ |
|||
export const sendEmail = (data) => { |
|||
return http({ |
|||
method: 'POST', |
|||
url: '/UserLogin/sendEmail', |
|||
data: |
|||
data |
|||
, |
|||
}) |
|||
} |
|||
|
|||
/** |
|||
* 验证码验证 |
|||
* @param data |
|||
* @returns {*} |
|||
*/ |
|||
export const validateCode = (data) => { |
|||
return http({ |
|||
method: 'POST', |
|||
url: '/api/my/validateCode', |
|||
data: |
|||
data |
|||
, |
|||
}) |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue