Browse Source

绘制新版个人形象上传

zjs_project 1 year ago
parent
commit
0fe64a5d88

+ 1 - 1
src/components/krpanoVideo/index.vue

@@ -313,7 +313,7 @@
 				console.warn("***playSceneName-stopPetVideo***")
 			},
             playBgMusic(url){
-				this.panoramicKrpano.call(`playBgMusic(${url})`);
+				this.panoramicKrpano.call(`playBgMusic(${url},${this.muted})`);
 			},
 			stopBgMusic(url){
 				this.panoramicKrpano.call(`closeVoice()`);

+ 2 - 3
src/components/krpanoVideo/panoramic.xml

@@ -261,9 +261,8 @@
 		</action>
 		<action name="playBgMusic">
 		    <!-- 播放背景音乐 -->
-		    ifnot(%2 == true, playsound(bgsnd, %1, true););
-		    if(%2 == true, pausesoundtoggle(bgsnd););
-			mutesound(bgsnd,get(false));
+		    playsound(bgsnd, %1, true);
+			mutesound(bgsnd,%2);
 		</action>
 		<!-- 关闭所有的声音 -->
 		<action name="closeVoice">

+ 2 - 1
src/components/krpanoVideo/panoramic_no_drag.xml

@@ -202,7 +202,8 @@
 		<action name="playBgMusic">
 		    <!-- 播放背景音乐 -->
 		    playsound(bgsnd, %1, true);
-			mutesound(bgsnd,get(false));
+			mutesound(bgsnd,%2);
+			<!-- mutesound(bgsnd,%2); -->
 		</action>
 		<!-- 关闭所有的声音 -->
 		<action name="closeVoice">

+ 3 - 1
src/components/newBottomCom/viewAI/viewAI.vue

@@ -359,7 +359,9 @@
 					this.leftList[0].height = single.widthHeight.split('x')[1],
 					this.uploadStatus = 3;//处理完毕
 					this.stopInterval();//停止轮询
-					this.addRealVideo();
+					if(this.peopleIndex==0 && this.tabIndex==0){//如果当前在个人形象上,则替换视频
+						this.addRealVideo();
+					}
 				}else{//没有结果
 					let progress = single.progress;
 					progress = progress.replace(this.videoId + ':','');