- 在cmsWebsiteField模型中新增deliveryText、guaranteeText和openComments三个字段 - 创建useConfig自定义Hook用于获取和管理网站配置数据 - 更新Banner组件中的默认轮播图高度从200px调整为300px- 修改Banner组件中热门商品列表项的右边距样式 - 在ArticleList组件中为map函数添加类型注解 - 移除IsDealer组件中旧的配置获取逻辑,改用新的useConfig Hook - 删除src/pages/user_bak目录下的所有旧版用户相关组件文件 - 删除src/pages/user_bak目录下的配置文件和样式文件
150 lines
3.2 KiB
TypeScript
150 lines
3.2 KiB
TypeScript
export default {
|
|
pages: [
|
|
'pages/index/index',
|
|
'pages/cart/cart',
|
|
'pages/find/find',
|
|
'pages/user/user',
|
|
'pages/category/index'
|
|
],
|
|
"subpackages": [
|
|
{
|
|
"root": "passport",
|
|
"pages": [
|
|
"login",
|
|
"register",
|
|
"forget",
|
|
"setting",
|
|
"agreement",
|
|
"sms-login",
|
|
'qr-login/index',
|
|
'qr-confirm/index',
|
|
'unified-qr/index'
|
|
]
|
|
},
|
|
{
|
|
"root": "cms",
|
|
"pages": [
|
|
'category/index',
|
|
"detail/index"
|
|
]
|
|
},
|
|
{
|
|
"root": "coupon",
|
|
"pages": [
|
|
"index"
|
|
]
|
|
},
|
|
{
|
|
"root": "user",
|
|
"pages": [
|
|
"order/order",
|
|
"order/logistics/index",
|
|
"order/evaluate/index",
|
|
"order/refund/index",
|
|
"order/progress/index",
|
|
"company/company",
|
|
"profile/profile",
|
|
"setting/setting",
|
|
"userVerify/index",
|
|
"address/index",
|
|
"address/add",
|
|
"address/wxAddress",
|
|
"help/index",
|
|
"about/index",
|
|
"wallet/wallet",
|
|
"coupon/index",
|
|
"points/points",
|
|
"gift/index",
|
|
"gift/redeem",
|
|
"gift/detail",
|
|
"store/verification",
|
|
"theme/index",
|
|
"poster/poster",
|
|
"chat/conversation/index",
|
|
"chat/message/index",
|
|
"chat/message/add",
|
|
"chat/message/detail"
|
|
]
|
|
},
|
|
{
|
|
"root": "dealer",
|
|
"pages": [
|
|
"index",
|
|
"apply/add",
|
|
"withdraw/index",
|
|
"orders/index",
|
|
"team/index",
|
|
"qrcode/index",
|
|
"invite-stats/index",
|
|
"info"
|
|
]
|
|
},
|
|
{
|
|
"root": "shop",
|
|
"pages": [
|
|
'category/index',
|
|
'orderDetail/index',
|
|
'goodsDetail/index',
|
|
'orderConfirm/index',
|
|
'orderConfirmCart/index',
|
|
'comments/index',
|
|
'search/index']
|
|
},
|
|
{
|
|
"root": "admin",
|
|
"pages": [
|
|
"index",
|
|
"article/index",
|
|
]
|
|
}
|
|
],
|
|
window: {
|
|
backgroundTextStyle: 'dark',
|
|
navigationBarBackgroundColor: '#fff',
|
|
navigationBarTitleText: 'WeChat',
|
|
navigationBarTextStyle: 'black'
|
|
},
|
|
tabBar: {
|
|
custom: false,
|
|
color: "#8a8a8a",
|
|
selectedColor: "#0e932e",
|
|
backgroundColor: "#ffffff",
|
|
list: [
|
|
{
|
|
pagePath: "pages/index/index",
|
|
iconPath: "assets/tabbar/home.png",
|
|
selectedIconPath: "assets/tabbar/home-active.png",
|
|
text: "首页",
|
|
},
|
|
{
|
|
pagePath: "pages/category/index",
|
|
iconPath: "assets/tabbar/category.png",
|
|
selectedIconPath: "assets/tabbar/category-active.png",
|
|
text: "基地生活",
|
|
},
|
|
{
|
|
pagePath: "pages/cart/cart",
|
|
iconPath: "assets/tabbar/cart.png",
|
|
selectedIconPath: "assets/tabbar/cart-active.png",
|
|
text: "购物车",
|
|
},
|
|
{
|
|
pagePath: "pages/user/user",
|
|
iconPath: "assets/tabbar/user.png",
|
|
selectedIconPath: "assets/tabbar/user-active.png",
|
|
text: "我的",
|
|
},
|
|
],
|
|
},
|
|
requiredPrivateInfos: [
|
|
"getLocation",
|
|
"chooseLocation",
|
|
"chooseAddress"
|
|
],
|
|
permission: {
|
|
"scope.userLocation": {
|
|
"desc": "你的位置信息将用于小程序位置接口的效果展示"
|
|
}
|
|
}
|
|
}
|