[小程序] [原创] 模板装修扩展切换V1版本底栏装修教程
V2版本底栏切换时会有轻微闪烁,以下提供切换V1版本的方法:
1、转到网站后台 - SaleDash - 基本设置 - 模板装修,底栏装修版本改为V1,保存
2、微信开发者工具,编辑小程序文件app.js
,data中useCustomTabbar
,true
改为false
3、微信开发者工具,编辑小程序文件app.json
,将以下代码添加到"plugins": {
这行前面
以下为代码:
JSON
"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": "我的" }] },
版权声明:本文为原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
本文链接:https://www.qwqoffice.com/article.php?mod=view&tid=83
本文链接:https://www.qwqoffice.com/article.php?mod=view&tid=83