reghao 4 năm trước cách đây
mục cha
commit
33702fcd37

+ 0 - 2
src/App.vue

@@ -5,10 +5,8 @@
 </template>
 
 <script>
-
 export default {
   name: 'App',
-
   data: () => ({
     //
   })

+ 0 - 21
src/layout/components/footer.vue

@@ -1,21 +0,0 @@
-<template>
-  <v-footer>
-    <v-col
-      class="text-center"
-      cols="12"
-    >
-      <a href="https://www.buguagaoshu.com" target="_blank"><strong>不挂高数</strong></a> ©2020 - {{ new Date().getFullYear() }}  Created by
-      <a href="https://vuetifyjs.com/" target="_blank"><strong>Vuetify</strong></a>
-    </v-col>
-  </v-footer>
-</template>
-
-<script>
-export default {
-
-}
-</script>
-
-<style>
-
-</style>

+ 0 - 1
src/layout/components/head.vue

@@ -125,5 +125,4 @@ export default {
 </script>
 
 <style>
-
 </style>

+ 13 - 2
src/layout/index.vue

@@ -25,7 +25,7 @@
     <v-app-bar
       :clipped-left="$vuetify.breakpoint.lgAndUp"
       app
-      color="red"
+      color="blue"
       dark
     >
       <v-app-bar-nav-icon @click.stop="drawer = !drawer" />
@@ -35,6 +35,7 @@
       >
         <span style="cursor:pointer" @click="goToHome()">{{ this.$store.state.webInfo.name }}</span>
       </v-toolbar-title>
+
       <v-text-field
         v-model="keyword"
         flat
@@ -83,11 +84,21 @@
     <v-main>
       <router-view />
     </v-main>
+    <!--
+    <v-footer app>
+          <v-col
+            class="text-center"
+            cols="12"
+          >
+            {{ new Date().getFullYear() }} — <strong>Vuetify</strong>
+          </v-col>
+        </v-footer>-->
   </div>
 </template>
 
 <script>
 import Head from '@/layout/components/head.vue'
+
 export default {
   // TODO 增加分类页
   components: {
@@ -100,7 +111,7 @@ export default {
     items: [
       { icon: 'mdi-home', text: '首页', link: '/' },
       { icon: 'mdi-trending-up', text: '状态', link: '/hot' },
-      { icon: 'mdi-youtube-subscription', text: '订阅', link: '/subscribe' },
+      { icon: 'mdi-youtube-subscription', text: '直播', link: '/subscribe' },
       { icon: 'mdi-history', text: '历史记录', link: '/history' },
       { icon: 'mdi-playlist-play', text: '稍后再看', link: '/playlist' }
 

+ 1 - 2
src/router/index.js

@@ -83,9 +83,8 @@ const routes = [
         path: '/live',
         name: 'live',
         component: () => import('@/views/live/index.vue'),
-        meta: { title: '直播' }
+        meta: { title: '直播1' }
       }
-
     ]
   },
   {

+ 0 - 99
src/views/home/hot.vue

@@ -1,99 +0,0 @@
-<template>
-  <v-container fill-height fluid style="padding-left: 24px; padding-right: 24px">
-    <div v-infinite-scroll="loadMore" infinite-scroll-disabled="true" infinite-scroll-distance="10">
-      <v-row
-        v-for="x in list"
-        :key="x.id"
-        no-gutters
-      >
-        <status-card :x="x" />
-        <v-divider />
-      </v-row>
-    </div>
-  </v-container>
-</template>
-
-<script>
-import { mapActions, mapGetters } from 'vuex'
-import StatusCard from '@/components/status/status-card'
-
-export default {
-  name: 'Home',
-  components: {
-    StatusCard
-  },
-  data() {
-    return {
-      list: []
-    }
-  },
-  computed: {
-    ...mapGetters({
-      statuses: 'my_content',
-      option: 'my_content_option',
-      showImage: 'image_zoom_show'
-    })
-  },
-  watch: {
-    option: {
-      handler: function(val, oldVal) {
-        if (val && val.page === 1) {
-          this.list = []
-        }
-      },
-      deep: true
-    },
-    statuses: function(val, oldVal) {
-      if (val) {
-        if (this.option.page === 1) {
-          this.list = val
-        } else {
-          this.list = [...this.list, ...val]
-        }
-      }
-    }
-  },
-  created() {
-    this.myContent(1)
-  },
-  mounted() {
-
-  },
-  activated() {
-    window.addEventListener('scroll', this.scrollBar)
-  },
-  deactivated() {
-    window.removeEventListener('scroll', this.scrollBar)
-  },
-  methods: {
-    ...mapActions([
-      'getMyContent'
-    ]),
-    myContent(page) {
-      this.getMyContent(page)
-    },
-    loadMore() {
-      /* const vue = this
-      vue.option.refresh = true
-      var page = vue.option.page + 1
-      vue.myContent(page)*/
-    },
-    scrollBar() {
-      var a = document.documentElement.scrollTop === 0 ? document.body.clientHeight : document.documentElement.clientHeight
-      var b = document.documentElement.scrollTop === 0 ? document.body.scrollTop : document.documentElement.scrollTop
-      var c = document.documentElement.scrollTop === 0 ? document.body.scrollHeight : document.documentElement.scrollHeight
-      if (a + b === c && !this.showImage) {
-        console.log(a + b)
-        this.loadMore()
-      }
-    }
-  }
-
-}
-</script>
-
-<style>
-a {
-  text-decoration: none;
-}
-</style>

+ 1 - 6
src/views/home/subscribe.vue

@@ -1,16 +1,11 @@
 <template>
   <v-container fill-height>
-    <NoLoginShow v-if="this.$store.state.user.userInfo == null" />
   </v-container>
 </template>
 
 <script>
-import NoLoginShow from '@/components/no-login-show.vue'
 export default {
-  name: 'Subscribe',
-  components: {
-    NoLoginShow
-  }
+  name: 'Subscribe'
 }
 </script>