我的页面
This commit is contained in:
@@ -10,7 +10,7 @@ let baseUrl = 'http://10.0.1.9:8080'
|
||||
// let baseUrl = 'http://localhost:8080'
|
||||
const http = (method, url, data, header= headerDefault) => {
|
||||
let Authorization = wx.getStorageSync(TokenKey) ? wx.getStorageSync(TokenKey) : '';
|
||||
header[TokenKey] = Authorization == '' ? '' : JSON.parse(Authorization)
|
||||
header[TokenKey] = Authorization == '' ? '' : Authorization
|
||||
return new Promise((resolve, reject) => {
|
||||
wx.showLoading({
|
||||
title: '加载中...',
|
||||
|
||||
@@ -22,12 +22,17 @@ const UserApi = {
|
||||
codeLogin: (params) => http.post(`${URL_CONFIG}company/smsLogin`, params),
|
||||
// 设置密码
|
||||
setPassword: (params) => http.post(`${URL_CONFIG}company/changePassword`, params),
|
||||
// 退出
|
||||
logout: (params) => http.post(`${URL_CONFIG}sys/logout`, 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),
|
||||
editMineInfo: (params) => http.post(`${URL_CONFIG}company/payContactsManagement/companyEdit`, params),
|
||||
// 我的资料
|
||||
dataList: (params) => http.get(`${URL_CONFIG}project/payWorkingGroupDistributionRecord/listForFile`, params),
|
||||
|
||||
// 首页接口
|
||||
// 来款项目分页
|
||||
projectList: (params) => http.get(`${URL_CONFIG}project/payCommonProject/queryCompanyPageList`, params),
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,4 @@
|
||||
|
||||
// import JSEncrypt from '../jsencrypt/jsencrypt'
|
||||
// import JSEncrypt from '../jsencrypt/jsencryptInit'
|
||||
import JSEncrypt from '../jsencrypt/jsencryptInit'
|
||||
export function encrypt(publicKey, message) {
|
||||
const encrypt = new JSEncrypt()
|
||||
|
||||
Reference in New Issue
Block a user