如图类似的

微信小程序小红点未读消息如何实现?

这样的需求还挺多的,那么如何实现呢?

微信小程序小红点未读消息如何实现?

data: {

userInfo: {},

projectSource: 'https://github.com/liuxuanqiang/wechat-weapp-mall',

userListInfo: [ {

icon: '../../images/iconfont-dingdan.png',

text: '我的订单',

isunread: true,

unreadNum: 2

}, {

icon: '../../images/iconfont-card.png',

text: '我的代金券',

isunread: false,

unreadNum: 2

}, {

icon: '../../images/iconfont-icontuan.png',

text: '我的拼团',

isunread: true,

unreadNum: 1

}, {

icon: '../../images/iconfont-shouhuodizhi.png',

text: '收货地址管理'

}, {

icon: '../../images/iconfont-kefu.png',

text: '联系客服'

}, {

icon: '../../images/iconfont-help.png',

text: '常见问题'

}]

},

 

这些数据从服务器获取后,setData

 

文章来源:刘俊涛的博客

欢迎关注,有问题一起学习欢迎留言、评论。

相关文章:

  • 2021-06-15
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
  • 2022-02-21
  • 2021-08-25
  • 2021-12-05
  • 2021-12-05
猜你喜欢
  • 2022-01-07
  • 2023-01-14
  • 2021-11-03
  • 2021-05-09
  • 2022-01-08
  • 2021-04-11
相关资源
相似解决方案