闫增涛
2024-04-30 b672290f81510915f501f2163b3b54b666dfdfe9
书目下拉加载更多重构
2个文件已修改
21 ■■■■ 已修改文件
pages/bibliographyList/index.js 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/bibliographyList/index.wxml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/bibliographyList/index.js
@@ -108,29 +108,12 @@
    },
    onTabsChange(event) {
      const value = event.detail.value
      if (value === '0') {
        console.log(value);
        this.setData({
          tabValue: value,
          isMore: false
        })
      } else if (value === '1') {
        console.log(value);
        this.setData({
          tabValue: value,
          isMore: false
        })
      } else if (value === '2') {
        console.log(value);
        this.setData({
          tabValue: value,
          isMore: false
        })
      }
    },
    //高等教育
    higherGet(keyword) {
      // console.log(keyword, 'keyword');
      let searchObj = {
        'Name*': keyword,
        '||author*': keyword,
@@ -292,6 +275,8 @@
    //   }, 2000);
    // },
    downloadData(event) {
      console.log(this.data.isMore);
      debugger
      const item = event.currentTarget.dataset.item
      if (item.fileType == "pdf") {
        wx.navigateTo({
pages/bibliographyList/index.wxml
@@ -103,7 +103,7 @@
              <view class="higherTextBox">{{item.name}}</view>
            </view>
          </view>
          <view wx:if="{{higherList.length > 0}}" class="bottom-box">
          <view wx:if="{{higherList.length}}" class="bottom-box">
            <t-loading
              theme="circular"
              size="40rpx"