1 Star 0 Fork 30

caozhiyun / 分享论坛(uni-app+uView)

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pages.json 5.51 KB
一键复制 编辑 原始数据 按行查看 历史
MrThinco 提交于 2021-11-14 22:17 . first commit
{
"easycom": { // 配置easycom组件模式
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
},
"pages": [ //pages数组中第一项表示应用启动页
{ // 首页
"path": "pages/index/index",
"style":
{
"app-plus":
{
"bounce":"none",
"scrollIndicator":"none", // 隐藏滚动条
// 导航栏
"titleNView":
{
// 搜索框
"searchInput":
{
"align":"center",
"backgroundColor":"#F7F7F7",
"borderRadius":"20px",
"placeholder":"搜索新鲜事",
"disabled":true
},
// 按钮
"buttons":[
// 左边
{
"float":"left",
"color":"#01906c",
"colorPressed":"#6ec679",
"text":"\ue609",
"fontSize":"30px",
"fontSrc" : "/static/font/iconfont.ttf"
},
// 右边
{
"float":"right",
"color":"#01906c",
"colorPressed":"#6ec679",
"text":"\ue708",
"fontSize":"30px",
"fontSrc" : "/static/font/iconfont.ttf"
}
]
}
}
}
}
,{ // 动态
"path" : "pages/news/news",
"style" :
{
"enablePullDownRefresh": false,
"app-plus": {
"bounce":"none",
"titleNView":false
}
}
}
,{ // 动态-话题-分类
"path" : "pages/news/news-topic-nav",
"style" :
{
"navigationBarTitleText": "话题分类",
"enablePullDownRefresh": false,
"app-plus": {
"bounce":"none"
}
}
}
,{ // 动态-话题-详情
"path" : "pages/news/news-topic-detail",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"app-plus": {
"scrollIndicator":"none", // 隐藏滚动条
"titleNView":{
"type":"transparent", // 透明渐变
"buttons":[
{
"type":"menu"
}
]
}
}
}
}
,{ // 小纸条
"path" : "pages/paper/paper",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
,{ // 我的
"path" : "pages/mine/mine",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
,{ // 搜索
"path" : "pages/search/search",
"style":
{
"app-plus":
{
"scrollIndicator":"none", // 隐藏滚动条
// 导航栏
"titleNView": {
"autoBackButton":false, // 标题栏控件是否显示左侧返回按钮
// 搜索框
"searchInput":
{
"align":"left",
"backgroundColor":"#F7F7F7",
"borderRadius":"20px",
"placeholder":"搜索新鲜事",
"disabled":false
},
// 按钮
"buttons":[
// 右边
{
"float":"right",
"color":"#82848a",
"colorPressed":"#c8c9cc",
"text":"搜索",
"fontSize":"18px"
}
]
}
}
}
}
,{ // 发布
"path" : "pages/index/release",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"app-plus": {
"titleNView":false // 禁用原生导航栏
}
}
}
],
// 全局样式
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "BBS",
"navigationBarBackgroundColor": "#FFFFFF",
"backgroundColor": "#FFFFFF"
},
// 底部标签栏
"tabBar": {
"color":"#ADADAD", // tab 上的文字颜色
"selectedColor":"#278E6F", // tab 上的文字选中时的颜色
"backgroundColor":"#FFFFFF", // tab 的背景颜色
"borderStyle":"black", // tabbar 上边框的颜色
"list":[
{
"pagePath":"pages/index/index",
"text":"论坛",
"iconPath":"/static/img/tabbar/index.png",
"selectedIconPath":"/static/img/tabbar/index-ed.png"
},
{
"pagePath":"pages/news/news",
"text":"动态",
"iconPath":"/static/img/tabbar/news.png",
"selectedIconPath":"/static/img/tabbar/news-ed.png"
},
{
"pagePath":"pages/paper/paper",
"text":"小纸条",
"iconPath":"/static/img/tabbar/paper.png",
"selectedIconPath":"/static/img/tabbar/paper-ed.png"
},
{
"pagePath":"pages/mine/mine",
"text":"我的",
"iconPath":"/static/img/tabbar/mine.png",
"selectedIconPath":"/static/img/tabbar/mine-ed.png"
}
]
}
// "condition": { //模式配置,仅开发期间生效
// "current": 0, //当前激活的模式(list 的索引项)
// "list": [{
// "name": "", //模式名称
// "path": "pages/search/search", //启动页面,必选
// "query": "" //启动参数,在页面的onLoad函数里面得到
// }]
// }
}
1
https://gitee.com/caozhiyun/share-bbs.git
git@gitee.com:caozhiyun/share-bbs.git
caozhiyun
share-bbs
分享论坛(uni-app+uView)
master

搜索帮助