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 @@