wlzboy
2025-09-25 4648a3bee638e9a99d2d80b66f8833b261a2db91
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import request from '@/utils/request'
 
// 微信登录
export function wechatLogin(data) {
  return request({
    url: '/wechat/login',
    method: 'post',
    data: data
  })
}
 
// 获取微信用户信息
export function getWechatUserInfo(openid) {
  return request({
    url: '/wechat/user/' + openid,
    method: 'get'
  })
}
 
// 绑定微信账号
export function bindWechat(data) {
  return request({
    url: '/wechat/bind',
    method: 'post',
    data: data
  })
}
 
// 解绑微信账号
export function unbindWechat(data) {
  return request({
    url: '/wechat/unbind',
    method: 'post',
    data: data
  })
}