From a346cc0db38430b27c8c7c85d27247729b33cb50 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 20 Jun 2022 11:18:40 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/modules/user.js | 4 ++++ apis/request.js | 2 +- components/empty/empty.vue | 8 +++++++- order/addCourse/addCourse.vue | 6 ++++-- order/editCourse/editCourse.vue | 5 +++-- order/orderDetail/orderDetail.vue | 11 +++++----- order/ordered/ordered.vue | 2 +- order/orders/orders.vue | 2 +- pages.json | 9 +++++---- pages/addStaff/addStaff.vue | 2 +- pages/clientDetail/clientDetail.vue | 18 +++++++++-------- pages/clients/clients.vue | 4 ++-- pages/phone/phone.vue | 31 ++++++++++++++++------------- pages/qrcode/qrcode.vue | 6 +++++- pages/teams/teams.vue | 1 + styles/common.scss | 8 ++++---- 16 files changed, 72 insertions(+), 47 deletions(-) diff --git a/apis/modules/user.js b/apis/modules/user.js index 7af8fc2..bd40a38 100644 --- a/apis/modules/user.js +++ b/apis/modules/user.js @@ -45,4 +45,8 @@ export const checkIfAnAccountExists = account => { return post(`users/applets/mine/checkIfAnAccountExists?account=${account}`) } +export const checkIfThePhoneNumberExists = phone => { + return post(`users/applets/mine/checkIfThePhoneNumberExists?phone=${phone}`) +} + 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 04948d3..9f0f320 100644 --- a/apis/request.js +++ b/apis/request.js @@ -19,7 +19,7 @@ const request = options => { const { url } = options uni.request({ header, - url: (otherUrl.find(e => url.includes(e)) ? 'http://192.168.31.137:9000/' : config.baseURL) + url, + url: (otherUrl.find(e => url.includes(e)) ? 'http://192.168.31.151:9000/' : config.baseURL) + url, method: options.method || 'GET', // 请求类型,默认为GET data: options.data || {}, // 请求参数,默认空对象 success: ({ data }) => { diff --git a/components/empty/empty.vue b/components/empty/empty.vue index cf72351..42d2f06 100644 --- a/components/empty/empty.vue +++ b/components/empty/empty.vue @@ -1,12 +1,18 @@