From a2d1b9886b00b5f4d4722c3379d3bd4f2f94b421 Mon Sep 17 00:00:00 2001 From: LAPTOP-RI7D261L\Mr Ke <545800322@qq.com> Date: Mon, 09 Mar 2020 17:02:35 +0800 Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/nsjcy/frontEnd/nsjcy --- SunshineLnsMinApp/pages/fzxkt/fzxkt.js | 17 +++++------------ 1 files changed, 5 insertions(+), 12 deletions(-) diff --git a/SunshineLnsMinApp/pages/fzxkt/fzxkt.js b/SunshineLnsMinApp/pages/fzxkt/fzxkt.js index 0f5a17d..bfbd781 100644 --- a/SunshineLnsMinApp/pages/fzxkt/fzxkt.js +++ b/SunshineLnsMinApp/pages/fzxkt/fzxkt.js @@ -9,15 +9,7 @@ TabCur: 0, scrollLeft: 0, tabList: ['未成年人', '公益诉讼', '其他'], - dataSet: [{ - createTime: '2020/2/3 15:30', - readCount: 2, - title: '课堂名称' - }, { - createTime: '2020/2/3 15:30', - readCount: 2, - title: '课堂名称' - }], + dataSet: [], isHideLoadMore: true, //loading样式 isHideMorebtn: true, //更多按钮样式 isHideEnd: true, //有底线样式 (三者默认隐藏) @@ -57,14 +49,15 @@ console.log('res', res); if (res.data.code == 0) { let content = res.data.data.result.content.map(({ - startTime, + createTime, ...i }) => ({ ...i, - startTime: app.formatDate(startTime), + createTime: app.formatDate(createTime), })); + console.log(content) that.setData({ - items: content + dataSet: content }) } else { wx.showToast({ -- Gitblit v1.8.0