diff --git a/pages/message/notification/index.js b/pages/message/notification/index.js index 9be9b24..6627745 100644 --- a/pages/message/notification/index.js +++ b/pages/message/notification/index.js @@ -31,6 +31,11 @@ Component({ if(!this.data.message.redirectInfo || !this.data.message.redirectInfo.targetView){ return } + if(util.isEmpty(e.currentTarget.id)){ + + this.setData({ notice: false }) + return + } readMessage({ idList: [this.data.message.id] }).then(result => { if(this.data.message.redirectInfo.targetView == 'factoryCustomerDetail'){// 新建客户 this.setData({ notice: false }) diff --git a/pages/message/notification/index.wxml b/pages/message/notification/index.wxml index a46880c..e2fd4bc 100644 --- a/pages/message/notification/index.wxml +++ b/pages/message/notification/index.wxml @@ -5,7 +5,7 @@ {{message.content}} - 稍后处理 + 稍后处理 马上处理