瀏覽代碼

新手指引

fyw 2 年之前
父節點
當前提交
0fc88ed772

文件差異過大導致無法顯示
+ 0 - 0
dist/css/guide.1f745a7c.css


文件差異過大導致無法顯示
+ 0 - 0
dist/css/guide.88264755.css


+ 1 - 1
dist/index.html

@@ -1 +1 @@
-<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>sport-web</title><link href="/css/about.b45c6ce0.css" rel="prefetch"><link href="/css/guide.88264755.css" rel="prefetch"><link href="/js/about.8cfd5d9f.js" rel="prefetch"><link href="/js/guide.d1275e5a.js" rel="prefetch"><link href="/css/app.3b957694.css" rel="preload" as="style"><link href="/css/chunk-vendors.74377dc6.css" rel="preload" as="style"><link href="/js/app.687e819c.js" rel="preload" as="script"><link href="/js/chunk-vendors.802266b3.js" rel="preload" as="script"><link href="/css/chunk-vendors.74377dc6.css" rel="stylesheet"><link href="/css/app.3b957694.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but sport-web doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.802266b3.js"></script><script src="/js/app.687e819c.js"></script></body></html>
+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>sport-web</title><link href="/css/about.b45c6ce0.css" rel="prefetch"><link href="/css/guide.1f745a7c.css" rel="prefetch"><link href="/js/about.8cfd5d9f.js" rel="prefetch"><link href="/js/guide.a82ad8ca.js" rel="prefetch"><link href="/css/app.3b957694.css" rel="preload" as="style"><link href="/css/chunk-vendors.74377dc6.css" rel="preload" as="style"><link href="/js/app.f325b294.js" rel="preload" as="script"><link href="/js/chunk-vendors.a24810f4.js" rel="preload" as="script"><link href="/css/chunk-vendors.74377dc6.css" rel="stylesheet"><link href="/css/app.3b957694.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but sport-web doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.a24810f4.js"></script><script src="/js/app.f325b294.js"></script></body></html>

文件差異過大導致無法顯示
+ 0 - 0
dist/js/app.f325b294.js


+ 0 - 0
dist/js/chunk-vendors.802266b3.js → dist/js/chunk-vendors.a24810f4.js


文件差異過大導致無法顯示
+ 0 - 0
dist/js/guide.a82ad8ca.js


文件差異過大導致無法顯示
+ 0 - 0
dist/js/guide.d1275e5a.js


+ 6 - 3
src/views/Guide/Begin/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="container df fdc">
-    <navbar />
+    <navbar v-if="!is" />
     <div class="flex-1 df ai-c jc-c">
       <van-swipe :loop="false">
         <van-swipe-item>
@@ -39,10 +39,13 @@
   </div>
 </template>
 <script lang="ts">
-import { defineComponent } from "vue";
+import { defineComponent, ref } from "vue";
+import { useRoute } from "vue-router";
 export default defineComponent({
   setup() {
-    return {};
+    const route = useRoute();
+    const is = ref(route.query.is);
+    return { is };
   }
 });
 </script>

+ 6 - 3
src/views/Guide/Connect/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="container df fdc">
-    <navbar />
+    <navbar v-if="!is" />
     <div class="flex-1 df ai-c jc-c">
       <van-swipe :loop="false">
         <van-swipe-item>
@@ -44,10 +44,13 @@
   </div>
 </template>
 <script lang="ts">
-import { defineComponent } from "vue";
+import { defineComponent, ref } from "vue";
+import { useRoute } from "vue-router";
 export default defineComponent({
   setup() {
-    return {};
+    const route = useRoute();
+    const is = ref(route.query.is);
+    return { is };
   }
 });
 </script>

+ 1 - 6
src/views/Guide/Index/components/VideoDialog/index.vue

