工具版本:wechat_devtools_1.06.2412050_win32_x64
问题1:代码片段分享在UI上找不到,不知道是不是版本问题,我的长这样
问题2:tabBar显示不出来,就是很基础的一个操作,帮忙看看是不是代码问题
{
"pages": [
"pages/index/index",
"pages/category/category",
"pages/cart/cart",
"pages/user/user"
],
"window": {
"navigationBarTextStyle": "black",
"navigationStyle": "custom"
},
"tabBar": {
"color": "#252933",
"custom": true,
"selectedColor": "#FF734C",
"backgroundColor": "#ffffff",
"borderStyle": "black",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "static/tabbar/home-icon1.png",
"selectedIconPath": "static/tabbar/home-icon1-1.png"
},
{
"pagePath": "pages/category/category",
"text": "分类",
"iconPath": "static/tabbar/home-icon2.png",
"selectedIconPath": "static/tabbar/home-icon2-2.png"
},
{
"pagePath": "pages/cart/cart",
"text": "购物车",
"iconPath": "static/tabbar/home-icon3.png",
"selectedIconPath": "static/tabbar/home-icon3-3.png"
},
{
"pagePath": "pages/user/user",
"text": "我的",
"iconPath": "static/tabbar/home-icon4.png",
"selectedIconPath": "static/tabbar/home-icon4-4.png"
}
]
},
"sitemapLocation": "sitemap.json"
}
你开启了自定义tabBar,把这个删掉就可以了
好嘞,大佬新年快乐,教学串了