From d68d704b52cd204121930c46a299374e74dd1690 Mon Sep 17 00:00:00 2001 From: zyronon Date: Mon, 28 Jun 2021 01:57:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86indicator=E6=94=BE=E5=88=B0slide?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E9=87=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 8 +- src/pages/home/Index.vue | 199 +------------ src/pages/home/Me.vue | 7 +- src/pages/home/Me2.vue | 533 ++++++++++++++++++++++++++++++++++- src/pages/home/SlideList.vue | 259 +++++++++++++---- 5 files changed, 749 insertions(+), 257 deletions(-) diff --git a/src/main.js b/src/main.js index da137d7..72fc8f4 100644 --- a/src/main.js +++ b/src/main.js @@ -18,6 +18,7 @@ import BaseHeader from "./components/BaseHeader.vue" import MyCollect from "./pages/me/MyCollect.vue"; import BaseSlideList from "./components/BaseSlideList.vue"; import BaseSlideItem from "./components/BaseSlideItem.vue"; +import Me2 from "./pages/home/Me2"; // 我们后面再讨论嵌套路由。 const routes = [ @@ -27,6 +28,7 @@ const routes = [ {path: '/attention', component: Attention}, {path: '/message', component: Message}, {path: '/me', component: Me}, + {path: '/me2', component: Me2}, {path: '/music', component: Music}, {path: '/countryChoose', component: countryChoose}, {path: '/MyCard', component: MyCard}, @@ -41,7 +43,9 @@ const store = Vuex.createStore({ state: { pageAnim: 'none', playDuration: 60, - currentVideoId:null + currentVideoId: null, + bodyHeight: document.body.clientHeight, + bodyWidth: document.body.clientWidth }, mutations: { setPageAnim(state, states) { @@ -123,7 +127,7 @@ const myMixin = { } } const app = Vue.createApp(App) -app.provide('mitt',mitt()) +app.provide('mitt', mitt()) app.component('BaseHeader', BaseHeader) app.component('BaseSlideList', BaseSlideList) diff --git a/src/pages/home/Index.vue b/src/pages/home/Index.vue index 43e866b..6727652 100644 --- a/src/pages/home/Index.vue +++ b/src/pages/home/Index.vue @@ -2,66 +2,13 @@
-
-
-
直播
-
-
-
双流
-
关注
-
推荐
-
-
-
-
搜索
-
-
下拉刷新内容
-
AA
-
- - -
-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-

同城页

-
-

111111111111

@@ -143,14 +90,13 @@
- + -
+

喜欢

喜欢

喜欢

@@ -142,7 +142,8 @@ export default { data() { return { serviceEl: {}, - serviceHeight: 0 + serviceHeight: 0, + contentIndex:0 } }, } diff --git a/src/pages/home/Me2.vue b/src/pages/home/Me2.vue index acaf656..1424da5 100644 --- a/src/pages/home/Me2.vue +++ b/src/pages/home/Me2.vue @@ -1,23 +1,255 @@