├── php-api/ # 改造后的PHP接口层 ├── java-ad-service/ # 若依框架微服务(广告+VIP+分账) ├── uniapp-reader/ # UniApp前端项目 │ ├── pages/ # 各端页面 │ └──
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import request from '@/utils/request'
  2. // 登录方法 - 修复版
  3. export function login(username, password, code, uuid) {
  4. const data = {
  5. username,
  6. password,
  7. code,
  8. uuid
  9. }
  10. return request({
  11. url: '/login',
  12. method: 'post',
  13. data: data,
  14. headers: {
  15. isToken: false
  16. }
  17. })
  18. }
  19. // 获取验证码
  20. export function getCodeImg() {
  21. return request({
  22. url: '/captchaImage',
  23. method: 'get',
  24. headers: {
  25. isToken: false
  26. },
  27. timeout: 20000
  28. })
  29. }
  30. // 注册方法
  31. export function register(data) {
  32. return request({
  33. url: '/register',
  34. method: 'post',
  35. data: data,
  36. headers: {
  37. isToken: false
  38. }
  39. })
  40. }
  41. // 获取用户信息
  42. export function getInfo() {
  43. return request({
  44. url: '/getInfo',
  45. method: 'get'
  46. })
  47. }
  48. // 退出登录
  49. export function logout() {
  50. return request({
  51. url: '/logout',
  52. method: 'post'
  53. })
  54. }