123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <template src="./webgl_rxdz_roam.html">
- </template>
- <script>
-
- import {getStorage} from '@/utils/localStorage';
- var requestId = "";
- const util = require('@/utils/util.js').default;
- import viewMask from'@/components/newBottomCom/viewMask/viewMask.vue';
- import commonPageMethod from '@/mixins/commonPageMethod.js';
- // import commonPageMethod from '@/common/commonPageMethod.js';
- // const app = getApp(); //获取应用实例
- export default {
- components:{viewMask},
- mixins:[commonPageMethod],
- /**
- * 页面的初始数据
- */
- data() {
- return {
- pvCurPageName: "room_show",
- locusBehaviorName: "房间展示",
- pvCurPageParams: null,
- houseId: "",
- pvId: 'p_2cmina_23080402',
- canvas:null,
- navbar: {
- showCapsule: 1,
- title: '客厅',
- titleColor: '#000',
- navPadding: 0,
- navPaddingBg:'transparent',
- navBarColor: 'transparent',
- navBackColor: 'transparent',
- haveCallback: true, // 如果是 true 会接手 navbarBackClk
- fromShare: false,
- fromProject: 0,
- shareToken: "",
- pageName: this.pvCurPageName,
- },
- id:'',// 户型编号
- canvasHeight:'',
- }
- },
-
- mounted(options) {
- var that = this;
- // alert("JavaScript 堆大小限制: "+performance.memory.jsHeapSizeLimit
- // +"\n已使用的 JavaScript 堆大小: "+performance.memory.usedJSHeapSize
- // +"\nJavaScript 堆的总大小: "+performance.memory.totalJSHeapSize);
- console.warn("***webgl_rxdz_roam-options***",this.$route.query)
- let screenWidth = window.screen.width;
- let screenHeight = window.screen.height;
- if(window.innerWidth && window.screen.width){
- screenWidth = Math.min(window.innerWidth,window.screen.width)
- }
- if(window.innerHeight && window.screen.height){
- screenHeight = Math.min(window.innerHeight,window.screen.height)
- }
- let unit = screenWidth / 750;//单位rpm 对应 px 的值
- this.canvasHeight = screenHeight - (600 * unit) + (40 * unit);
- },
- // computed: {
- // curHouseObj() {
- // return this.$store.state.curHouseObj;
- // },
- // wallList() {
- // return this.$store.state.wallList;
- // },
- // },
- methods: {
- navbarBackClk() {
- if(!this.$refs.viewMask){
- this.$router.go(-1);
- return false
- }
- if (this.$refs.viewMask.showAIImage) {
- this.$refs.viewMask.showOrHideWebGl();//隐藏显示的AI生图
- // if(this.currentActor.userIndex!=this.defaulIndex){//当前不是默认视角了
- this.switchActor(this.defaulIndex);//切换到默认视角
- // }
- } else {
- this.$router.go(-1);
- }
- },
- clearHandle(){
- this.clearEvent();
- },
- save(){
- this.$refs.viewMask.save();//下载
- },
-
- }
- }
- </script>
- <style lang="scss" scoped>
- @import "./webgl_rxdz_roam.scss";
- /* @import "@/common/css/common.css"; */
- </style>
|