From 2bb7b70e1b9849d7b4faad2fbe839962e1276c1c Mon Sep 17 00:00:00 2001 From: zhaoyongnian <541231643@qq.com> Date: Sat, 12 Sep 2020 15:15:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../subpages/home/pages/newsDetail/newsDetail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epdc-resident-mp-yushan/subpages/home/pages/newsDetail/newsDetail.js b/epdc-resident-mp-yushan/subpages/home/pages/newsDetail/newsDetail.js index ee8b10d..3e7974c 100644 --- a/epdc-resident-mp-yushan/subpages/home/pages/newsDetail/newsDetail.js +++ b/epdc-resident-mp-yushan/subpages/home/pages/newsDetail/newsDetail.js @@ -167,7 +167,7 @@ Page({ api.getResidentConfig().then(res => { if (res.code === 0 && res.msg === "success") { res.data.forEach(item => { - if (item.residentType === "news_browse_time") { + if (item.residentCode === "news_browse_time") { that.setData({ residentValue:parseInt(item.residentValue) })