|
@@ -47,12 +47,8 @@
|
|
|
alt=""
|
|
|
/>
|
|
|
|
|
|
- <div @click.stop="jumpVideo" class="jump">
|
|
|
- {{
|
|
|
- countdownVideo > 0
|
|
|
- ? $t("common.jumpTips", { second: countdownVideo })
|
|
|
- : $t("common.jump")
|
|
|
- }}
|
|
|
+ <div @click.stop="jumpVideo" class="jump" v-if="countdownVideo == 0">
|
|
|
+ {{ $t("common.jump") }}
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -67,7 +63,7 @@
|
|
|
}"
|
|
|
>
|
|
|
<div
|
|
|
- @click="jumpImage"
|
|
|
+ @click="jumpImage(0)"
|
|
|
class="image-front"
|
|
|
:style="{
|
|
|
backgroundImage: `url(${coverData.coverMo})`,
|
|
@@ -88,7 +84,7 @@
|
|
|
: `${coverData.imgColorSelec}`,
|
|
|
}"
|
|
|
></div>
|
|
|
- <div @click.stop="jumpImage" class="jump">
|
|
|
+ <div @click.stop="jumpImage(1)" class="jump">
|
|
|
{{
|
|
|
countdownImg > 0
|
|
|
? $t("common.jumpTips", { second: countdownImg })
|
|
@@ -161,7 +157,7 @@ const videoShow = ref(false);
|
|
|
const imgIndex = ref(1);
|
|
|
const videoIndex = ref(1);
|
|
|
|
|
|
-const currentScene = computed(() => store.getters["scene/currentScene"]);
|
|
|
+
|
|
|
|
|
|
const handleVideoPlay = () => {
|
|
|
// window.alert("play");
|
|
@@ -170,22 +166,48 @@ const handleVideoPlay = () => {
|
|
|
};
|
|
|
|
|
|
//手动跳转
|
|
|
-const jumpImage = () => {
|
|
|
+/**
|
|
|
+ * 跳转逻辑PM设定非奇怪,要注意
|
|
|
+ * @TODO 图片模式 button 3秒倒只作装饰显示,不参与逻辑
|
|
|
+ *
|
|
|
+ * */
|
|
|
+
|
|
|
+ const jumpImage = (from = 0) => {
|
|
|
+ // 0 来自元素click, 1.来自跳转按钮
|
|
|
if (unref(isMixinMode)) {
|
|
|
if (unref(showImageFirst)) {
|
|
|
imgShow.value = false;
|
|
|
videoShow.value = true;
|
|
|
startVideoCount();
|
|
|
} else {
|
|
|
- toApp();
|
|
|
+ // 强制跳转
|
|
|
+ // 非自动模式强制跳转
|
|
|
+ if (from === 0 && !unref(isImageAutoNext)) {
|
|
|
+ toApp();
|
|
|
+ }
|
|
|
+ if (from === 1) {
|
|
|
+ toApp();
|
|
|
+ }
|
|
|
+ if (unref(isImageAutoNext) && unref(isImageCountDone)) {
|
|
|
+ toApp();
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
- if (unref(isImageCountDone)) {
|
|
|
+ // 非自动模式强制跳转
|
|
|
+ if (from === 0 && !unref(isImageAutoNext)) {
|
|
|
+ toApp();
|
|
|
+ }
|
|
|
+ // 非自动模式强制跳转
|
|
|
+ if (from === 1) {
|
|
|
+ toApp();
|
|
|
+ }
|
|
|
+ if (unref(isImageAutoNext) && unref(isImageCountDone)) {
|
|
|
toApp();
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+
|
|
|
//手动跳转
|
|
|
const jumpVideo = () => {
|
|
|
if (unref(isMixinMode)) {
|