wx.js 588 B

12345678910111213141516171819202122232425262728293031323334
  1. import request from '@/utils/request'
  2. import store from '@/store';
  3. //微信配置
  4. export function wechatConfig(data) {
  5. return request({
  6. url: '/api/wechat/config',
  7. method: 'get',
  8. data
  9. });
  10. }
  11. // 微信code地址
  12. export function wechatAuth(data) {
  13. return request({
  14. url: '/api/wechat/auth',
  15. method: 'get',
  16. data
  17. });
  18. }
  19. //小程序code地址
  20. export function wechatMpAuth(data) {
  21. return request({
  22. url: '/api/wechat/mp_auth',
  23. method: 'post',
  24. data
  25. });
  26. }
  27. // 微信分享信息
  28. export function share(data) {
  29. return request({
  30. url: '/api/share',
  31. method: 'get',
  32. data
  33. });
  34. }