common.js 424 B

12345678910111213141516171819202122232425
  1. import request from '@/utils/request'
  2. export function sendSmsCode(data) {
  3. return request({
  4. url: '/common/sendSmsCode',
  5. method: 'post',
  6. data: data
  7. })
  8. }
  9. export function getTask(taskId) {
  10. return request({
  11. url: '/common/getTask/'+taskId,
  12. method: 'get'
  13. })
  14. }
  15. export function getTmpSecretKey(query) {
  16. return request({
  17. url: '/common/getTmpSecretKey',
  18. method: 'get',
  19. params:query
  20. })
  21. }