V2版本底栏切换时会有轻微闪烁,以下提供切换V1版本的方法:
1、转到网站后台 - SaleDash - 基本设置 - 模板装修,底栏装修版本改为V1,保存
2、微信开发者工具,编辑小程序文件app.js
,data中useCustomTabbar
,true
改为false
3、微信开发者工具,编辑小程序文件app.json
,将以下代码添加到"plugins": {
这行前面
以下为代码:
- "tabBar": {
- "color": "#ffffff",
- "selectedColor": "#ffffff",
- "backgroundColor": "#ffffff",
- "borderStyle": "black",
- "list": [{
- "pagePath": "pages/index/index",
- "iconPath": "/images/tabbar-empty.png",
- "selectedIconPath": "/images/tabbar-empty.png",
- "text": "首页"
- }, {
- "pagePath": "pages/category/category",
- "iconPath": "/images/tabbar-empty.png",
- "selectedIconPath": "/images/tabbar-empty.png",
- "text": "分类"
- }, {
- "pagePath": "pages/post-list/post-list",
- "iconPath": "/images/tabbar-empty.png",
- "selectedIconPath": "/images/tabbar-empty.png",
- "text": "资讯"
- }, {
- "pagePath": "pages/cart/cart",
- "iconPath": "/images/tabbar-empty.png",
- "selectedIconPath": "/images/tabbar-empty.png",
- "text": "购物车"
- }, {
- "pagePath": "pages/my/my",
- "iconPath": "/images/tabbar-empty.png",
- "selectedIconPath": "/images/tabbar-empty.png",
- "text": "我的"
- }]
- },