litian
2024-04-09 6608a6839d771d38640988e3ee496ecdd91765a4
packagePersonal/pages/feedBack/index.js
@@ -9,8 +9,7 @@
  data: {
    active: 0,
    activeName: "bookOpinion",
    tabList: [
      {
    tabList: [{
        label: '图书建议',
        key: 0,
        value: 'bookOpinion'
@@ -39,8 +38,7 @@
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    console.log(options);
    this.getDataList(false);
    console.log(options)
  },
  /**
@@ -54,7 +52,7 @@
   * 生命周期函数--监听页面显示
   */
  onShow() {
    this.getDataList(false);
  },
  /**
   * 生命周期函数--监听页面卸载
@@ -64,7 +62,6 @@
  },
  tabBookClick(item) {
    console.log(item, 1)
    let that = this;
    let info = this.data.tabList[item.detail.value]
    that.setData({
@@ -82,15 +79,15 @@
  getDataList(isReachBottom) {
    app.MG.ugc.getTopicMessageList({
      appRefCode: app.config.appRefCode,
      topicIdOrRefCode: this.data.topicIdOrRefCode,
      start: this.data.page * this.data.limit - this.data.limit,
      size: this.data.limit,
      sort: {
        type: "Desc",
        field: "CreateDate"
      }
    })
        appRefCode: app.config.appRefCode,
        topicIdOrRefCode: this.data.topicIdOrRefCode,
        start: this.data.page * this.data.limit - this.data.limit,
        size: this.data.limit,
        sort: {
          type: "Desc",
          field: "CreateDate"
        }
      })
      .then(res => {
        try {
          if (res.datas.length > 0) {
@@ -112,9 +109,10 @@
              isMoreData: dataList.length > 0 ? false : true,
              skeletonLoding: false,
            })
            console.log(this.data.list, 123)
          } else {
            this.setData({
              list: [],
              pageTotalCount: 0,
              skeletonLoding: false,
            })
          }