wj
litian
2024-10-23 abe52e53bee051e3f801d001c4de58d34a3fefd7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<view class="teach-btn">
  <t-button
    theme="primary"
    class="btn"
    bind:tap="uploadBtn"
  >
    <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="margin-left:20rpx" class="btn" bind:tap="mailbox">
    <view slot="content" class="btn-content">
    <t-image src="/static/images/bookService/detail/download.png"></t-image>
    <text>下载到邮箱</text>
  </view>
  </t-button> -->
</view>
 
<view wx:if="{{dialogBox}}"> 
  <view class="popup-box" bindtap="closeDialog"></view>
  <view class="info-center" style="top:40%;">
    <view>
      <view class="row-info">
        <view class="body">
          <view class="dialog-title">请输入邮箱</view>
          <view class="input-box">
            <t-input
              class="input"
              placeholder="请输入邮箱号"
              value="{{input}}"
              bind:change="inputChange"
            ></t-input>
          </view>
        </view>
        <view class="row-btn">
          <view class="left-btn" bindtap="closeDialog">取消</view>
          <view class="right-btn" bindtap="confirmM">确认</view>
        </view>
      </view>
    </view>
  </view>
</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
  >
  <view wx:if="{{applyState == 'Normal'}}">
    <view>
      资源下载申请已通过<text wx:if="{{deadline}}"
        >,有效日期截至:{{ deadline }}</text
      ></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
  >
  <view wx:if="{{applyState == 'none'}}">
    资源下载需要申请,请先申请并等待审核通过后方可下载
  </view>
  <view class="btn-box">
    <t-button
      wx:if="{{applyState == 'Reject'}}"
      bind:tap="checkCause"
      style="height: 50rpx"
      class="rejectBtn"
      bind:tap="showDialog"
      >查看原因</t-button
    >
    <t-button
      wx:if="{{applyState == 'none' || applyState == 'Reject'}}"
      theme="primary"
      bind:tap="applyResource"
      class="applyBtn"
      style="height: 50rpx"
      >申请</t-button
    >
  </view>
</view>
<view class="noData" wx:else>
  <empty />
</view> -->
<!-- 未通过原因 -->
<t-dialog
  visible="{{showRejectDialog}}"
  title="提示"
  confirm-btn="{{ confirmBtn }}"
  bind:confirm="closeDialog"
  class="notPassed"
>
  <view slot="content">
    <text class="cause-title"
      >资源下载申请未通过,解决问题后可点击“申请”按钮重新提交申请</text
    >
    <view class="cause-content">原因:{{ rejectCause || '-'}}</view>
  </view>
</t-dialog>