From 253a87531bf932cf3e54e51a05358fa58c25244b Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 15 Jun 2022 15:30:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=8E=8B=E7=BC=A9=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/modules/user.js | 12 +++++++++ apis/request.js | 2 +- manifest.json | 4 ++- pages/account/account.vue | 37 ++++++++++++++-------------- pages/clientDetail/clientDetail.vue | 1 + pages/editCourse/editCourse.vue | 1 + pages/orderDetail/orderDetail.vue | 1 + pages/orders/orders.vue | 1 - pages/person/person.vue | 5 ++-- pages/phone/phone.vue | 18 +++----------- static/image/avatar.png | Bin 1740 -> 1459 bytes static/image/index/index1.png | Bin 44947 -> 39359 bytes static/image/index/index10.png | Bin 247 -> 230 bytes static/image/index/index2.png | Bin 85765 -> 73554 bytes static/image/index/index3.png | Bin 1178 -> 1068 bytes static/image/index/index4.png | Bin 975 -> 840 bytes static/image/index/index5.png | Bin 327 -> 319 bytes static/image/index/index6.png | Bin 842 -> 727 bytes static/image/index/index7.png | Bin 335 -> 295 bytes static/image/index/index8.png | Bin 1080 -> 844 bytes static/image/index/index9.png | Bin 784 -> 672 bytes static/image/login1.png | Bin 13967 -> 11269 bytes static/image/login2.png | Bin 5900 -> 5095 bytes static/image/logo.png | Bin 5625 -> 4819 bytes static/image/none.png | Bin 8848 -> 7894 bytes static/image/person-bg.png | Bin 42340 -> 30195 bytes static/image/person1.png | Bin 658 -> 572 bytes static/image/person2.png | Bin 754 -> 654 bytes static/image/person3.png | Bin 643 -> 557 bytes static/image/person4.png | Bin 1452 -> 724 bytes static/image/phone.png | Bin 332 -> 313 bytes static/image/qrcode.png | Bin 346 -> 325 bytes static/image/tab1-1.png | Bin 444 -> 400 bytes static/image/tab1.png | Bin 441 -> 378 bytes static/image/tab2-1.png | Bin 645 -> 556 bytes static/image/tab2.png | Bin 612 -> 525 bytes static/image/tab3-1.png | Bin 487 -> 423 bytes static/image/tab3.png | Bin 467 -> 409 bytes static/image/wechat.png | Bin 597 -> 552 bytes 39 files changed, 43 insertions(+), 39 deletions(-) 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 @@