From 30a6158686bbd635e0d1dca24f3b6eaec6fa16ae Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Mon, 12 Apr 2021 21:49:45 +0800 Subject: [PATCH] no message --- pages/message/notification/index.js | 5 +++++ pages/message/notification/index.wxml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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}} - 稍后处理 + 稍后处理 马上处理