登录,设置密码,修改密码,我的,首页,会议列表(接口逻辑已写,差加密文件的完善,代联调)
@@ -767,4 +767,75 @@ color: #2A2A2A;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
border-top: 10rpx solid #f6f8fc;
|
||||
}
|
||||
/*
|
||||
* author: yaoyanan
|
||||
* remark: 表单的基本样式
|
||||
*/
|
||||
|
||||
.form-box{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 10px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.form-item{
|
||||
display: flex;
|
||||
width: 300px;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 30px;
|
||||
}
|
||||
.form-item:not(:first-child){
|
||||
margin-top: 20px;
|
||||
}
|
||||
.form-item .text-label{
|
||||
width: 65px;
|
||||
flex-shrink: 0;
|
||||
text-align: right;
|
||||
font-size: 16px;
|
||||
color: #333;
|
||||
margin-right: 15px;
|
||||
}
|
||||
.form-item .text-value{
|
||||
flex: 1;
|
||||
}
|
||||
.form-item .text-value .flex-center{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.form-item .text-value input{
|
||||
font-size: 12px;
|
||||
color: #333;
|
||||
border: 0.5px solid #eee;
|
||||
height: 30px;
|
||||
padding-left: 10px;
|
||||
box-sizing: border-box;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.form-box .btn-area button{
|
||||
margin: auto;
|
||||
width: 100%;
|
||||
margin-top: 50px;
|
||||
}
|
||||
.form-item .captcha{
|
||||
width: 70px;
|
||||
margin-left: 10px;
|
||||
height: 30px;
|
||||
background-color: #07c160;
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius: 5px;
|
||||
padding: 5px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.form-item .count{
|
||||
background-color: #aaa;
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 224 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 824 B |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 156 KiB |
|
After Width: | Height: | Size: 354 B |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 327 B |
|
After Width: | Height: | Size: 434 B |
|
After Width: | Height: | Size: 4.0 KiB |
@@ -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);
|
||||
|
||||
@@ -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
|
||||