diff --git a/apis/modules/user.js b/apis/modules/user.js index 4952680..4c94db6 100644 --- a/apis/modules/user.js +++ b/apis/modules/user.js @@ -33,4 +33,16 @@ export const sendPhoneOrEmailCode = (data) => { return post('users/users/userAccount/sendPhoneOrEmailCode', data) } +export const changeAccount = account => { + return post(`users/applets/mine/changeAccount?account=${account}`) +} + +export const changePhoneNumber = phone => { + return post(`users/applets/mine/changePhoneNumber?phone=${phone}`) +} + +export const checkIfAnAccountExists = account => { + return post(`users/applets/mine/checkIfAnAccountExists?account=${account}`) +} + export const updateUserAvatars = `http://39.108.250.202:9000/users/users/userAccount/updateUserAvatars` \ No newline at end of file diff --git a/apis/request.js b/apis/request.js index 0502eb2..04948d3 100644 --- a/apis/request.js +++ b/apis/request.js @@ -14,7 +14,7 @@ const request = options => { const header = Object.assign({}, config.headers, { token: uni.getStorageSync('token') }) - const otherUrl = ['my', 'generateInvitationCode', 'weChatAppletCallback', 'userBinding', 'getUserRolesPermissionMenu'] + const otherUrl = ['generateInvitationCode', 'weChatAppletCallback', 'userBinding', 'getUserRolesPermissionMenu'] return new Promise((resolve, reject)=>{ const { url } = options uni.request({ diff --git a/manifest.json b/manifest.json index a17a7af..b17d47a 100644 --- a/manifest.json +++ b/manifest.json @@ -51,7 +51,9 @@ /* 小程序特有相关 */ "appid" : "wx77a8a2a23138998b", "setting" : { - "urlCheck" : false + "urlCheck" : false, + "es6" : true, + "minified" : true }, "usingComponents" : true }, diff --git a/pages/account/account.vue b/pages/account/account.vue index 88435a2..286ccc1 100644 --- a/pages/account/account.vue +++ b/pages/account/account.vue @@ -1,43 +1,42 @@