zjs_project vor 1 Jahr
Ursprung
Commit
0b165d5a78

+ 11 - 6
src/pages/webgl_rxdz_720/webgl_rxdz_720.vue

@@ -135,7 +135,9 @@
 			// this.attendEvent = attendEvent;
 			this.starRender = starRender; //对外暴露启动渲染的方法
 			this.stopRender = stopRender; //对外暴露停止渲染的方法
-
+			if(window.__wxjs_environment === 'miniprogram'){
+				this.navbar.showCapsule = 0;
+			}
 			function init() {
 				// 创建相机位置
 				camera = new THREE.PerspectiveCamera(90, screenWidth / that.canvasHeight, 0.1, 10000);
@@ -207,17 +209,17 @@
 					}, false)
 				}
 				var guideMask = document.querySelector('#guide-mask');
-				document.addEventListener("touchstart", function () {
+				document.addEventListener("touchend", function () {
 					guideMask.classList.add('guide-mask-hide');
 					if(!that.isIOS && that.hasOneTouch==false){
 						that.hasOneTouch = true;
-						setTimeout(()=>{
+						// setTimeout(()=>{
 							if(that.type){
 								moreTest()
 							}else{
 								videoHandle({videoUrl:that.videoUrl,coordinate:that.coordinate});
 							}
-						},500)
+						// },2000)
 					}
 				}, false);
 			}
@@ -265,12 +267,15 @@
 				video.muted = item.muted;
 				video.controls = false;
 				video.autoplay = true;
+				video.preload = 'auto';
 				video.setAttribute('webkit-playsinline', true);
 				video.setAttribute('playsinline', true);
 				video.load();
+				
+				console.warn("***video***",video,video.width);
+				
 				setTimeout(()=>{
 					video.play();
-					console.warn("***video***",video,video.width);
 					// 创建视频纹理
 					var videoTexture = new THREE.VideoTexture(video);
 					// videoTexture.minFilter = THREE.LinearFilter;
@@ -454,7 +459,7 @@
 					// mesh.lookAt(camera.position);
 					scene.add(mesh);
 					videoMeshGroup.push(mesh);
-				},500)
+				},1000)
 				
 				// videoMesh = mesh;
 			}

+ 4 - 2
src/pages/webgl_rxdz_clipImg/webgl_rxdz_clipImg.vue

@@ -150,7 +150,9 @@
 			init();
 			this.starRender = starRender; //对外暴露启动渲染的方法
 			this.stopRender = stopRender; //对外暴露停止渲染的方法
-
+			if(window.__wxjs_environment === 'miniprogram'){
+				this.navbar.showCapsule = 0;
+			}
 			function init() {
 				// 创建相机位置
 				camera = new THREE.PerspectiveCamera(90, screenWidth / that.canvasHeight, 0.1, 10000);
@@ -219,7 +221,7 @@
 					    videoHandle();
 					}, false)
 				}else{
-					document.addEventListener("click",  ()=> {
+					document.addEventListener("touchend",  ()=> {
 						// guideMask.classList.add('guide-mask-hide');
 						videoHandle();
 					}, false);

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

@@ -142,7 +142,9 @@
 			this.stopRender = stopRender; //对外暴露停止渲染的方法
 			this.videoHandle = videoHandle;	//视频处理方法
 			this.getVideoPosition = getVideoPosition;	//获取视频位置信息
-			
+			if(window.__wxjs_environment === 'miniprogram'){
+				this.navbar.showCapsule = 0;
+			}
 			function init() {
 				// 创建相机位置
 				camera = new THREE.PerspectiveCamera(90, screenWidth / that.canvasHeight, 0.1, 10000);