|
@@ -36,7 +36,7 @@
|
|
|
<view @click="gotoDetail(item)" class="msg-item" v-for="(item, index) in sysMsgList" :key="index">
|
|
|
<view class="msg">
|
|
|
<view class="flex">
|
|
|
- <view v-if="item.read === '0'" class="dot"></view>
|
|
|
+ <view v-if="item.read == 0" class="dot"></view>
|
|
|
{{ item.title }}
|
|
|
</view>
|
|
|
<view v-if="item.type === 1" class="btn">绑定设备</view>
|
|
@@ -75,7 +75,6 @@
|
|
|
created() {
|
|
|
this.querySysMsgList()
|
|
|
this.queryDeviceMsg()
|
|
|
- // this.readMessage()
|
|
|
},
|
|
|
methods: {
|
|
|
async readMessage() {
|
|
@@ -98,7 +97,8 @@
|
|
|
toDeviceMsgPage(item) {
|
|
|
request.postApi(config.API_MESSAGE_READ_MESSAGE, {
|
|
|
msg_type: 1,
|
|
|
- car_id: item.car_id
|
|
|
+ car_id: item.car_id,
|
|
|
+ msg_id: item.id
|
|
|
})
|
|
|
|
|
|
uni.navigateTo({
|