index.js 638 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import Vue from 'vue'
  2. import browser from '@/utils/browser'
  3. import {
  4. $showShare,
  5. $hideShare,
  6. $showTips,
  7. $hideTips
  8. } from '@/components/popupLayout'
  9. import {$showHotspot,$hideHotspot } from '@/components/hotspot/index.js'
  10. Vue.prototype.$bus = new Vue()
  11. Vue.mixin({
  12. data() {
  13. return {
  14. isMobile: browser.mobile
  15. }
  16. },
  17. methods: {
  18. $showShare,
  19. $hideShare,
  20. $showHotspot,
  21. $hideHotspot,
  22. $showTips,
  23. $hideTips,
  24. g_dealUrl(src){
  25. return window.manage.dealURL(src)
  26. }
  27. // $showLoading,
  28. // $showBroadcast,
  29. // $hideBroadcast
  30. }
  31. })