接口环境设置

This commit is contained in:
仲么了
2023-03-16 15:26:25 +08:00
parent 7e9cfadb23
commit c5ed54924b
20 changed files with 6480 additions and 37 deletions

30
common/api/user.js Normal file
View File

@@ -0,0 +1,30 @@
import request from '../js/request'
export function apiGetYms (params) {
return request({
url: '/shiningCloud/user/authCode',
data: {
phone: params.phone,
devCode: uni.getStorageSync('cidAES'),
type: 0
},
method: 'POST'
})
}
/**
*
* @param {*} type 0:ysm 1:pwd
* @returns
*/
export function apiLogin (params) {
return request({
url: '/shiningCloud/user/login',
data: {
phone: params.phone,
devCode: uni.getStorageSync('cidAES'),
key: params.key.trim(),
type: params.type
},
method: 'POST'
})
}