unknown
1 year ago
9 changed files with 91 additions and 23 deletions
-
13config/api.js
-
20config/request.js
-
8config/site.config.js
-
2manifest.json
-
19pages/tabbar/index/index.vue
-
2pages/userCenter/login/login.vue
-
19pages/userCenter/login/loginByPhone.vue
-
9site.config.js
-
22store/modules/user.js
@ -1,10 +1,17 @@ |
|||||
|
|
||||
|
|
||||
const http = uni.$u.http |
|
||||
|
var http = uni.$u.http |
||||
|
|
||||
// 隐私政策
|
// 隐私政策
|
||||
export const getAgreement = (params, config = {}) => http.post('/util/manage/getAgreement.do', params, config) |
export const getAgreement = (params, config = {}) => http.post('/util/manage/getAgreement.do', params, config) |
||||
// 验证码登录
|
// 验证码登录
|
||||
export const loginSMS = (data) => http.post('/account/manage/login.do', data) |
|
||||
|
export const loginSMS = (data) => http.post('member/auth/sms-login', data) |
||||
// 登录发验证码
|
// 登录发验证码
|
||||
export const getLoginCode = (data) => http.post('/util/manage/getLoginRegistCode.do', data) |
|
||||
|
export const getLoginCode = (data) => http.post('member/auth/send-sms-code', data) |
||||
|
// 获取个人信息
|
||||
|
export const getUserInfo = (data) => http.post('member/user/get', {header: {'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'}}) |
||||
|
// 刷新token
|
||||
|
export const refreshToken = (data) => http.post('member/auth/refresh-token', data) |
||||
|
|
||||
|
|
||||
|
|
@ -0,0 +1,8 @@ |
|||||
|
const VUE_APP_PLATFORM = process.env.VUE_APP_PLATFORM; |
||||
|
// localIp = false
|
||||
|
module.exports = { |
||||
|
H5_API: VUE_APP_PLATFORM === 'h5' ? '/api' : '',//h5代理
|
||||
|
WX_API: VUE_APP_PLATFORM === 'h5' ? '' : 'http://192.168.1.26:48080/',//非代理地址
|
||||
|
TEMP_HOST: VUE_APP_PLATFORM === 'h5' ? '' : 'http://192.168.1.26:48080/', |
||||
|
|
||||
|
}; |
@ -1,7 +1,8 @@ |
|||||
const VUE_APP_PLATFORM = process.env.VUE_APP_PLATFORM; |
const VUE_APP_PLATFORM = process.env.VUE_APP_PLATFORM; |
||||
|
// localIp = false
|
||||
module.exports = { |
module.exports = { |
||||
APP_API: VUE_APP_PLATFORM === 'h5' ? '/api' : 'http://121.41.97.244:8090', |
|
||||
APP_HOST: VUE_APP_PLATFORM === 'h5' ? '' : 'https://www.jaxc.cn/api', |
|
||||
TEMP_HOST: VUE_APP_PLATFORM === 'h5' ? '' : 'http://121.41.97.244:8090 https://www.jaxc.cn/api', |
|
||||
//是否启用人脸识别
|
|
||||
|
H5_API: VUE_APP_PLATFORM === 'h5' ? '/api' : '',//h5代理
|
||||
|
WX_HOST: VUE_APP_PLATFORM === 'h5' ? '' : 'http://192.168.1.26:48080/',//非代理地址
|
||||
|
TEMP_HOST: VUE_APP_PLATFORM === 'h5' ? '' : 'http://192.168.1.26:48080/', |
||||
|
|
||||
}; |
}; |
Write
Preview
Loading…
Cancel
Save
Reference in new issue