- wx.setTabbarItem与wx.setTabbarStyle真机测试不执行?
async onLaunch() { const cart = new Cart() if (!cart.isEmpty()) { wx.setTabBarBadge({ index: 2, text: String(cart.getCartItemTotalSkuCount()) }) } const token = new Token() await token.checkOrGet() const isSuperMember = await IStore.checkIsSuperMember() if (isSuperMember) { wx.setTabBarItem({ index: 4, text: '我的', iconPath: '/images/tabbar/my@dis.png', selectedIconPath: imagePath.tangerineTabbarVip, success: () => { console.log('setTabbarItemSuccess') } }) wx.setTabBarStyle({ color: '#333333', selectedColor: '#B78E61', backgroundColor: '#FFF7EB', success: () => { console.log('setTabbarStyleSuccess') } }) } this.checkUpdate() },
01-20 - 小程序使用自定义字体DIN Condensed,安卓机显示不了?
[图片] 小程序使用了自定义字体文件,然后通过字体转化网站将字体文件转成了base64,并按教程将生成后的文件中的stylesheet.css文件内容粘贴到小程序中供使用,但是开发者工具和ios能正常显示,安卓机显示不出来
2023-10-07