diff --git a/.vscode/settings.json b/.vscode/settings.json
index d44c4b7..b9f7917 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -29,5 +29,12 @@
"pages.json": "jsonc", // pages.json 可以写注释
"manifest.json": "jsonc" // manifest.json 可以写注释
},
- "cSpell.words": ["Tabbar"]
+ "cSpell.words": [
+ "commitlint",
+ "dcloudio",
+ "refresherrefresh",
+ "scrolltolower",
+ "tabbar",
+ "WechatMiniprogram"
+ ]
}
diff --git a/src/pages.json b/src/pages.json
index b0f0bfa..fb319ad 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -7,13 +7,19 @@
}
},
{
- "path": "pages/my/index",
+ "path": "pages/throughout/index",
"style": {
- "navigationBarTitleText": "我的",
+ "navigationBarTitleText": "通屏+下拉刷新+自定义导航栏",
"enablePullDownRefresh": true,
"backgroundColor": "#23c09c", // 这个背景色要与页面的.top-section的背景图差不多,这样下拉刷新看起来才比较协调
"navigationStyle": "custom"
}
+ },
+ {
+ "path": "pages/my/index",
+ "style": {
+ "navigationBarTitleText": "我的"
+ }
}
],
"globalStyle": {
@@ -29,12 +35,26 @@
}
},
"tabBar": {
+ "color": "#7A7E83",
+ "selectedColor": "#3cc51f",
+ "backgroundColor": "#ffffff",
+ "borderStyle": "black",
+ "height": "50px",
+ "fontSize": "10px",
+ "iconWidth": "24px",
+ "spacing": "3px",
"list": [
{
- "pagePath": "pages/index/index"
+ "pagePath": "pages/index/index",
+ "iconPath": "static/tab-icons/extui.png",
+ "selectedIconPath": "static/tab-icons/extuiHL.png",
+ "text": "首页"
},
{
- "pagePath": "pages/my/index"
+ "pagePath": "pages/throughout/index",
+ "iconPath": "static/tab-icons/template.png",
+ "selectedIconPath": "static/tab-icons/templateHL.png",
+ "text": "通屏"
}
]
},
diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index e506977..b9c4255 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -17,8 +17,8 @@
-
- 去二级页
+
+ 去我的
diff --git a/src/pages/my/index.vue b/src/pages/my/index.vue
index 6d1136d..a37cabe 100644
--- a/src/pages/my/index.vue
+++ b/src/pages/my/index.vue
@@ -1,131 +1,3 @@
-
-
-
-
-
-
-
-
-
-
-
- {{ '我是标题' }}
-
-
-
- 顶部区域
- 可以是标题,也可以是个人中心头像等
- 建议本区域高度不低于200rpx
-
-
- 注意,上面的导航栏渐变效果仅微信端支持,且上面的导航栏无法抽为组件引入使用,否则滚动效果没有了。如果不只是微信小程序使用,可以
- onPageScroll 实现全端效果一样,另外如果是app端,还可以配置 titleNView。参考
- https://uniapp.dcloud.net.cn/tutorial/page.html#onpagescroll 。
-
-
-
-
-
+ 我的
-
-
-
-
diff --git a/src/pages/throughout/index.vue b/src/pages/throughout/index.vue
new file mode 100644
index 0000000..6d1136d
--- /dev/null
+++ b/src/pages/throughout/index.vue
@@ -0,0 +1,131 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ '我是标题' }}
+
+
+
+ 顶部区域
+ 可以是标题,也可以是个人中心头像等
+ 建议本区域高度不低于200rpx
+
+
+ 注意,上面的导航栏渐变效果仅微信端支持,且上面的导航栏无法抽为组件引入使用,否则滚动效果没有了。如果不只是微信小程序使用,可以
+ onPageScroll 实现全端效果一样,另外如果是app端,还可以配置 titleNView。参考
+ https://uniapp.dcloud.net.cn/tutorial/page.html#onpagescroll 。
+
+
+
+
+
+
+
+
+
+
diff --git a/src/static/tab-icons/extui.png b/src/static/tab-icons/extui.png
new file mode 100644
index 0000000..7508e08
Binary files /dev/null and b/src/static/tab-icons/extui.png differ
diff --git a/src/static/tab-icons/extuiHL.png b/src/static/tab-icons/extuiHL.png
new file mode 100644
index 0000000..612b499
Binary files /dev/null and b/src/static/tab-icons/extuiHL.png differ
diff --git a/src/static/tab-icons/template.png b/src/static/tab-icons/template.png
new file mode 100644
index 0000000..409ec9b
Binary files /dev/null and b/src/static/tab-icons/template.png differ
diff --git a/src/static/tab-icons/templateHL.png b/src/static/tab-icons/templateHL.png
new file mode 100644
index 0000000..4018448
Binary files /dev/null and b/src/static/tab-icons/templateHL.png differ