发布通告功能
This commit is contained in:
parent
2f712d125f
commit
a6df44f034
26
api/wxApi.js
Normal file
26
api/wxApi.js
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 微信登录授权获取code
|
||||||
|
export function getCodeUrl(userType) {
|
||||||
|
return request({
|
||||||
|
'url': '/wxApi/getCodeUrl?userType=' + userType,
|
||||||
|
'method': 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 微信登录授权获取code
|
||||||
|
export function getWebAccessTokenAndOpenid(code) {
|
||||||
|
return request({
|
||||||
|
'url': '/wxApi/getWebAccessTokenAndOpenid?code=' + code,
|
||||||
|
'method': 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 微信登录授权获取code
|
||||||
|
export function gzhLogin(data) {
|
||||||
|
return request({
|
||||||
|
'url': '/wxApi/gzhLogin',
|
||||||
|
'method': 'POST',
|
||||||
|
'data': data
|
||||||
|
})
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user