weixin.js 944 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import request from '@/apis/utils/requestWhite'
  2. //根据code换取openid
  3. export function getDataByCode(code) {
  4. return request({
  5. url: '/wechat/findUserInfo/' + code,
  6. data: {},
  7. method: 'get',
  8. })
  9. }
  10. //根据code换取openid
  11. export function findAppletUserInfo(code) {
  12. return request({
  13. url: '/wechat/findAppletUserInfo/' + code,
  14. data: {},
  15. method: 'get',
  16. })
  17. }
  18. export function findUserPhoneNumber(code) {
  19. return request({
  20. url: '/wechat/findUserPhoneNumber/' + code,
  21. data: {},
  22. method: 'get',
  23. })
  24. }
  25. export function findByOpenId(data) {
  26. return request({
  27. url: '/mobile/user/findByOpenId',
  28. data: data,
  29. method: 'get',
  30. })
  31. }
  32. export function findValueByName(data) {
  33. return request({
  34. url: '/mobile/dictionary/findValueByName',
  35. data: data,
  36. method: 'post',
  37. })
  38. }
  39. export function findListByCatalogName(data) {
  40. return request({
  41. url: '/mobile/dictionary/findListByCatalogName',
  42. data: data,
  43. method: 'post',
  44. })
  45. }