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/detail/index.wxml |   41 ++++++++++++++++++++++-------------------
 1 files changed, 22 insertions(+), 19 deletions(-)

diff --git a/packageCourse/pages/course/detail/index.wxml b/packageCourse/pages/course/detail/index.wxml
index 0d1af22..5127d35 100644
--- a/packageCourse/pages/course/detail/index.wxml
+++ b/packageCourse/pages/course/detail/index.wxml
@@ -6,9 +6,9 @@
       <view wx:if="{{!courseLoading}}">
         <view class="ID-State">
           <text class="ID">ID: {{detail.id}}</text>
-          <t-tag class="margin-16" size='large' wx:if="{{detail.applyState == 'WaitAudit'}}" variant="light" theme="warning">瀹℃牳涓�</t-tag>
-          <t-tag class="margin-16" size='large' wx:if="{{detail.applyState == 'Reject'}}" variant="light" theme="danger">鏈�氳繃</t-tag>
-          <t-tag class="margin-16" size='large' wx:if="{{detail.applyState == 'Normal'}}" variant="light" theme="success">浣跨敤涓�</t-tag>
+          <t-tag class="margin-16" size="large" wx:if="{{detail.applyState == 'WaitAudit'}}" variant="light" theme="warning">瀹℃牳涓�</t-tag>
+          <t-tag class="margin-16" size="large" wx:if="{{detail.applyState == 'Reject'}}" variant="light" theme="danger">鏈�氳繃</t-tag>
+          <t-tag class="margin-16" size="large" wx:if="{{detail.applyState == 'Normal'}}" variant="light" theme="success">浣跨敤涓�</t-tag>
         </view>
         <view class="statics">
           <view class="classCout">
@@ -47,8 +47,8 @@
     <!-- 鐝骇绠$悊 -->
     <view class="classBox" wx:else>
       <view class="header">
-        <t-search style="flex:1" value="{{searchKey}}" bind:clear="changeHandle" bind:submit="changeHandle" placeholder="鎼滅储鐝骇鍚嶇О" clearable />
-        <t-button bindtap="newClass" size="small" style="margin-left: 15rpx;">寮�鐝�</t-button>
+        <t-search style="flex: 1" value="{{searchKey}}" bind:clear="changeHandle" bind:submit="changeHandle" placeholder="鎼滅储鐝骇鍚嶇О" clearable />
+        <t-button bindtap="newClass" size="small" style="margin-left: 15rpx">寮�鐝�</t-button>
       </view>
       <view class="contentList" wx:if="{{classList.length > 0 && !classLoading}}">
         <scroll-view class="scroll" class="content" bind:scroll="onPageScroll" model:scroll-top="{{setScrollValue}}" scroll-y refresher-enabled="{{true}}" lower-threshold="{{80}}" refresher-threshold="{{80}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindrefresherpulling="{{refresh.onPulling}}" bindrefresherrefresh="onPullDownRefresh" bindscrolltolower="onReachBottom">
@@ -60,26 +60,27 @@
           <view class="listClass" wx:for="{{classList}}" wx:key="index" data-class-id="{{item.id}}" data-item="{{item}}" bindtap="todetail">
             <view class="titleBox">
               <text class="className">{{item.name}}</text>
-              <text class="classId" style="color: #999; font-size: 12px;"> ID: {{item.id}}</text>
+              <text class="classId" style="color: #999; font-size: 12px">ID: {{item.id}}</text>
             </view>
             <view class="infoBox">
               <text class="classTag" wx:if="{{item.applyState == 'WaitAudit'}}" style="color: #ef9f29">鐘舵��: 瀹℃牳涓�</text>
               <text class="classTag" wx:if="{{item.applyState == 'Normal'}}" style="color: #1dbd11">鐘舵��: 杩涜涓�</text>
               <text class="classTag" wx:if="{{item.applyState == 'Reject'}}" style="color: red">鐘舵��: 鏈�氳繃</text>
