初始化
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
|
||||
/*个人中心接口*/
|
||||
import { request } from "../index.js";
|
||||
import com from '../../common/common.js'
|
||||
/**
|
||||
* 微信一键登录接口
|
||||
*/
|
||||
export function login(code){
|
||||
return request({
|
||||
method: "get",
|
||||
url: "/ntcp/wx/getSession",
|
||||
data: {
|
||||
code
|
||||
},
|
||||
})
|
||||
}
|
||||
export function postLogin(code){
|
||||
return request({
|
||||
method: "post",
|
||||
url: "/ntcp/wx/wxLogin",
|
||||
data: {
|
||||
code,
|
||||
appId:'wx42775ea6c049670e'
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
//
|
||||
// 上传用户头像
|
||||
export function postAvataro(avatar){
|
||||
return request({
|
||||
method: "get",
|
||||
url: "/ntcp/volunteer/updateAvatar",
|
||||
data: {
|
||||
avatar
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 获取用户信息 ntcp/volunteer/selfInfo
|
||||
export function getUser(){
|
||||
return request({
|
||||
method: "get",
|
||||
url: "/ntcp/volunteer/selfInfo"
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user