gemercheung 2 years ago
parent
commit
4a18021850

+ 1 - 0
packages/qjkankan-editor/src/lang/_en.json

@@ -718,6 +718,7 @@
     "mask_size": "500*500 pixels, <br>jpg/png format support",
     "bottom_mask": "Bottom mask",
     "opening_setting": "Set the animations",
+    "opening_animation_show": "Switch the animations",
     "opening_tips_setting": "Notifications Settings",
     "opening_tips": "The notifications only apply to panoramic images. The following notifications are inapplicable if the start screen is a 3D model.",
     "pc": "PC",

+ 10 - 6
packages/qjkankan-editor/src/views/base/openingAnimationSettings.vue

@@ -72,13 +72,18 @@ export default {
     }),
     fallbackOpeningAnimationType() {
       return (val) => {
-        if (
-          !val ||
-          (typeof val === "string" && String(val).match(/[\u3400-\u9FBF]/))
-        ) {
+        if (!val) {
           return 1;
         } else {
-          return val;
+          if (typeof val === "string") {
+            if (val.match(/[\u3400-\u9FBF]/)) {
+              return 1;
+            } else {
+              return Number(val.replace("opa", ""));
+            }
+          } else {
+            return val;
+          }
         }
       };
     },
@@ -102,7 +107,6 @@ export default {
     ) {
       this.$set(this.info, "openingAnimationType", this.openingTypeList[0]);
     }
-
     this.$nextTick(() => {
       console.log(this.$refs.opvideo);
 

+ 0 - 7
packages/qjkankan-view/src/pages/show.vue

@@ -41,13 +41,6 @@ import { useApp } from "@/app";
 import { useI18n, getLocale } from "@/i18n";
 const { t } = useI18n({ useScope: "global" });
 
-// const fixOpening = {
-//   opa1: 1,
-//   opa2: 2,
-//   opa3: 3,
-//   opa4: 4,
-//   opa5: 5,
-// };
 
 const store = useStore();
 const show = ref(false);

+ 0 - 7
packages/qjkankan-view/src/pages/showMobile.vue

@@ -46,13 +46,6 @@ initWxShare();
 
 const coverInfo = ref({});
 
-const fixOpening = {
-  opa1: 1,
-  opa2: 2,
-  opa3: 3,
-  opa4: 4,
-  opa5: 5,
-};
 
 const store = useStore();
 const show = ref(false);