index.js 524 B

12345678910111213141516171819202122
  1. import http from '@/utils/http';
  2. import { stringify } from 'qs';
  3. export function getWechatRedirectUrl () {
  4. return http({
  5. url: '/wechat/redirect',
  6. method: 'get',
  7. headers: {
  8. 'Content-Type': 'application/json;charset=UTF-8'
  9. }
  10. })
  11. }
  12. export function getWechatOpenId (parameter) {
  13. return http({
  14. url: '/wechat/isOauth?' + stringify(parameter),
  15. method: 'get',
  16. headers: {
  17. 'Content-Type': 'application/json;charset=UTF-8'
  18. }
  19. })
  20. }