@@ -30,8 +30,6 @@ export default defineComponent({
     }
   },
   setup(props, content) {
-    const player = ref();
-
     const dialogVisible = computed({
       get: () => props.visible,
       set: val => {
@@ -43,10 +41,7 @@ export default defineComponent({
       else document.body.removeAttribute("class");
     });
 
-    onMounted(() => {
-      console.log(player);
-    });
-    return { dialogVisible, player };
+    return { dialogVisible };
   }
 });
 </script>

+ 5 - 3
src/views/Guide/Index/index.vue

@@ -153,12 +153,13 @@
 </template>
 <script lang="ts">
 import { defineComponent, ref, reactive } from "vue";
-import { useRouter } from "vue-router";
+import { useRoute, useRouter } from "vue-router";
 import VideoDialog from "./components/VideoDialog/index.vue";
 export default defineComponent({
   components: { VideoDialog },
   setup() {
     const router = useRouter();
+    const route = useRoute();
     const active = ref(0);
     const gameLinks = reactive([
       {
@@ -212,19 +213,20 @@ export default defineComponent({
     ]);
     const videoVisible = ref(false);
     const cVideo = ref("");
+    const is = ref(route.query.is);
+
     const $_change = (index: number) => {
       active.value = index;
     };
 
     const $_navigate = (path: string) => {
-      router.push(path);
+      router.push({ path, query: { is: is.value } });
     };
 
     const $_open = (url: string) => {
       cVideo.value = url;
       videoVisible.value = true;
     };
-
     return {
       active,
       change: $_change,

+ 6 - 3
src/views/Guide/Miracast/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="container df fdc">
-    <navbar />
+    <navbar v-if="!is" />
     <div class="flex-1 df ai-c jc-c">
       <van-swipe :loop="false">
         <van-swipe-item>
@@ -44,10 +44,13 @@
   </div>
 </template>
 <script lang="ts">
-import { defineComponent } from "vue";
+import { defineComponent, ref } from "vue";
+import { useRoute } from "vue-router";
 export default defineComponent({
   setup() {
-    return {};
+    const route = useRoute();
+    const is = ref(route.query.is);
+    return { is };
   }
 });
 </script>

+ 6 - 3
src/views/Guide/Pair/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="container df fdc">
-    <navbar />
+    <navbar v-if="!is" />
     <div class="flex-1 df ai-c jc-c">
       <van-swipe :loop="false">
         <van-swipe-item>
@@ -48,10 +48,13 @@
   </div>
 </template>
 <script lang="ts">
-import { defineComponent } from "vue";
+import { defineComponent, ref } from "vue";
+import { useRoute } from "vue-router";
 export default defineComponent({
   setup() {
-    return {};
+    const route = useRoute();
+    const is = ref(route.query.is);
+    return { is };
   }
 });
 </script>

+ 6 - 3
src/views/Guide/Power/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="container df fdc">
-    <navbar />
+    <navbar v-if="!is" />
     <div class="flex-1 df ai-c jc-c">
       <van-swipe :loop="false">
         <van-swipe-item>
@@ -52,10 +52,13 @@
   </div>
 </template>
 <script lang="ts">
-import { defineComponent } from "vue";
+import { defineComponent, ref } from "vue";
+import { useRoute } from "vue-router";
 export default defineComponent({
   setup() {
-    return {};
+    const route = useRoute();
+    const is = ref(route.query.is);
+    return { is };
   }
 });
 </script>

+ 6 - 3
src/views/Guide/Recharge/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="container df fdc">
-    <navbar />
+    <navbar v-if="!is" />
     <div class="flex-1 df ai-c jc-c">
       <van-swipe :loop="false">
         <van-swipe-item>
@@ -46,10 +46,13 @@
   </div>
 </template>
 <script lang="ts">
-import { defineComponent } from "vue";
+import { defineComponent, ref } from "vue";
+import { useRoute } from "vue-router";
 export default defineComponent({
   setup() {
-    return {};
+    const route = useRoute();
+    const is = ref(route.query.is);
+    return { is };
   }
 });
 </script>

+ 6 - 3
src/views/Guide/Replace/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="container df fdc">
-    <navbar />
+    <navbar v-if="!is" />
     <div class="flex-1 df ai-c jc-c">
       <van-swipe :loop="false">
         <van-swipe-item>
@@ -42,10 +42,13 @@
   </div>
 </template>
 <script lang="ts">
-import { defineComponent } from "vue";
+import { defineComponent, ref } from "vue";
+import { useRoute } from "vue-router";
 export default defineComponent({
   setup() {
-    return {};
+    const route = useRoute();
+    const is = ref(route.query.is);
+    return { is };
   }
 });
 </script>

部分文件因文件數量過多而無法顯示