This commit is contained in:
2025-01-07 11:03:02 +08:00
13 changed files with 1188 additions and 1047 deletions

View File

@@ -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
View 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
View File

@@ -0,0 +1,11 @@
import http from '@/http/http.js'
/**
* 获取用户信息
*/
export const selectUserById = (data) => {
return http.request({
url: '/user/selectUserById',
data: data
})
}