加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pages.json 7.21 KB
一键复制 编辑 原始数据 按行查看 历史
lostCat 提交于 2023-02-17 13:30 . 2.17
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/menu",
"style": {
// #ifdef H5
"navigationStyle": "custom",
// #endif
"enablePullDownRefresh": true,
"navigationBarTitleText": "点餐",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/take-foods/take-foods",
"style": {
"navigationBarTitleText": "取餐",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff",
"enablePullDownRefresh": true
}
}, {
"path": "pages/mine/mine",
"style": {
"navigationBarTitleText": "个人中心",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
}
}
],
"subPackages": [{
"root": "pages/components",
"pages": [{
"path": "pages/mine/service",
"style": {
"navigationBarTitleText": "我的服务",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/mine/content",
"style": {
"navigationBarTitleText": "内容",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/pay/pay",
"style": {
"navigationBarTitleText": "uniDrink",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/remark/remark",
"style": {
"navigationBarTitleText": "uniDrink",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/packages/index",
"style": {
"navigationBarTitleText": "可用优惠券",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff",
"enablePullDownRefresh": true
}
}, {
"path": "pages/balance/balance",
"style": {
"navigationBarTitleText": "会员储值",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/login/login",
"style": {
"navigationBarTitleText": "登录",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
}
},
{
"path": "pages/login/logout",
"style": {
"navigationBarTitleText": "退出登录"
}
},
{
"path": "pages/address/address",
"style": {
"navigationBarTitleText": "我的地址",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/address/add",
"style": {
"navigationBarTitleText": "uniDrink",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/integrals/integrals",
"style": {
"navigationStyle": "custom",
"onReachBottomDistance": 50
}
}, {
"path": "pages/attendance/attendance",
"style": {
"navigationStyle": "custom"
}
}, {
"path": "pages/orders/orders",
"style": {
"navigationBarTitleText": "历史订单",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff",
"enablePullDownRefresh": true,
"onReachBottomDistance": 50
}
}, {
"path": "pages/orders/detail",
"style": {
"navigationBarTitleText": "订单详情",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/mine/member-code",
"style": {
"navigationBarTitleText": "会员码",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/coupons/coupons",
"style": {
"enablePullDownRefresh": true,
"navigationBarTitleText": "我的卡券",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/mine/userinfo",
"style": {
"navigationBarTitleText": "用户信息",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
}
},
{
"path": "pages/integrals/flow",
"style": {
"navigationBarTitleText": "积分明细",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/review/review",
"style": {
"navigationBarTitleText": "uniDrink",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/activities/invite",
"style": {
"navigationBarTitleText": "uniDrink",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/shop/shop",
"style": {
"navigationBarTitleText": "店铺",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/balance/bill",
"style": {
"navigationBarTitleText": "账单",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/scoreproduct/list",
"style": {
"navigationBarTitleText": "积分商城",
"enablePullDownRefresh": true
}
}, {
"path": "pages/scoreproduct/detail",
"style": {
"navigationBarTitleText": "产品详情",
"enablePullDownRefresh": true
}
}, {
"path": "pages/scoreproduct/order",
"style": {
"navigationBarTitleText": "订单列表",
"enablePullDownRefresh": true
}
}, {
"path": "pages/scoreproduct/orderDetail",
"style": {
"navigationBarTitleText": "订单详情",
"enablePullDownRefresh": true
}
}
]
}],
// "preloadRule": {
// "pages/example/components": {
// "network": "all",
// "packages": ["pages/components"]
// }
// },
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
},
"tabBar": {
"color": "#919293",
"selectedColor": "#1296db",
"backgroundColor": "#fff",
"borderStyle": "black",
"list": [{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "static/images/tabBar/index.png",
"selectedIconPath": "static/images/tabBar/index_selected.png"
},
{
"pagePath": "pages/menu/menu",
"text": "点餐",
"iconPath": "static/images/tabBar/drink1.png",
"selectedIconPath": "static/images/tabBar/drink_selected1.png"
}, {
"pagePath": "pages/take-foods/take-foods",
"text": "取餐",
"iconPath": "static/images/tabBar/take.png",
"selectedIconPath": "static/images/tabBar/take_selected.png"
}, {
"pagePath": "pages/mine/mine",
"text": "我的",
"iconPath": "static/images/tabBar/mine.png",
"selectedIconPath": "static/images/tabBar/mine_selected.png"
}
]
},
"easycom": {
"autoscan": true,
"custom": {
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
}
},
"condition" : { //模式配置,仅开发期间生效
"current": 0, //当前激活的模式(list 的索引项)
"list": [
{
"name": "", //模式名称
"path": "", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
}
]
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化