From 09b4797fb18e2971434c8cfc217f706628e0126e Mon Sep 17 00:00:00 2001
From: Mr Ke <kelq@hugeinfo.com.cn>
Date: Tue, 31 Mar 2020 11:57:41 +0800
Subject: [PATCH] 问卷答题详情
---
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