panhui hace 3 años
padre
commit
29aaefe397
Se han modificado 2 ficheros con 9 adiciones y 9 borrados
  1. 2 2
      src/components/product/productInfo.vue
  2. 7 7
      src/main.js

+ 2 - 2
src/components/product/productInfo.vue

@@ -96,7 +96,7 @@ export default {
                         liked: true,
                         likes: this.info.likes + 1
                     });
-                    this.$toast.success('收藏成功');
+                    this.$toast.success(this.traditionalized('收藏成功'));
                 });
             } else {
                 this.$http.get(`/collection/${this.info.id}/unlike`).then(() => {
@@ -105,7 +105,7 @@ export default {
                         liked: false,
                         likes: this.info.likes - 1
                     });
-                    this.$toast.success('取消收藏');
+                    this.$toast.success(this.traditionalized('取消收藏'));
                 });
             }
         },

+ 7 - 7
src/main.js

@@ -163,9 +163,9 @@ const loadSplash = (onload, onerror) =>
             if (isHide) return;
             isHide = true;
             splash.style.opacity = 0;
-            setTimeout(() => {
-                document.body.removeChild(splash);
-            }, 800);
+            // setTimeout(() => {
+            //     document.body.removeChild(splash);
+            // }, 800);
             resolve();
         }
 
@@ -176,7 +176,7 @@ const loadSplash = (onload, onerror) =>
             onload && onload();
             setTimeout(() => {
                 hideSplash();
-            }, 2000);
+            }, 10);
         };
         splash.onerror = () => {
             hideSplash();
@@ -184,9 +184,9 @@ const loadSplash = (onload, onerror) =>
         };
         setTimeout(() => {
             hideSplash();
-        }, 5000);
-        splash.src = 'https://cdn.raex.vip/splash.jpg';
-        document.body.append(splash);
+        }, 10);
+        // splash.src = 'https://cdn.raex.vip/splash.jpg';
+        // document.body.append(splash);
     });
 if (navigator.userAgent.includes('#review#')) {
     store.commit('setReview', true);