闫增涛
2024-09-18 c96612e8a63ecef9590be0f8b5199277ec94e5b9
packageBookService/pages/bookServices/detail/components/teachResource/index.wxml
@@ -1,23 +1,26 @@
<view class="teach-btn" wx:if="{{false}}">
<view class="teach-btn">
  <t-button
    theme="primary"
    style="width: 120px; height: 36px"
    class="btn-upload"
    wx:if="{{false}}"
    class="btn"
    bind:tap="uploadBtn"
  >
    <t-image
      src="/static/images/bookService/detail/upload.png"
      style="margin-top: 20rpx"
    ></t-image>
    <text>上传资源</text>
    <view slot="content" class="btn-content">
      <image
        src="/static/images/bookService/detail/upload.png"
        mode="aspectFit"
      ></image>
      <text>上传资源</text>
    </view>
  </t-button>
  <t-button theme="primary" style="width: 120px; height: 36px">
  <!-- <t-button theme="primary" style="width: 120px; height: 36px">
    <t-image src="/static/images/bookService/detail/download.png"></t-image>
    批量下载
  </t-button>
  </t-button> -->
</view>
<view
  class="applyResult  {{applyState == 'none' ? 'applyNone' : applyState == 'Normal' ? 'applyPass' : applyState == 'WaitAudit' ? 'applying' :applyState == 'Reject' ? 'applyReject' :'' }}"
  wx:if="{{treeList.length}}"
>
  <view wx:if="{{applyState == 'WaitAudit'}}"
    >资源下载申请正在审核中,请耐心等待!</view
@@ -26,11 +29,12 @@
    <view>
      资源下载申请已通过<text wx:if="{{deadline}}"
        >,有效日期截至:{{ deadline }}</text
      ></view>
    <!-- <view style="display: flex; align-items: center; margin-top: 10rpx">
      <text>下载资源请到PC端京师E课</text>
      <t-button style="font-size: 24rpx; height: 50rpx" bind:tap="copy">复制</t-button>
    </view> -->
      ></view
    >
    <view style="display: flex; align-items: center; margin-top: 10rpx">
      <text>下载资源请到PC端京师智教</text>
      <text bind:tap="copy" class="copy-text">复制</text>
    </view>
  </view>
  <view wx:if="{{applyState == 'Reject'}}"
    >资源下载需要申请,请先申请并等待审核通过后方可下载</view
@@ -57,6 +61,9 @@
    >
  </view>
</view>
<view class="noData" wx:else>
  <empty />
</view>
<!-- 未通过原因 -->
<t-dialog
  visible="{{showRejectDialog}}"
@@ -69,6 +76,6 @@
    <text class="cause-title"
      >资源下载申请未通过,解决问题后可点击“申请”按钮重新提交申请</text
    >
    <view class="cause-content">原因:{{ rejectCause }}</view>
    <view class="cause-content">原因:{{ rejectCause || '-'}}</view>
  </view>
</t-dialog>