6 Star 25 Fork 540

mallcloud/Shopro开源商城(前端)

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
pages.json 12.33 KB
一键复制 编辑 原始数据 按行查看 历史
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
{
"easycom": { //easycom,按需自动注册组件。原则上可以把所有页面引入组件方法删掉,会自动引入。
"autoscan": true,
"custom": {
"shopro-(.*)": "@/components/shopro-$1/shopro-$1.vue",
"uni-(.*)": "@/components/uni-$1/uni-$1.vue"
}
},
"pages": [{
"path": "pages/index/index",
"name": "home",
"title": "首页",
"aliasPath": "/", //对于h5端你必须在首页加上aliasPath并设置为/
"style": {
"navigationBarTitleText": "",
"navigationBarTextStyle": "white",
// "enablePullDownRefresh": true,
"navigationStyle": "custom"
},
"meta": {
"auth": false, //需要登录
"async": true, //是否同步
"title": "首页", //标题
"group": "商城" //分组
}
},
{
"path": "pages/index/category",
"name": "category",
"style": {
"navigationBarTitleText": "分类"
},
"meta": {
"auth": false,
"async": true,
"title": "分类",
"group": "商城"
}
},
{
"path": "pages/index/cart",
"name": "cart",
"style": {
"navigationBarTitleText": "购物车"
},
"meta": {
"auth": false,
"async": true,
"title": "购物车",
"group": "商城"
}
},
{
"path": "pages/index/user",
"name": "user",
"style": {
"navigationBarTitleText": "我的",
"navigationStyle": "custom"
},
"meta": {
"auth": false,
"async": true,
"title": "我的",
"group": "用户"
}
},
{
"path": "pages/index/view",
"name": "view",
"style": {
"navigationBarTitleText": ""
},
"meta": {
"auth": false,
"async": true,
"title": "自定义页面",
"group": "自定义页面"
}
}
],
// 分包加载
// 不要接受编辑器的组件放置分包建议。因为那些不是在单个分包内使用的,也不知道为啥老报错。
"subPackages": [{
"root": "pages/activity",
"pages": [{
"path": "groupon/list",
"style": {
"navigationBarTitleText": "今日必拼"
},
"meta": {
"auth": false,
"async": true,
"title": "今日必拼",
"group": "活动"
}
},
{
"path": "seckill/list",
"style": {
"navigationBarTitleText": "限时秒杀"
},
"meta": {
"auth": false,
"async": true,
"title": "限时秒杀",
"group": "活动"
}
},
{
"path": "groupon/detail",
"style": {
"navigationBarTitleText": "拼团详情"
},
"meta": {
"auth": true,
"async": false
}
},
{
"path": "groupon/my-groupon",
"style": {
"navigationBarTitleText": "我的拼团"
},
"meta": {
"auth": true,
"async": true,
"title": "我的拼团",
"group": "活动"
}
}
]
},
{
"root": "pages/app",
"pages": [
// #ifdef MP-WEIXIN
{
"path": "live/list",
"style": {
"navigationBarTitleText": "直播"
},
"meta": {
"auth": false,
"async": true,
"title": "直播列表",
"group": "应用"
}
},
// #endif
{
"path": "coupon/list",
"style": {
"navigationBarTitleText": "优惠券"
},
"meta": {
"auth": true,
"async": true,
"title": "优惠劵中心",
"group": "优惠券"
}
},
{
"path": "coupon/detail",
"style": {
"navigationBarTitleText": "优惠劵详情",
"navigationStyle": "custom"
},
"meta": {
"auth": true,
"async": true,
"title": "优惠劵详情",
"group": "优惠券"
}
},
{
"path": "score/list",
"style": {
"navigationBarTitleText": "积分商城"
},
"meta": {
"auth": false,
"async": true,
"title": "积分商城",
"group": "应用"
}
}
]
},
{
"root": "pages/goods",
"pages": [
// 商品goods------start
{
"path": "list",
"style": {
"navigationBarTitleText": "商品列表",
"navigationStyle": "custom"
},
"meta": {
"auth": false,
"async": true,
"title": "商品列表",
"group": "商城"
}
},
{
"path": "comment-list",
"style": {
"navigationBarTitleText": "商品评价"
},
"meta": {
"auth": false,
"async": false
}
},
{
"path": "detail/index",
"style": {
"navigationBarTitleText": "商品详情"
},
"meta": {
"auth": false,
"async": true,
"title": "商品详情",
"group": "商城"
}
}
// 商品goods------end
]
},
{
"root": "pages/order",
"pages": [
// 订单order------start
{
"path": "confirm",
"style": {
"navigationBarTitleText": "确认订单"
},
"meta": {
"auth": true,
"async": false
}
},
{
"path": "detail",
"style": {
"navigationBarTitleText": "订单详情"
},
"meta": {
"auth": true,
"async": false
}
},
{
"path": "list",
"name": "orderList",
"style": {
"navigationBarTitleText": "订单列表"
},
"meta": {
"auth": true,
"async": true,
"title": "我的订单",
"group": "用户"
}
},
{
"path": "add-comment",
"style": {
"navigationBarTitleText": "发表评论"
},
"meta": {
"auth": true,
"async": false
}
},
{
"path": "express",
"name": "expressList",
"style": {
"navigationBarTitleText": "物流信息"
},
"meta": {
"auth": true,
"async": false
}
},
{
"path": "refund",
"style": {
"navigationBarTitleText": "退款"
},
"meta": {
"auth": true,
"async": false
}
},
{
"path": "payment/method",
"style": {
"navigationBarTitleText": "支付方式"
},
"meta": {
"auth": true,
"async": false
}
},
{
"path": "payment/result",
"style": {
"navigationBarTitleText": "支付结果"
},
"meta": {
"auth": false,
"async": false
}
}
// 定单 order ------end
]
},
{
"root": "pages/public",
"pages": [
// 公共public ------ start
{
"path": "richtext",
"style": {
"navigationBarTitleText": "" //公共富文本
},
"meta": {
"auth": false,
"async": true,
"title": "富文本",
"group": "通用"
}
},
{
"path": "webview",
"style": {
"navigationBarTitleText": "" //外部链接
},
"meta": {
}
},
{
"path": "feedback",
"style": {
"navigationBarTitleText": "意见反馈"
},
"meta": {
"auth": true,
"async": true,
"title": "意见反馈",
"group": "商城"
}
},
{
"path": "forgot",
"style": {
"navigationBarTitleText": "找回密码",
"navigationStyle": "custom"
},
"meta": {
"auth": false,
"async": true,
"title": "找回密码",
"group": "用户"
}
},
{
"path": "login",
"name": "login",
"style": {
"navigationBarTitleText": "登录",
"navigationStyle": "custom"
},
"meta": {
"auth": false,
"async": true,
"title": "登录",
"group": "用户"
}
},
{
"path": "register",
"style": {
"navigationBarTitleText": "注册",
"navigationStyle": "custom"
},
"meta": {
"auth": false,
"async": true,
"title": "注册",
"group": "用户"
}
},
{
"path": "poster/index",
"style": {
"navigationBarTitleText": "海报"
},
"meta": {
"auth": false,
"async": true,
"title": "海报",
"group": "通用"
}
},
{
"path": "faq",
"style": {
"navigationBarTitleText": "常见问题"
},
"meta": {
"auth": false,
"async": true,
"title": "常见问题",
"group": "通用"
}
}
// 公共public ------ end
]
},
{
"root": "pages/user",
"pages": [
// 我的user ------start
{
"path": "log",
"style": {
"navigationBarTitleText": "浏览足迹"
},
"meta": {
"auth": true,
"async": true,
"title": "浏览足迹",
"group": "用户"
}
},
{
"path": "sign/index",
"style": {
"navigationBarTitleText": "签到中心"
},
"meta": {
"auth": true,
"async": true,
"title": "签到中心",
"group": "通用"
}
},
{
"path": "address/edit",
"style": {
"navigationBarTitleText": "编辑地址"
},
"meta": {
"auth": true,
"async": false
}
},
{
"path": "address/list",
"style": {
"navigationBarTitleText": "收货地址"
},
"meta": {
"auth": true,
"async": true,
"title": "收货地址",
"group": "用户"
}
},
{
"path": "set",
"style": {
"navigationBarTitleText": "系统设置"
},
"meta": {
"auth": true,
"async": true,
"title": "系统设置",
"group": "通用"
}
}, {
"path": "edit-password",
"style": {
"navigationBarTitleText": "修改密码"
},
"meta": {
"auth": true,
"async": true,
"title": "修改密码",
"group": "用户"
}
},
{
"path": "favorite",
"style": {
"navigationBarTitleText": "收藏"
},
"meta": {
"auth": true,
"async": true,
"title": "我的收藏",
"group": "用户"
}
},
{
"path": "info",
"style": {
"navigationBarTitleText": "个人信息"
},
"meta": {
"auth": true,
"async": true,
"title": "个人信息",
"group": "用户"
}
},
{
"path": "edit-phone",
"style": {
"navigationBarTitleText": "修改手机号"
},
"meta": {
"auth": true,
"async": true,
"title": "修改手机号",
"group": "用户"
}
},
{
"path": "wallet/index",
"style": {
"navigationBarTitleText": "我的钱包",
"navigationStyle": "custom"
},
"meta": {
"auth": true,
"async": true,
"title": "我的钱包",
"group": "用户"
}
},
{
"path": "wallet/bind-bank",
"style": {
"navigationBarTitleText": "绑定银行卡"
},
"meta": {
"auth": true,
"async": true,
"title": "绑定银行卡",
"group": "用户"
}
},
{
"path": "wallet/log",
"style": {
"navigationBarTitleText": "钱包明细"
},
"meta": {
"auth": true,
"async": true,
"title": "钱包明细",
"group": "用户"
}
},
{
"path": "wallet/score-balance",
"style": {
"navigationBarTitleText": "积分",
"navigationStyle": "custom"
},
"meta": {
"auth": true,
"async": true,
"title": "我的积分",
"group": "用户"
}
}
// 我的user ------ end
]
}
],
// 分包预加载规则
// "preloadRule": {
// "pages/index/index": {
// "network": "all",
// "packages": ["__APP__"]
// }
// },
// 默认导航栏样式
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#fff",
"backgroundColor": "#fff",
"navigationStyle": "default" //默认是default,即带有原生导航栏。custom,取消导航栏。
},
// 默认底部导航栏
"tabBar": {
"color": "#333",
"selectedColor": "#a8700d",
"backgroundColor": "#ffffff",
"borderStyle": "black",
"list": [{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "static/imgs/tabbar/tab_home.png",
"selectedIconPath": "/static/imgs/tabbar/tab_home_sel.png"
},
{
"pagePath": "pages/index/category",
"text": "分类",
"iconPath": "static/imgs/tabbar/tab_type.png",
"selectedIconPath": "static/imgs/tabbar/tab_type_sel.png"
},
{
"pagePath": "pages/index/cart",
"text": "购物车",
"iconPath": "static/imgs/tabbar/tab_cart.png",
"selectedIconPath": "static/imgs/tabbar/tab_cart_sel.png"
},
{
"pagePath": "pages/index/user",
"text": "我的",
"iconPath": "static/imgs/tabbar/tab_my.png",
"selectedIconPath": "static/imgs/tabbar/tab_my_sel.png"
}
]
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mallcloud/shopro.git
git@gitee.com:mallcloud/shopro.git
mallcloud
shopro
Shopro开源商城(前端)
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385