抽奖增加领取
This commit is contained in:
46
App.vue
46
App.vue
@@ -274,30 +274,32 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
setInterval(d => { //定时器,定时去调取聊天未读消息
|
||||
let userId = uni.getStorageSync('userId')
|
||||
if (userId) {
|
||||
this.$Request.getT('/app/message/selectMessageCount').then(res => {
|
||||
if (res.code === 0) {
|
||||
let num = res.data
|
||||
uni.setStorageSync('numCount', num)
|
||||
if (num == 0) {
|
||||
uni.removeTabBarBadge({
|
||||
index: 3
|
||||
})
|
||||
} else {
|
||||
uni.setTabBarBadge({
|
||||
index: 3,
|
||||
text: num + ''
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}, 3000);
|
||||
// setInterval(d => { //定时器,定时去调取聊天未读消息
|
||||
// let userId = uni.getStorageSync('userId')
|
||||
// if (userId) {
|
||||
// this.$Request.getT('/app/message/selectMessageCount').then(res => {
|
||||
// if (res.code === 0) {
|
||||
// let num = res.data
|
||||
// uni.setStorageSync('numCount', num)
|
||||
// if (num == 0) {
|
||||
// uni.removeTabBarBadge({
|
||||
// index: 3
|
||||
// })
|
||||
// } else {
|
||||
// uni.setTabBarBadge({
|
||||
// index: 3,
|
||||
// text: num + ''
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// }, 3000);
|
||||
|
||||
|
||||
//#ifdef H5
|
||||
|
||||
this.$u.get('/app/common/type/108').then(res => { //// 是否开启公众号自动登陆 108
|
||||
|
||||
Reference in New Issue
Block a user