index.js 572 B

123456789101112131415161718192021222324252627
  1. import https from '@/plugins/luch-request_0.0.7/request'
  2. /** *
  3. * 静默获取用户信息 mini
  4. */
  5. export const postWxCode = data => {
  6. return https.get('/auth/mini-info', data)
  7. }
  8. /** *
  9. * 点击授权获取字典
  10. */
  11. export const getDictionaries = data => {
  12. return https.get('/console/init', data)
  13. }
  14. /** *
  15. * 点击授权获取用户信息 mini
  16. */
  17. export const getWxInfo = data => {
  18. return https.post('/admin/mini-full-info', data)
  19. }
  20. /** *
  21. * 点击授权获取手机号 mini
  22. */
  23. export const getWxPhone = data => {
  24. return https.post('/admin/mini-mobile', data)
  25. }