webgl_rxdz_krpanoImg.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template src="./webgl_rxdz_krpanoImg.html">
  2. </template>
  3. <script>
  4. import krpanoImg from "@/components/krpanoImg/index.vue";
  5. import commonPageMethod from '@/mixins/commonPageMethod.js';
  6. // import commonPageMethod from '@/common/commonPageMethod.js';
  7. export default {
  8. components: {
  9. krpanoImg
  10. },
  11. mixins: [commonPageMethod],
  12. /**
  13. * 页面的初始数据
  14. */
  15. data() {
  16. return {
  17. pvCurPageName: "panor",
  18. locusBehaviorName: "panor",
  19. pvCurPageParams: null,
  20. houseId: "",
  21. pvId: 'p_2cmina_23080402',
  22. canvas: null,
  23. navbar: {
  24. showCapsule: 1,
  25. title: 'panor',
  26. titleColor: '#000',
  27. navPadding: 0,
  28. navPaddingBg: 'transparent',
  29. navBarColor: 'transparent',
  30. navBackColor: 'transparent',
  31. haveCallback: true, // 如果是 true 会接手 navbarBackClk
  32. fromShare: false,
  33. fromProject: 0,
  34. shareToken: "",
  35. pageName: this.pvCurPageName,
  36. },
  37. isIOS: false,
  38. videoUrl:'',
  39. bgUrl:'',
  40. }
  41. },
  42. beforeDestroy() {
  43. console.warn("***beforeDestroy-webgl_rxdz_krpanoImg***");
  44. },
  45. mounted(options) {
  46. var that = this;
  47. console.warn("***webgl_rxdz_krpanoImg-options***", this.$route.query)
  48. this.isIOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
  49. this.videoUrl = this.$route.query.videoUrl || '';
  50. this.bgUrl = this.$route.query.bgUrl || 'https://elab-marketing-web.oss-accelerate.aliyuncs.com/replicate_images/1702457671501.png';
  51. },
  52. methods: {
  53. clearHandle() {
  54. this.clearEvent();
  55. },
  56. updateMuted(){
  57. this.muted = !this.muted;
  58. },
  59. iosPlay(){
  60. this.videoHandle();
  61. this.hasOneTouch = true;
  62. },
  63. }
  64. }
  65. </script>
  66. <style lang="scss" scoped>
  67. @import "./webgl_rxdz_krpanoImg.scss";
  68. /* @import "@/common/css/common.css"; */
  69. </style>