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 首页类页面
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/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 2aeadff..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":[
@@ -115,7 +131,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 61f15ec..764365a 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -3,13 +3,20 @@
- 发现
- 直播
- 关注
+
-
+
@@ -60,6 +67,14 @@
+
+
+
+
+
+
+
+
@@ -85,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%;
}
}
}
@@ -171,7 +169,16 @@ export default {
name:"index",
data(){
return {
-
+ list:[
+ {
+ name: '发现'
+ }, {
+ name: '直播'
+ }, {
+ name: '关注'
+ }
+ ],
+ num:0
}
},
components:{
@@ -179,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