| | |
| | | console.log('App Launch')
|
| | | },
|
| | | onShow: function() {
|
| | | console.log('App Show')
|
| | | //console.log('App Show')
|
| | |
|
| | | },
|
| | | onHide: function() {
|
| | | console.log('App Hide')
|
| | | //console.log('App Hide')
|
| | | }, |
| | | methods:{ |
| | | |
| | |
| | | },
|
| | | mounted() {
|
| | | var i = 0;
|
| | | setInterval(function() {
|
| | | i++
|
| | | if (i % 2 == 0) {
|
| | | uni.showTabBarRedDot({
|
| | | index: 1
|
| | | })
|
| | | } else {
|
| | | uni.hideTabBarRedDot({
|
| | | index: 1
|
| | | })
|
| | | }
|
| | | }, 3000)
|
| | | // setInterval(function() {
|
| | | // i++
|
| | | // if (i % 2 == 0) {
|
| | | // uni.showTabBarRedDot({
|
| | | // index: 1
|
| | | // })
|
| | | // } else {
|
| | | // uni.hideTabBarRedDot({
|
| | | // index: 1
|
| | | // })
|
| | | // }
|
| | | // }, 3000)
|
| | |
|
| | |
|
| | |
|