闫增涛
2024-09-07 892efc9976feb68ce1a3a4d759317e2585d67ebe
pages/retrievalPage/index.wxml
@@ -13,20 +13,34 @@
      <view class="cancellation" bind:tap="onCancellation">取消</view>
    </view>
  </view>
  <!--pages/retrievalPage/index.wxml-->
  <view class="tabsBox">
    <!-- sticky="true" -->
    <t-tabs
      value="{{tabValue}}"
      bind:change="onTabsChange"
      t-class="custom-tabs"
      t-class-content="custom-panel"
    >
      <t-tab-panel label="图书({{bookTotal}})" value="0">
        <view wx:if="{{bookData.length <= 0}}" class="noDataBox">
          <t-empty icon="folder-open" description="暂无数据" />
  <view>
    <!-- Tab布局 -->
    <scroll-view scroll-x="{{true}}" class="scroll-x">
      <view class="navBox">
        <view
          class="titleBox"
          wx:for="{{tabList}}"
          bindtap="tabsOn"
          data-idx="{{item.index}}"
        >
          <view class="tabIndexBox">
            <text class="{{item.index == tabsId ? 'fontColorBox' : ''}}"
              >{{item.title}} ({{item.bookTotal}})
            </text>
          </view>
          <hr class="{{item.index == tabsId ? 'lineBox' : ''}}" />
        </view>
      </view>
    </scroll-view>
    <!-- 内容布局 -->
    <swiper
      class="swiperTtemBox"
      bindchange="slideOn"
      current="{{tabsId}}"
      circular
    >
      <!-- circular 启用循环滑动 -->
      <swiper-item>
        <scroll-view
          scroll-y="{{true}}"
          class="scrollViewBox"
@@ -67,13 +81,13 @@
            />
            <text wx:if="{{isMore == false}}">没有更多了</text>
          </view>
          <view wx:if="{{bookData.length <= 0}}" class="noDataBox">
            <!-- <t-empty icon="folder-open" description="暂无数据" /> -->
            <empty />
          </view>
        </scroll-view>
      </t-tab-panel>
      <t-tab-panel label="课程({{courseTotal}})" value="1">
        <view wx:if="{{courseData.length <= 0}}" class="noDataBox">
          <t-empty icon="folder-open" description="暂无数据" />
        </view>
      </swiper-item>
      <swiper-item>
        <scroll-view
          scroll-y="{{true}}"
          class="scrollViewBox"
@@ -131,12 +145,13 @@
            />
            <text wx:if="{{isMore == false}}">没有更多了</text>
          </view>
          <view wx:if="{{courseData.length <= 0}}" class="noDataBox">
            <!-- <t-empty icon="folder-open" description="暂无数据" /> -->
            <empty />
          </view>
        </scroll-view>
      </t-tab-panel>
      <t-tab-panel label="数字教材({{digitalTextbooksTotal}})" value="2">
        <view wx:if="{{digitalTextbooksData.length <= 0}}" class="noDataBox">
          <t-empty icon="folder-open" description="暂无数据" />
        </view>
      </swiper-item>
      <swiper-item>
        <scroll-view
          scroll-y="{{true}}"
          class="scrollViewBox"
@@ -169,12 +184,13 @@
            />
            <text wx:if="{{isMore == false}}">没有更多了</text>
          </view>
          <view wx:if="{{digitalTextbooksData.length <= 0}}" class="noDataBox">
            <!-- <t-empty icon="folder-open" description="暂无数据" /> -->
            <empty />
          </view>
        </scroll-view>
      </t-tab-panel>
      <t-tab-panel label="专题({{seminarTotal}})" value="3">
        <view wx:if="{{seminarData.length <= 0}}" class="noDataBox">
          <t-empty icon="folder-open" description="暂无数据" />
        </view>
      </swiper-item>
      <swiper-item>
        <scroll-view
          scroll-y="{{true}}"
          class="scrollViewBox"
@@ -224,7 +240,6 @@
              </view>
            </view>
          </view>
          <view wx:if="{{seminarData.length != 0}}" class="bottom-box">
            <t-loading
              theme="circular"
@@ -234,13 +249,13 @@
            />
            <text wx:if="{{isMore == false}}">没有更多了</text>
          </view>
          <view wx:if="{{seminarData.length <= 0}}" class="noDataBox">
            <!-- <t-empty icon="folder-open" description="暂无数据" /> -->
            <empty />
          </view>
        </scroll-view>
      </t-tab-panel>
      <t-tab-panel label="书目({{bookFairTotal}})" value="4">
        <view wx:if="{{bookFairData.length <= 0 }}" class="noDataBox">
          <t-empty icon="folder-open" description="暂无数据" />
        </view>
      </swiper-item>
      <swiper-item>
        <scroll-view
          scroll-y="{{true}}"
          class="scrollViewBox"
@@ -255,12 +270,12 @@
              wx:for-index="index"
            >
              <view class="outsideHigherImageBox">
                <view class="higherImageBox" data-item="{{item}}">
                  <image
                    bind:tap="downloadData"
                    src="{{item.icon}}"
                    mode="aspectFill"
                  />
                <view
                  class="higherImageBox"
                  bind:tap="openBookFair"
                  data-item="{{item}}"
                >
                  <image src="{{item.icon}}" mode="aspectFill" />
                  <view
                    class="downloadIcon"
                    data-item="{{item}}"
@@ -295,16 +310,13 @@
            />
            <text wx:if="{{isMore == false}}">没有更多了</text>
          </view>
          <view wx:if="{{bookFairData.length <= 0 }}" class="noDataBox">
            <!-- <t-empty icon="folder-open" description="暂无数据" /> -->
            <empty />
          </view>
        </scroll-view>
      </t-tab-panel>
      <t-tab-panel label="书展({{biblioClassificationTotal}})" value="5">
        <view
          wx:if="{{biblioClassificationData.length <= 0}}"
          class="noDataBox"
        >
          <t-empty icon="folder-open" description="暂无数据" />
        </view>
      </swiper-item>
      <swiper-item>
        <scroll-view
          scroll-y="{{true}}"
          class="scrollViewBox"
@@ -333,11 +345,10 @@
                mode=""
              />
              <view class="textBox" title="{{item.name}}">
                <text>{{item.subtitleName}}</text></view
              >
                <text>{{item.subtitleName}}</text>
              </view>
            </view>
          </view>
          <view
            wx:if="{{biblioClassificationData.length != 0}}"
            class="bottom-box"
@@ -350,11 +361,18 @@
            />
            <text wx:if="{{isMore == false}}">没有更多了</text>
          </view>
          <view
            wx:if="{{biblioClassificationData.length <= 0}}"
            class="noDataBox"
          >
            <!-- <t-empty icon="folder-open" description="暂无数据" /> -->
            <empty />
          </view>
        </scroll-view>
      </t-tab-panel>
    </t-tabs>
      </swiper-item>
    </swiper>
  </view>
  <view class="dialogBox">
  <view class="dialogBox" wx:if="{{showWithInput}}">
    <t-dialog
      visible="{{showWithInput}}"
      title="请输入邮箱"