|
@@ -197,6 +197,31 @@
|
|
|
else{
|
|
|
this.getList()
|
|
|
}
|
|
|
+ uni.removeTabBarBadge({
|
|
|
+ index: 4
|
|
|
+ })
|
|
|
+ this.$api.doRequest('get', '/notice/query/noticeNumber').then(res => {
|
|
|
+ if (res.data.data) {
|
|
|
+ let name = 'myTip';
|
|
|
+ let value = res.data.data.task;
|
|
|
+ that.$store.commit('$uStore', {
|
|
|
+ name,
|
|
|
+ value
|
|
|
+ });
|
|
|
+ if(value != 0&&value){
|
|
|
+ uni.setTabBarBadge({
|
|
|
+ index:4,
|
|
|
+ text:value+""
|
|
|
+ })
|
|
|
+ }
|
|
|
+ name = 'taskTip';
|
|
|
+ value = res.data.data.task;
|
|
|
+ that.$store.commit('$uStore', {
|
|
|
+ name,
|
|
|
+ value
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
if (option.position){
|