已对接登录和下单选择商品

This commit is contained in:
2022-05-09 10:03:33 +08:00
parent 883c24b7be
commit d03105a7d0
14 changed files with 227 additions and 125 deletions
+2 -2
View File
@@ -4,9 +4,9 @@ import { useRequest } from "@/use/useHttp"
* 登录
* @returns
*/
export const Login = () => {
export const LoginApi = () => {
return useRequest({
url: `/v1/mall/login`,
method: "post",
})
}
}
+31
View File
@@ -0,0 +1,31 @@
import { useRequest } from "@/use/useHttp"
/**
* 解密用户微信信息
*/
export const GetWxUserInfoApi = () => {
return useRequest({
url: `/v1/mall/user/decrypt`,
method: "post",
})
}
/**
* 获取后台返回的用户信息
*/
export const GetSelfUserInfoApi = () => {
return useRequest({
url: `/v1/mall/user/info`,
method: "get",
})
}
/**
* 获取后台返回的用户手机号码信息
*/
export const GetPhoneNumberApi = () => {
return useRequest({
url: `/v1/mall/user/phoneNumber`,
method: "post",
})
}