注意事项一:
wx.setTabBarBadge({index: 2,text: '1'})
wx.showTabBarRedDot({index: 2,text: '1'})
想在小程序模拟器上有显示效果,上面方面必须写在
tabBar中pagePath的页面上
注意事项二:
wx.showActionSheet({
itemList: ['A', 'B', 'C'],
success (res) { console.log(res.tapIndex) },
fail (res) {console.log(res.errMsg)}
})
效果如图
注意事项三:
button按钮颜色,小程序默认颜色绿色如果要其他颜色就只能用view不能用button,浏览器、手机移动端默认蓝色
注意事项四:
cover-view不可嵌套
正确写法
错误写法
注意事项五:
地图标记弹框内容换行 如图:
注意事项六:
小程序右上角的胶囊颜色修改
修改效果:
"navigationBarTextStyle":"white"
"navigationBarTextStyle":"black"