|
@@ -174,6 +174,7 @@
|
|
|
});
|
|
|
},
|
|
|
read(val) {
|
|
|
+ let that = this
|
|
|
if(val.newsType == "投诉结果" || val.newsType == "举报结果"){
|
|
|
uni.$u.route("/pages/news/feedbackResults?id=" + val.bussId + "&type=" + val.newsType)
|
|
|
}else{
|
|
@@ -183,11 +184,11 @@
|
|
|
title: '加载中',
|
|
|
mask: true
|
|
|
})
|
|
|
- this.$request.baseRequest('post', '/newsInfo/api/editNewsInfo', {
|
|
|
+ that.$request.baseRequest('post', '/newsInfo/api/editNewsInfo', {
|
|
|
id: val.id,
|
|
|
}).then(res => {
|
|
|
- this.mescroll.resetUpScroll()
|
|
|
- this.look()
|
|
|
+ that.mescroll.resetUpScroll()
|
|
|
+ that.look()
|
|
|
uni.hideLoading()
|
|
|
})
|
|
|
.catch(res => {
|
|
@@ -195,14 +196,13 @@
|
|
|
});
|
|
|
},
|
|
|
look() {
|
|
|
+ let that = this
|
|
|
that.$request.baseRequest('get', '/newsInfo/unreadMessage', {
|
|
|
reCommonId: this.userInfo.id,
|
|
|
}).then(res3 => {
|
|
|
-
|
|
|
if (res3.data || res3.data == 0) {
|
|
|
let name = 'myTip';
|
|
|
let value = res3.data
|
|
|
- console.log(value)
|
|
|
if (value == 0) {
|
|
|
uni.removeTabBarBadge({
|
|
|
index: 2
|