代码拉取完成,页面将自动刷新
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/home/home",
"style": {
"navigationStyle": "custom", // 隐藏导航栏 自定义
"navigationBarTextStyle": "white", // 导航栏信号电量等改为白色
"navigationBarTitleText": "首页",
"enablePullDownRefresh": false
}
},
{
"path": "pages/cate/cate",
"style": {
"navigationBarTitleText": "分类",
"enablePullDownRefresh": false
}
},
{
"path": "pages/cart/cart",
"style": {
"navigationBarTitleText": "购物车",
"enablePullDownRefresh": false
}
},
{
"path" : "pages/cart/cartTwo",
"style" :
{
"navigationBarTitleText" : "购物车",
"enablePullDownRefresh" : false
}
},
{
"path": "pages/my/my",
"style": {
"navigationStyle": "custom", // 隐藏导航栏 自定义
"navigationBarTextStyle": "white", // 导航栏信号电量等改为白色
"navigationBarTitleText": "我的",
"enablePullDownRefresh": false
}
},
{
"path" : "pages/hot/hot",
"style" :
{
"navigationBarTitleText" : "热门推荐",
"enablePullDownRefresh" : false
}
},
{
"path" : "pages/goods/goods",
"style" :
{
"navigationBarTitleText" : "商品详情",
"enablePullDownRefresh" : false
}
},
{
"path" : "pages/login/login",
"style" :
{
"navigationBarTitleText" : "登录",
"enablePullDownRefresh" : false
}
}
],
// 分包
"subPackages": [{
"root": "subpkg",
"pages": [
{
"path" : "settings/settings",
"style": {
"navigationBarTitleText": "设置",
"enablePullDownRefresh": false
}
},
{
"path" : "profile/profile",
"style" :
{
"navigationStyle": "custom", // 隐藏导航栏 自定义
"navigationBarTextStyle": "white",
"navigationBarTitleText" : "个人信息",
"enablePullDownRefresh" : false
}
},
{
"path" : "address/address",
"style" :
{
"navigationBarTitleText" : "地址管理",
"enablePullDownRefresh" : false
}
},
{
"path" : "addressForm/addressForm",
"style" :
{
"navigationBarTitleText" : "",
"enablePullDownRefresh" : false
}
},
{
"path" : "create/create",
"style" :
{
"navigationBarTitleText" : "创建订单",
"enablePullDownRefresh" : false
}
},
{
"path" : "detail/detail",
"style" :
{
"navigationStyle": "custom",
"navigationBarTitleText" : "订单详情",
"enablePullDownRefresh" : false
}
},
{
"path" : "payment/payment",
"style" :
{
"navigationBarTitleText" : "支付结果",
"enablePullDownRefresh" : false
}
},
{
"path" : "list/list",
"style" :
{
"navigationBarTitleText" : "订单列表",
"enablePullDownRefresh" : false
}
}
]
}],
// 分包预下载规则 (打开my页面的时候,所有网络情况,都预下载subpkg分包里面的页面)
"preloadRule": {
"pages/my/my": {
"network": "all",
"packages": ["subpkg"]
}
},
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "商城",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
},
"tabBar": {
"selectedColor": "#00c3a0",
"list": [{
"pagePath": "pages/home/home",
"text": "首页",
"iconPath": "static/icons/home.png",
"selectedIconPath": "static/icons/home-active.png"
},
{
"pagePath": "pages/cate/cate",
"text": "分类",
"iconPath": "static/icons/cate.png",
"selectedIconPath": "static/icons/cate-active.png"
},
{
"pagePath": "pages/cart/cart",
"text": "购物车",
"iconPath": "static/icons/cart.png",
"selectedIconPath": "static/icons/cart-active.png"
},
{
"pagePath": "pages/my/my",
"text": "我的",
"iconPath": "static/icons/my.png",
"selectedIconPath": "static/icons/my-active.png"
}
]
},
// 只要组件安装在项目的 components 目录下,并符合 components/组件名称/组件名称.vue 目录结构。就可以不用引用、注册,直接在页面中使用。
// 组件自动引入规则
// "easycom": {
// // 是否开启自动引入
// "autoscan": true,
// // 以正则的方式完成引入
// "custom": {
// // 以 Xtx 开头的组件,在 components 目录中查找
// "^Xtx(.*)": "@/components/Xtx$1.vue"
// }
// },
"uniIdRouter": {}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。