visitor.js 470 B

12345678910111213141516171819202122
  1. import request from '@/utils/request'
  2. import baseUrl from '@/utils/baseurl.js'
  3. export function assetList() {
  4. return request.get('/visitor/asset/list')
  5. }
  6. export function assetDetail(barCode) {
  7. return request.get(`/visitor/asset/detail/${barCode}`)
  8. }
  9. export function getImage(src) {
  10. if (!src) {
  11. return;
  12. }
  13. let real_src = src.split(",")[0]
  14. return baseUrl + real_src;
  15. }
  16. export function playerVideo(url) {
  17. return `${baseUrl}/asset/demoVideo/player?name=${url}`
  18. }