第一次提交:小程序前端最新版本
This commit is contained in:
144
config/roles.js
Normal file
144
config/roles.js
Normal file
@@ -0,0 +1,144 @@
|
||||
/*
|
||||
* 角色配置表 —— 用于动态切换底部 TabBar 展示内容
|
||||
* 每个角色的 tabList 数组元素顺序决定 TabBar 显示顺序
|
||||
* 字段说明:
|
||||
* pagePath : 页面路径(以 pages/ 开头)
|
||||
* text : TabBar 文字
|
||||
* iconPath : 未选中图标(相对路径)
|
||||
* selectedIconPath: 选中图标
|
||||
*/
|
||||
const roles = {
|
||||
// 普通老板(默认)
|
||||
normal: {
|
||||
name: '普通老板',
|
||||
defaultPage: 'pages/index/index',
|
||||
tabList: [
|
||||
{
|
||||
pagePath: 'pages/index/index',
|
||||
text: '商城',
|
||||
iconPath: '/images/zhuye.png',
|
||||
selectedIconPath: '/images/zhuye.png'
|
||||
},
|
||||
{
|
||||
pagePath: 'pages/fenlei/fenlei',
|
||||
text: '分类',
|
||||
iconPath: '/images/fenlei.png',
|
||||
selectedIconPath: '/images/fenlei.png'
|
||||
},
|
||||
{
|
||||
pagePath: 'pages/xiaoxi/xiaoxi',
|
||||
text: '消息',
|
||||
iconPath: '/images/xiaoxi.png',
|
||||
selectedIconPath: '/images/xiaoxi.png'
|
||||
},
|
||||
{
|
||||
pagePath: 'pages/wode/wode',
|
||||
text: '我的',
|
||||
iconPath: '/images/wode.png',
|
||||
selectedIconPath: '/images/wode.png'
|
||||
}
|
||||
]
|
||||
},
|
||||
// 打手
|
||||
dashou: {
|
||||
name: '打手',
|
||||
defaultPage: 'pages/jiedanchi/jiedanchi',
|
||||
tabList: [
|
||||
{
|
||||
pagePath: 'pages/jiedanchi/jiedanchi',
|
||||
text: '接单池',
|
||||
iconPath: '/images/jiedanchi.png',
|
||||
selectedIconPath: '/images/jiedanchi.png'
|
||||
},
|
||||
{
|
||||
pagePath: 'pages/xiaoxi/xiaoxi',
|
||||
text: '消息',
|
||||
iconPath: '/images/xiaoxi.png',
|
||||
selectedIconPath: '/images/xiaoxi.png'
|
||||
},
|
||||
{
|
||||
pagePath: 'pages/dashoudingdan/dashoudingdan',
|
||||
text: '订单',
|
||||
iconPath: '/images/dashoudingdan_icon.png', // 请替换为实际图标
|
||||
selectedIconPath: '/images/dashoudingdan_icon.png'
|
||||
},
|
||||
{
|
||||
pagePath: 'pages/dashouduan/dashouduan',
|
||||
text: '我的',
|
||||
iconPath: '/images/dashouduan_icon.png',
|
||||
selectedIconPath: '/images/dashouduan_icon.png'
|
||||
}
|
||||
]
|
||||
},
|
||||
// 商家
|
||||
shangjia: {
|
||||
name: '商家',
|
||||
defaultPage: 'pages/index/index',
|
||||
tabList: [
|
||||
{
|
||||
pagePath: 'pages/index/index',
|
||||
text: '首页',
|
||||
iconPath: '/images/zhuye.png',
|
||||
selectedIconPath: '/images/zhuye.png'
|
||||
},
|
||||
{
|
||||
pagePath: 'pages/sjdingdan/sjdingdan',
|
||||
text: '订单',
|
||||
iconPath: '/images/sjdingdan_icon.png', // 请替换为实际图标
|
||||
selectedIconPath: '/images/sjdingdan_icon.png'
|
||||
},
|
||||
{
|
||||
pagePath: 'pages/xiaoxi/xiaoxi',
|
||||
text: '消息',
|
||||
iconPath: '/images/xiaoxi.png',
|
||||
selectedIconPath: '/images/xiaoxi.png'
|
||||
},
|
||||
{
|
||||
pagePath: 'pages/shangjiaduan/shangjiaduan',
|
||||
text: '我的',
|
||||
iconPath: '/images/shangjiaduan_icon.png',
|
||||
selectedIconPath: '/images/shangjiaduan_icon.png'
|
||||
}
|
||||
]
|
||||
},
|
||||
// 管事
|
||||
guanshi: {
|
||||
name: '管事',
|
||||
defaultPage: 'pages/guanshiduan/guanshiduan',
|
||||
tabList: [
|
||||
{
|
||||
pagePath: 'pages/xiaoxi/xiaoxi',
|
||||
text: '消息',
|
||||
iconPath: '/images/xiaoxi.png',
|
||||
selectedIconPath: '/images/xiaoxi.png'
|
||||
},
|
||||
{
|
||||
pagePath: 'pages/guanshiduan/guanshiduan',
|
||||
text: '我的',
|
||||
iconPath: '/images/guanshiduan_icon.png',
|
||||
selectedIconPath: '/images/guanshiduan_icon.png'
|
||||
}
|
||||
]
|
||||
},
|
||||
// 组长
|
||||
zuzhang: {
|
||||
name: '组长',
|
||||
defaultPage: 'pages/zuzhangduan/zuzhangduan',
|
||||
tabList: [
|
||||
{
|
||||
pagePath: 'pages/xiaoxi/xiaoxi',
|
||||
text: '消息',
|
||||
iconPath: '/images/xiaoxi.png',
|
||||
selectedIconPath: '/images/xiaoxi.png'
|
||||
},
|
||||
{
|
||||
pagePath: 'pages/zuzhangduan/zuzhangduan',
|
||||
text: '我的',
|
||||
iconPath: '/images/zuzhangduan_icon.png',
|
||||
selectedIconPath: '/images/zuzhangduan_icon.png'
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = { roles };
|
||||
Reference in New Issue
Block a user