zjs_project 1 year ago
parent
commit
43a9800ef4

+ 6 - 4
src/components/newBottomCom/viewAI/viewAI.vue

@@ -94,15 +94,17 @@
 				if (e) {
 					let param = {
 						type: 'CLK', //埋点类型
-						clkId: 'clk_2cmina_23080408', //点击ID
-						clkName: 'WeCom_clk', //点击前往的页面名称
+						clkId: 'clk_2cmina_23121301', //点击ID
+						clkName: 'webgl_public_clk', //点击前往的页面名称
 						clkParams: {
-							locusName: "联系定制",
+							locusName: "720发布",
 						}
 					};
 					util.trackRequest(param);
+					let _ps = this.$parent.getVideoPosition();
+					console.warn("_ps",_ps)
 					if(window.__wxjs_environment === 'miniprogram'){
-						wx.miniProgram.navigateTo({url: '/extraPackage/pages/aiPublishPage/aiPublishPage?event=openCustomerServiceChat&houseId='+this.$store.state.houseId+'&coordinate=1,2,3&bgUrl='+this.$route.query.bgUrl})
+						wx.miniProgram.navigateTo({url: '/extraPackage/pages/aiPublishPage/aiPublishPage?event=openCustomerServiceChat&houseId='+this.$store.state.houseId+'&coordinate=' + encodeURIComponent(_ps) + '&bgUrl='+this.$route.query.bgUrl})
 					}else{
 						Toast({
 							message: '敬请期待',

+ 10 - 1
src/pages/webgl_rxdz_vr/webgl_rxdz_vr.vue

@@ -140,6 +140,8 @@
 			this.starRender = starRender; //对外暴露启动渲染的方法
 			this.stopRender = stopRender; //对外暴露停止渲染的方法
 			this.videoHandle = videoHandle;	//视频处理方法
+			this.getVideoPosition = getVideoPosition;	//获取视频位置信息
+			
 			function init() {
 				// 创建相机位置
 				camera = new THREE.PerspectiveCamera(120, screenWidth / that.canvasHeight, 0.1, 10000);
@@ -404,7 +406,14 @@
 					controls.enabled = true;
 				});
 			}
-
+			function getVideoPosition() {
+				if(!videoMesh){
+					return '';
+				}
+				let _position = JSON.stringify(videoMesh.position);
+				return _position;
+			}
+			
 			function stopRender() {
 				needRender = false;
 			}