wx.js 352 B

123456789101112131415161718192021
  1. import request from '@/common/request.js'
  2. /**
  3. * 调用微信登录
  4. * @param id
  5. * @returns {*}
  6. */
  7. export function wxLogin(data) {
  8. return request.post('/api/common/wx/login', data)
  9. }
  10. /**
  11. * 获取微信登录的URL
  12. * @param id
  13. * @returns {*}
  14. */
  15. export function apiGetWechatUrl(data) {
  16. return request.post('/api/common/wx/get-url', data)
  17. }