登录,设置密码,修改密码,我的,首页,会议列表(接口逻辑已写,差加密文件的完善,代联调)
This commit is contained in:
@@ -2,7 +2,7 @@ import http from './http.js'
|
||||
|
||||
// let baseUrl = 'https://share.hzwlsoft.com'
|
||||
// let baseUrl = 'http://localhost:8080'
|
||||
let baseUrl = 'http://10.0.1.63:8080'
|
||||
let baseUrl = 'http://192.168.18.133:8080'
|
||||
// let baseUrl = 'http://192.168.1.110:8080'
|
||||
/* 配置路径 */
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ let headerDefault1 = {
|
||||
'content-type': 'application/x-www-form-urlencoded'
|
||||
}
|
||||
let TokenKey = 'X-Access-Token'
|
||||
let baseUrl = 'http://10.0.1.63:8080'
|
||||
let baseUrl = 'http://192.168.18.133:8080'
|
||||
// let baseUrl = 'http://localhost:8080'
|
||||
const http = (method, url, data, header= headerDefault) => {
|
||||
let Authorization = wx.getStorageSync(TokenKey) ? wx.getStorageSync(TokenKey) : '';
|
||||
@@ -23,6 +23,7 @@ const http = (method, url, data, header= headerDefault) => {
|
||||
data: data,
|
||||
success: res => {
|
||||
console.log(res)
|
||||
wx.hideLoading();
|
||||
if (res.statusCode === 200) {
|
||||
// 接口请求错误的时候提示
|
||||
if((res.data.code !== 200 && res.data.code !== 0) && (res.data.message)) {
|
||||
@@ -35,7 +36,6 @@ const http = (method, url, data, header= headerDefault) => {
|
||||
}
|
||||
// 200: 服务端业务处理正常结束
|
||||
resolve(res.data)
|
||||
wx.hideLoading();
|
||||
} else {
|
||||
console.error(res.data);
|
||||
reject(res.data);
|
||||
|
||||
+26
-10
@@ -1,17 +1,33 @@
|
||||
import http from './http.js'
|
||||
let URL_CONFIG = '/api/'
|
||||
let URL_CONFIG = '/jero-boot/'
|
||||
const UserApi = {
|
||||
// 登录
|
||||
login: (params) => http.post(`${URL_CONFIG}sys/login`, params),
|
||||
// // 登录
|
||||
// login: (params) => http.post(`${URL_CONFIG}sys/login`, params),
|
||||
// // 获得公钥
|
||||
// getRSAPublicKey: (params) => http.get(`${URL_CONFIG}sys/getRSAPublicKey`, params),
|
||||
// // 图片的验证码
|
||||
// getImgCode: (params, urlParam) => http.get(`${URL_CONFIG}sys/randomImage/${urlParam}`, params),
|
||||
// // 退出
|
||||
// logout: (params) => http.post(`${URL_CONFIG}sys/logout`, params),
|
||||
// //修改密码
|
||||
// upDatePass:(params) => http.put(`${URL_CONFIG}sys/user/updatePassword`, params),
|
||||
/**
|
||||
* author: yaoyanan
|
||||
* **/
|
||||
// 获得公钥
|
||||
getRSAPublicKey: (params) => http.get(`${URL_CONFIG}sys/getRSAPublicKey`, params),
|
||||
// 图片的验证码
|
||||
getImgCode: (params, urlParam) => http.get(`${URL_CONFIG}sys/randomImage/${urlParam}`, params),
|
||||
// 退出
|
||||
logout: (params) => http.post(`${URL_CONFIG}sys/logout`, params),
|
||||
//修改密码
|
||||
upDatePass:(params) => http.put(`${URL_CONFIG}sys/user/updatePassword`, params),
|
||||
|
||||
// 发送短信验证码
|
||||
sendCode: (params) => http.get(`${URL_CONFIG}company/sendVerificationCode`, params),
|
||||
// 短信登录
|
||||
codeLogin: (params) => http.post(`${URL_CONFIG}company/smsLogin`, params),
|
||||
// 设置密码
|
||||
setPassword: (params) => http.post(`${URL_CONFIG}company/changePassword`, params),
|
||||
// 短信验证码修改密码
|
||||
updatePassword: (params) => http.post(`${URL_CONFIG}company/verificationChangePassword`, params),
|
||||
// 个人信息
|
||||
mineInfo: (params) => http.get(`${URL_CONFIG}company/payContactsManagement/queryByIdMeeting`, params),
|
||||
// 编辑个人信息提交
|
||||
editMineInfo: (params) => http.get(`${URL_CONFIG}company/payContactsManagement/companyEdit`, params),
|
||||
}
|
||||
|
||||
export default UserApi
|
||||
Reference in New Issue
Block a user