jhwxapp/miniprogram/api/login.js

51 lines
872 B
JavaScript
Raw Normal View History

2024-03-17 16:19:31 +08:00
import {request} from '../utils/request'
// 获取验证码
export function getCodeImg() {
return request({
url: '/wechat/captchaImage',
method: 'get',
})
}
// 登录方法
export function login(data) {
return request({
url: '/wxApi/login',
method: 'post',
data: data,
})
}
// 登录方法
export function updatePwd(data) {
return request({
url: '/wxApi/updatePwd',
method: 'post',
data: data,
})
}
// 用户退出方法
export function loginOut() {
return request({
2024-04-08 00:58:58 +08:00
'url': '/wechat/loginOut',
2024-03-17 16:19:31 +08:00
'method': 'get'
})
}
2024-04-14 21:28:11 +08:00
// 查询公众号消息授权
export function findOpenUserMsgId(openId) {
return request({
'url': '/wechat/findOpenUserMsgId/'+openId,
'method': 'get'
})
}
// 删除公众号消息授权
export function delOpenUserMsgId(openId) {
return request({
'url': '/wechat/delOpenUserMsgId/'+openId,
'method': 'get'
})
}