-              <t-icon bindtap="delClass" data-del-id="{{item.id}}" class="delete" wx:if="{{item.applyState == 'Reject'}}" name="delete" color="red" size='18px' />
+              <t-icon bindtap="delClass" data-del-id="{{item.id}}" class="delete" wx:if="{{item.applyState == 'Reject'}}" name="delete" color="red" size="18px" />
               <view wx:if="{{item.applyState == 'Reject'}}" class="reason">
                 <text> 鎷掔粷鍘熷洜锛�</text>
-                <t-tag style="margin-left: 0;" bind:tap="showDialog" data-item="{{item}}" class="margin-16 replay" theme="danger">鐐瑰嚮鏌ョ湅</t-tag>
+                <t-tag style="margin-left: 0" bind:tap="showDialog" data-item="{{item}}" class="margin-16 replay" theme="danger">鐐瑰嚮鏌ョ湅</t-tag>
               </view>
               <!-- <text class="classTag" wx:if="{{item.applyState == 'Reject'}}" style="color: red">鎷掔粷鍘熷洜锛歿{ item.reason != '' ? item.reason : '-' }}</text> -->
-              <text class="classTag">鐝骇浜烘暟: {{ item.memberCount }} / {{ item.maxUserCount }}</text>
+              <text class="classTag">鐝骇浜烘暟: {{ item.memberCount }} / {{ item.maxUserCount
+                }}</text>
               <text class="classTag">鏈夋晥鏈燂細{{ item.beginDate }} - {{ item.endDate }}</text>
             </view>
           </view>
           <view class="bottom-loading" wx:if="{{bottomLoading}}">
             <t-loading theme="circular" size="40rpx" text="鍔犺浇涓�..." class="wrapper" />
           </view>
-          <view class="bottom-loading" style="color: #ccc;font-size: 28rpx;" wx:if="{{isMoreData}}">
+          <view class="bottom-loading" style="color: #ccc; font-size: 28rpx" wx:if="{{isMoreData}}">
             <text>娌℃湁鏇村浜�</text>
           </view>
         </scroll-view>
@@ -111,29 +112,31 @@
               <text>鐝骇鏈夋晥鏈�</text>
               <view class="dateBox">
                 <view>
-                  <t-input value="{{startTime}}" readonly borderless bindtap="openDateStart" placeholder="璇烽�夋嫨寮�濮嬫椂闂�" />
+                  <t-input style="display:{{isShow}}" value="{{startTime}}" readonly borderless bindtap="openDateStart" placeholder="璇烽�夋嫨寮�濮嬫椂闂�" />
                   <t-calendar visible="{{visibleStart}}" bind:confirm="handleConfirmStart" />
                 </view>
                 <view>~</view>
                 <view>
-                  <t-input value="{{endTime}}" readonly borderless bindtap="openDateEnd" placeholder="璇烽�夋嫨缁撴潫鏃堕棿" />
+                  <t-input value="{{endTime}}" style="display:{{isShow}}" readonly borderless bindtap="openDateEnd" placeholder="璇烽�夋嫨缁撴潫鏃堕棿" />
                   <t-calendar visible="{{visibleEnd}}" bind:confirm="handleConfirmEnd" />
                 </view>
               </view>
             </view>
           </view>
           <view class="classSubmit">
-            <t-button style="padding: 0 25px; margin:0 15px;" size="small" bindtap="cancle" variant="outline">鍙栨秷</t-button>
-            <t-button style="padding: 0 25px; margin:0;" size="small" bindtap="submitClass">纭</t-button>
+            <t-button style="padding: 0 25px; margin: 0 15px" size="small" bindtap="cancle" variant="outline">鍙栨秷</t-button>
+            <t-button style="padding: 0 25px; margin: 0" size="small" bindtap="submitClass">纭</t-button>
           </view>
         </view>
       </t-popup>
       <t-dialog visible="{{showContentOnly}}" bind:confirm="closeDialog" close-on-overlay-click>
-        <view slot="content" class="reasonContent">
-          {{reason}}
-        </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>
+        <scroll-view slot="content" type="list" scroll-y class="long-content">
+          <view class="reasonContent">
+            {{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>

--
Gitblit v1.9.1