mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 02:46:46 +08:00
提交
This commit is contained in:
@@ -55,6 +55,14 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
returnRouter(item) {
|
returnRouter(item) {
|
||||||
|
if(!item.isRead){
|
||||||
|
apiMessage.updateIsRead([item.id]).then(res=>{
|
||||||
|
if(res.status == 200) {
|
||||||
|
item.isRead = !item.isRead;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
if (item.refType == 2) {
|
if (item.refType == 2) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/resource/articeDetail?id=' + item.refId
|
url: '/pages/resource/articeDetail?id=' + item.refId
|
||||||
@@ -145,7 +153,6 @@
|
|||||||
this.$emit('loadMessage');
|
this.$emit('loadMessage');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
console.log(ids,'ids')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user