zjs_project 22 uur geleden
bovenliggende
commit
1d60961fd8

+ 2 - 1
src/components/newBottomCom/viewMask/viewMask.vue

@@ -595,7 +595,8 @@
 								shottingImg:this.shottingImg,
 								style:this.styleList[this.curStyleIndex].styleName
 							}
-						}
+						},
+                        behaviorName:"AI开始生成",
 					};
 					util.trackRequest(param);
 				}else{

+ 2 - 2
src/components/newQCCom/viewMask/viewMask.vue

@@ -688,13 +688,13 @@
 						clkId: 'clk_2cmina_23080413', //点击ID
 						clkName: 'AIcreate_clk', //点击前往的页面名称
 						clkParams: {
-							locusName: "AI生成",
                             locusValue:shottingImg,
 							userparamter:{
 								shottingImg:this.shottingImg,
 								style:this.styleList[this.curStyleIndex].styleName
 							}
-						}
+						},
+                        behaviorName:"AI开始生成",
 					};
 					util.trackRequest(param);
 				}else{

+ 3 - 3
src/components/newQCCom/viewlayout/viewlayout.vue

@@ -491,7 +491,7 @@
                             return false;
                         }else{//正常开始识别语句了
                             this.speechText = "";
-                            this.loadingInstance.close();
+                            this.loadingInstance && this.loadingInstance.close();
                             this.recording = true;//显示正在录音视图
                             this.$parent.showCareful = false;//隐藏
                         }
@@ -521,7 +521,7 @@
                         console.log('识别失败', res)
                         this.recording = false; //录音结束
                         this.$parent.showCareful = true;//显示
-                        this.loadingInstance.close();
+                        this.loadingInstance && this.loadingInstance.close();
                     };
                     // webAudioSpeechRecognizer = webAudioSpeechRecognizer;
                 // }
@@ -535,7 +535,7 @@
                     webAudioSpeechRecognizer.stop();//关闭
                 }
                 // webAudioSpeechRecognizer = null;
-                this.loadingInstance.close();
+                this.loadingInstance && this.loadingInstance.close();
                 this.$parent.showCareful = true;//显示
             },
             callBack(type){

+ 7 - 3
src/mixins/commonPageMethod.js

@@ -16,7 +16,7 @@ export default {
 			if(this.starRender && typeof(this.starRender)==='function'){
 				this.starRender()
 			}
-            if(this.pvId != "p_2cmina_23080401"){
+            if(this.pvId != "p_2cmina_23080401" && !(this.pvId=="p_2cmina_23080404" && !this.curHouseObj)){
                 let param = {
                 	type: 'PV',
                 	pvId: this.pvId,
@@ -74,9 +74,15 @@ export default {
 			window.removeEventListener('beforeunload', this.pvCloseHandle);
 			window.removeEventListener('visibilitychange', this.visibilitychange);
 			window.currentPage = this;
+            window.addEventListener('beforeunload', this.pvCloseHandle);
+            window.addEventListener('visibilitychange', this.visibilitychange);
 			if(this.starRender && typeof(this.starRender)==='function'){
 				this.starRender()
 			}
+            //条件不具备,不发送埋点
+            if((this.pvId=="p_2cmina_23080401" || this.pvId=="p_2cmina_23080404") && !this.curHouseObj){
+                return false
+            }
             if(this.backAysncData && typeof(this.backAysncData)==='function'){
             	this.backAysncData()
             }
@@ -88,8 +94,6 @@ export default {
                 locusValue: this.locusValue,
 			};
 			util.trackRequest(param);//发送统一PV埋点
-			window.addEventListener('beforeunload', this.pvCloseHandle);
-			window.addEventListener('visibilitychange', this.visibilitychange);
 		}
 	},
 	methods: {

+ 6 - 5
src/pages/webgl_rxdz_test_all/webgl_rxdz_test_all.vue

@@ -1185,14 +1185,14 @@
             	this.cameraInit();
                 this.locusValue = this.curHouseObj.name + "-" + this.curHouseObj.houseArea + "㎡";
                 let param = {
-                	type: 'PV',
-                	pvId: this.pvId,
-                	locusBehaviorName: this.locusBehaviorName,
-                	pvCurPageName: this.pvCurPageName,
+                    type: 'PV',
+                    pvId: this.pvId,
+                    locusBehaviorName: this.locusBehaviorName,
+                    pvCurPageName: this.pvCurPageName,
                     pvCurPageParams:{
                         link:window.location.href,
                     },
-                	locusValue: this.locusValue,
+                    locusValue: this.locusValue,
                     behaviorName:"空间定制",
                 };
                 util.trackRequest(param);//发送统一PV埋点
@@ -1208,6 +1208,7 @@
                     console.warn("***curHouseFloorChange-nodeta***",this.curLayoutStruct,item)
                     return false
                 }
+                this.pvCloseHandle();//关闭当前的pv
             	// 遍历场景中的所有子对象,找到类型为Mesh的对象并移除
             	let deleList = that.scene && that.scene.children.filter(object=>{
             		if(object.userType=="mesh" || object.userType=="layoutMesh"){

+ 16 - 3
src/pages/webgl_rxdz_test_look/webgl_rxdz_test_look.vue

@@ -10,7 +10,7 @@
 	import TWEEN from 'three/addons/libs/tween.module.js';
 
 	var requestId = "";
-    const util = require('@/utils/util.js');
+    const util = require('@/utils/util.js').default;
     const config = require('@/services/urlConfig.js');
 	import loadModel from '@/mixins/loadModel.js';
 	import wallMethod from '@/mixins/wallMethod.js';
@@ -494,7 +494,7 @@
 					return false;
 				}
 				this.floorId = item.layoutId;
-				
+				this.pvCloseHandle();//关闭当前的pv
 				this.curHouseObj = this.curData.layoutStruct.find(it=>it.layoutId==item.layoutId);//更新当前具体的户型数据
 				// 遍历场景中的所有子对象,找到类型为Mesh的对象并移除
 				let deleList = this.scene.children.filter(object=>{
@@ -652,12 +652,25 @@
 					this.cameraStarPosition.y = 35;
 				}
                 this.allSpaceCenter = this.getAllSpaceCenter(this.spaceList);//获取所有空间的中心点
-                console.log("该户型空间数据:", this.spaceList);
+                console.log("该户型空间数据:", this.curHouseObj,this.spaceList);
 				console.log("当前选中的空间:", this.curSpaceObj);
 				this.cameraInit();
 				this.loaderSpaceArr(this.spaceList);
                 // 获取墙体数据并且绘制墙体
                 this.getHouseTypeSpaceWalls();
+                this.locusValue = this.curHouseObj.layoutName + "-" + this.curHouseObj.layoutArea + "㎡";
+                let param = {
+                    type: 'PV',
+                    pvId: this.pvId,
+                    locusBehaviorName: this.locusBehaviorName,
+                    pvCurPageName: this.pvCurPageName,
+                    pvCurPageParams:{
+                        link:window.location.href,
+                    },
+                    locusValue: this.locusValue,
+                    behaviorName:"webgl户型查看",
+                };
+                util.trackRequest(param);//发送统一PV埋点
             },
             locationHandle(){
                 this.movePositionHandle(this.allSpaceCenter,this.cameraStarPosition.y);//把摄像机移动到所有模型的中心点(水平面中心)