From dd9ca4df1e2a72707de5ae4e57e081d89db01a36 Mon Sep 17 00:00:00 2001
From: QYF-GitLab1 <1940665526@qq.com>
Date: 星期二, 31 十二月 2024 15:09:06 +0800
Subject: [PATCH] 批量操作

---
 packageCourse/pages/course/index.wxml |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/packageCourse/pages/course/index.wxml b/packageCourse/pages/course/index.wxml
index 4bbb4e0..b7d38db 100644
--- a/packageCourse/pages/course/index.wxml
+++ b/packageCourse/pages/course/index.wxml
@@ -22,10 +22,26 @@
           <view class="courseId">
             <text>ID: {{item.id}}</text>
             <t-tag class="margin-16" wx:if="{{item.applyState == 'WaitAudit'}}" variant="light" theme="warning">瀹℃牳涓�</t-tag>
-            <t-tag class="margin-16" wx:if="{{item.applyState == 'Reject'}}" variant="light" theme="danger">鏈�氳繃</t-tag>
+            <view wx:if="{{item.applyState == 'Reject'}}">
+              <t-tag class="margin-16" variant="light" theme="danger">鏈�氳繃</t-tag>
+              <t-tag bindtap="replayCourse" data-item="{{item}}" class="margin-16 replay" theme="danger">閲嶆柊鐢宠</t-tag>
+            </view>
             <t-tag class="margin-16" wx:if="{{item.applyState == 'Normal'}}" variant="light" theme="success">浣跨敤涓�</t-tag>
           </view>
-          <view wx:if="{{item.applyState == 'Reject'}}" class="reason">鎷掔粷鍘熷洜: {{item.reason}}</view>
+          <view wx:if="{{item.applyState == 'Reject'}}" class="reason">
+            <text> 鎷掔粷鍘熷洜锛�</text>
+            <t-tag style="margin-left: 0;" bind:tap="showDialog" class="margin-16 replay" theme="danger">鐐瑰嚮鏌ョ湅</t-tag>
+            <t-dialog visible="{{showContentOnly}}" bind:confirm="closeDialog" close-on-overlay-click>
+              <scroll-view slot="content" type="list" scroll-y class="long-content">
+                <view class="reasonContent">
+                  {{item.reason}}
+                </view>
+              </scroll-view>
+              <view slot="confirm-btn" style="width: 100%;">
+                <t-button style="color: #ff6d00;border-top: 1px solid #eee;" variant="text" bindtap="closeDialog" size="large" block t-class="external-class">鐭ラ亾浜�</t-button>
+              </view>
+            </t-dialog>
+          </view>
           <view class="desc">鎻忚堪锛歿{item.description}}</view>
         </view>
       </view>

--
Gitblit v1.9.1