From 55949f95a609733d1771d5b017d679cd7d1f005d Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期五, 20 十二月 2024 17:33:17 +0800
Subject: [PATCH] 题库加入购物车优化

---
 packageBookService/pages/bookServices/detail/components/teachResource/index.wxml |   71 ++++++++++++++++++++++++++---------
 1 files changed, 52 insertions(+), 19 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/components/teachResource/index.wxml b/packageBookService/pages/bookServices/detail/components/teachResource/index.wxml
index c93a4a0..f7ca042 100644
--- a/packageBookService/pages/bookServices/detail/components/teachResource/index.wxml
+++ b/packageBookService/pages/bookServices/detail/components/teachResource/index.wxml
@@ -1,23 +1,52 @@
-<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="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>
-    鎵归噺涓嬭浇
-  </t-button>
+    <text>涓嬭浇鍒伴偖绠�</text>
+  </view>
+  </t-button> -->
 </view>
-<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'}}"
     >璧勬簮涓嬭浇鐢宠姝e湪瀹℃牳涓紝璇疯�愬績绛夊緟锛�</view
@@ -26,11 +55,12 @@
     <view>
       璧勬簮涓嬭浇鐢宠宸查�氳繃<text wx:if="{{deadline}}"
         >锛屾湁鏁堟棩鏈熸埅鑷筹細{{ deadline }}</text
-      ></view>
-    <!-- <view style="display: flex; align-items: center; margin-top: 10rpx">
-      <text>涓嬭浇璧勬簮璇峰埌PC绔含甯圗璇�</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 +87,9 @@
     >
   </view>
 </view>
+<view class="noData" wx:else>
+  <empty />
+</view> -->
 <!-- 鏈�氳繃鍘熷洜 -->
 <t-dialog
   visible="{{showRejectDialog}}"
@@ -69,6 +102,6 @@
     <text class="cause-title"
       >璧勬簮涓嬭浇鐢宠鏈�氳繃锛岃В鍐抽棶棰樺悗鍙偣鍑烩�滅敵璇封�濇寜閽噸鏂版彁浜ょ敵璇�</text
     >
-    <view class="cause-content">鍘熷洜:{{ rejectCause }}</view>
+    <view class="cause-content">鍘熷洜:{{ rejectCause || '-'}}</view>
   </view>
 </t-dialog>

--
Gitblit v1.9.1