forked from nsjcy/frontEnd/nsjcy

liuwh
2020-05-09 894ab56e0e650dda334273f21f948677163f134b
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, //有底线样式  (三者默认隐藏)
@@ -50,21 +42,22 @@
      data: {
        page: 1,
        size: 1000,
        flag:'法治小课堂',
        flag:'法制小课堂',
      },
      success: function (res) {
        wx.hideLoading();
        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({