|
|
@ -202,7 +202,7 @@ |
|
|
|
<scroll-view scroll-y @scrolltolower="search"> |
|
|
|
<view class="card" v-for="(v,k) in list" :key="k" @click="toDetail(k)"> |
|
|
|
<view class="info"> |
|
|
|
<text class="plant-xitongxiaoxi" :class="{noRead:v.readStatus=='未读'}"/> |
|
|
|
<text class="plant-xitongxiaoxi" :class="{noRead:v.readStatus=='2'}"/> |
|
|
|
<view> |
|
|
|
<view class="title"> |
|
|
|
<text class="over">{{v.cropName}}</text> |
|
|
@ -280,8 +280,8 @@ export default { |
|
|
|
async toDetail(index){ |
|
|
|
var res=await request("/api/message/getById",{params:{id:this.list[index].id}}) |
|
|
|
if(res.statu){ |
|
|
|
if(this.list[index].readStatus=='未读'){ |
|
|
|
this.list[index].readStatus='已读' |
|
|
|
if(this.list[index].readStatus=='2'){ |
|
|
|
this.list[index].readStatus='1' |
|
|
|
this.$store.state.sysMsgNum-=1 |
|
|
|
} |
|
|
|
uni.navigateTo({ |
|
|
@ -300,4 +300,4 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|