Merge branch 'test' of https://e.coding.net/g-cphe0354/duanju/new_app into ymf
This commit is contained in:
@@ -10,4 +10,13 @@ export async function init() {
|
||||
uni.setStorageSync('moreSearch', res.data.value)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
export const commonType = (num) => {
|
||||
return http.request({
|
||||
url: `/common/type/${num}`,
|
||||
})
|
||||
}
|
||||
43
api/login/login.js
Normal file
43
api/login/login.js
Normal file
@@ -0,0 +1,43 @@
|
||||
import http from '@/http/http.js'
|
||||
|
||||
/**
|
||||
* 登录
|
||||
*/
|
||||
export const login = (data) => {
|
||||
return http.request({
|
||||
url: '/Login/registerCode',
|
||||
method: 'POST',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送验证码
|
||||
*/
|
||||
export const setSendMsg = (mobile,type) => {
|
||||
return http.request({
|
||||
url: '/Login/sendMsg/' + mobile + '/'+type
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册
|
||||
*/
|
||||
export const registerCode = (params) => {
|
||||
return http.request({
|
||||
url: '/Login/registerCode',
|
||||
params: params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改密码
|
||||
*/
|
||||
export const forgetPwd = (data) => {
|
||||
return http.request({
|
||||
url: '/Login/forgetPwd',
|
||||
method: 'POST',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
11
api/user/user.js
Normal file
11
api/user/user.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import http from '@/http/http.js'
|
||||
|
||||
/**
|
||||
* 获取用户信息
|
||||
*/
|
||||
export const selectUserById = (data) => {
|
||||
return http.request({
|
||||
url: '/user/selectUserById',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user