From c02c1bef74a0eeff05a184f5d26c85c193d0aad2 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Tue, 2 Jun 2020 15:37:01 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=9F=BA=E6=9C=AC?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/index/video-item/index.vue | 5 +++-- pages/index/index.vue | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/components/index/video-item/index.vue b/components/index/video-item/index.vue index 1f48a97..2e62ace 100644 --- a/components/index/video-item/index.vue +++ b/components/index/video-item/index.vue @@ -3,7 +3,7 @@ - 这是标题这是标题这是标题 + 这是标题这是标题这是标题 这是简介这是简介这是简介 @@ -91,6 +91,7 @@ export default { return { } - } + }, + props:["isguanzhu"] } \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index 2a3ec21..4e90201 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -60,6 +60,14 @@ + + + + + + + + -- 2.47.2 From 4e989fc1c09e6732366d7c23b8142fc3f35530af Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Tue, 2 Jun 2020 15:53:33 +0800 Subject: [PATCH 2/4] . --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9a77c22..d6b4b41 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ - uniapp - 组建库 [uview](http://www.uviewui.com/) ## 目录结构 -```1= +``` |-pages tabes 目录 |-pageA 前期注册用页面 |-pageB 首页类页面 -- 2.47.2 From 8162188b03fa98a47ad89c7c5db9f460ae963c1b Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Tue, 2 Jun 2020 16:45:02 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 3 ++- pages/index/index.vue | 59 +++++++++++++++++++++++++------------------ 2 files changed, 36 insertions(+), 26 deletions(-) diff --git a/pages.json b/pages.json index 2aeadff..ecd47a3 100644 --- a/pages.json +++ b/pages.json @@ -115,7 +115,8 @@ { "path": "pages/index/index", "style": { - "navigationBarTitleText": "uni-app" + "navigationBarTitleText": "首页", + "navigationStyle": "custom" } } ], diff --git a/pages/index/index.vue b/pages/index/index.vue index 32d8e27..764365a 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -3,13 +3,20 @@ - 发现 - 直播 - 关注 + - + @@ -93,29 +100,12 @@ .sosuo{ width: 32rpx; height: 32rpx; + } .tabs{ - display: flex; - width: 294upx; - justify-content: space-between; - >view{ - font-size: 36upx; - color: #333; + width: 334rpx; + /deep/ .u-tab-item{ font-weight: bold; - position: relative; - } - >view::before{ - content: ""; - display: block; - position: absolute; - background-color: #FF780F; - width: 0; - height: 4rpx; - bottom: -10rpx; - left: 25%; - } - .xuanzhong::before{ - width: 50%; } } } @@ -179,7 +169,16 @@ export default { name:"index", data(){ return { - + list:[ + { + name: '发现' + }, { + name: '直播' + }, { + name: '关注' + } + ], + num:0 } }, components:{ @@ -187,6 +186,16 @@ export default { zhiboItem, indexad, darenItem + }, + methods:{ + dianji(a){ + console.log(a) + if(typeof a == "object"){ + this.num = a.detail.current + }else{ + this.num = a + } + } } } \ No newline at end of file -- 2.47.2 From 0f3073e577d1a33dafaded779de81417c0544f90 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Tue, 2 Jun 2020 17:24:13 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E5=85=B3=E6=B3=A8=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageB/follow/index.vue | 60 ++++++++++++++++++++++++++++++++++++++++++ pages.json | 16 +++++++++++ 2 files changed, 76 insertions(+) create mode 100644 pageB/follow/index.vue diff --git a/pageB/follow/index.vue b/pageB/follow/index.vue new file mode 100644 index 0000000..baadccc --- /dev/null +++ b/pageB/follow/index.vue @@ -0,0 +1,60 @@ + + + \ No newline at end of file diff --git a/pages.json b/pages.json index ecd47a3..d4c2aa3 100644 --- a/pages.json +++ b/pages.json @@ -31,6 +31,22 @@ } ] }, + { + "root": "pageB", + "pages": [ + { + "path": "follow/index", + "style": { + "navigationBarTitleText": "", + "app-plus":{ + "titleNView":{ + "backgroundColor":"#ffffff" + } + } + } + } + ] + }, { "root": "pageE", "pages":[ -- 2.47.2