wx.js 652 B

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