From 2c1a13eae201887fdee0a7e0007b7dccdfb4e1db Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期二, 11 三月 2025 10:28:28 +0800
Subject: [PATCH] 云学习资源扫码判断购买

---
 packageBookService/pages/bookServices/detail/components/learnTask/index.wxml |   71 +++++++++++++++++++++++++----------
 1 files changed, 51 insertions(+), 20 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/components/learnTask/index.wxml b/packageBookService/pages/bookServices/detail/components/learnTask/index.wxml
index 7e3d008..0f71b75 100644
--- a/packageBookService/pages/bookServices/detail/components/learnTask/index.wxml
+++ b/packageBookService/pages/bookServices/detail/components/learnTask/index.wxml
@@ -9,19 +9,19 @@
     <view class="from-item">
       <view class="label"><text class="icon">*</text> 濮撳悕锛� </view>
       <view class="item-content">
-        <t-input placeholder="璇疯緭鍏ュ鍚�" borderless value="{{name}}" bindchange="bindTnputBlur" />
+        <t-input placeholder="璇疯緭鍏ュ鍚�" borderless value="{{name}}" bindchange="bindTnputBlur" disabled="{{disabled}}" />
       </view>
     </view>
     <view class="from-item">
       <view class="label"> <text class="icon">*</text>瀛︽牎锛� </view>
       <view class="item-content">
-        <t-input placeholder="杈撳鏍″悕绉�" borderless value="{{school}}" type="number" bindchange="onSchoolInput" />
+        <t-input placeholder="杈撳鏍″悕绉�" borderless value="{{school}}" bindchange="onSchoolInput" disabled="{{disabled}}" />
       </view>
     </view>
     <view class="from-item">
       <view class="label"><text class="icon">*</text> 鐝骇锛� </view>
       <view class="item-content">
-        <t-input placeholder="璇疯緭鍏ョ彮绾�" borderless value="{{class}}" bindchange="bindClassBlur" />
+        <t-input placeholder="璇疯緭鍏ョ彮绾�" borderless value="{{class}}" bindchange="bindClassBlur" disabled="{{disabled}}" />
       </view>
     </view>
     <view class="from-item">
@@ -40,22 +40,32 @@
   </view>
   <view class="content-Box">
     <view class="item-title">
-      <image src="/static/images/bookService/detail/renwudan锛廼con.png" class="icon" />
+      <image src="/static/images/bookService/detail/renwudan锛廼con.png" class="iconImage" />
       <view>瀛︿範浠诲姟鍗�</view>
     </view>
     <view class="item-box" wx:if="{{menuList.length > 0 && !loading}}">
       <view wx:for="{{menuList}}" wx:for-item="item" wx:for-index="index" wx:key="id" class="item">
         <view class="itemCon">
-          <view>
+          <div wx:if="{{!item.children}}" class="noChild"></div>
+          <view wx:if="{{item.children}}">
+            <t-icon name="chevron-down" size="48rpx" data-name="chevron-down"  />
           </view>
-          <view bind:tap="getTask" data-item="{{item}}">{{ item.name }}</view>
+          <view bind:tap="getTask" data-item="{{item}}" class="itemName">{{ item.name }}</view>
         </view>
-        <view class="childBox">
+        <view class="childBox" wx:if="{{item.children}}">
           <view wx:for="{{item.children}}" wx:for-item="item1" wx:for-index="index" wx:key="id" class="item">
-            <view bind:tap="getTask" data-item="{{item}}">{{ item1.name }}</view>
+            <view bind:tap="getTask" data-item="{{item1}}" class="itemName">{{ item1.name }}</view>
           </view>
         </view>
       </view>
+    </view>
+    <view wx:else style="width: 100%; height: min-content;margin-top:40rpx">
+      <t-skeleton
+        row-col="{{rowCol}}"
+        theme="paragraph"
+        animation="gradient"
+        loading="{{loading}}"
+      ></t-skeleton>
     </view>
   </view>
   <view class="popupBox">
@@ -80,27 +90,27 @@
                   <view class="box-list">
                     <view class="lable"><text class="icon">*</text>瀛︿範鍙嶆��:</view>
                     <view class="inputBox">
-                      <t-textarea placeholder="璇疯緭鍏ュ涔犲弽鎬�" value="{{item.introspection}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" data-index="{{index}}" bindchange="onIntrospectionInput" />
+                      <t-textarea placeholder="璇疯緭鍏ュ涔犲弽鎬�" value="{{item.introspection}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" data-index="{{index}}" bindchange="onIntrospectionInput" disabled="{{disabled}}" />
                     </view>
                   </view>
                   <view class="box-list">
                     <view class="lable"><text class="icon">*</text>瀹屾垚鎯呭喌:</view>
                     <view class="inputBox">
-                      <t-textarea placeholder="璇疯緭鍏ュ畬鎴愭儏鍐�" value="{{item.completion}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" bindchange="onCompletionInput" />
+                      <t-textarea placeholder="璇疯緭鍏ュ畬鎴愭儏鍐�" value="{{item.completion}}" data-index="{{index}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" disabled="{{disabled}}" bindchange="onCompletionInput" />
                     </view>
                   </view>
                   <view class="box-list">
                     <view class="lable"><text class="icon">*</text>鑷繁璇�:</view>
                     <view class="inputBox">
-                      <t-textarea placeholder="璇疯緭鍏ヨ瘎浠�" value="{{item.selfEvaluation}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" bindchange="onSelfInput" />
+                      <t-textarea placeholder="璇疯緭鍏ヨ瘎浠�" value="{{item.selfEvaluation}}" data-index="{{index}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" disabled="{{disabled}}" bindchange="onSelfInput" />
                     </view>
                   </view>
                   <view class="box-list" wx:if="{{consumer == 'classmate' || !consumer}}">
                     <view class="lable">鍚屼即璇�:</view>
                     <view class="inputBox">
-                      <t-textarea placeholder="璇疯緭鍏ヨ瘎浠�" value="{{item.mateEvaluation}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" bindchange="onMateInput" wx:if="{{consumer == 'classmate'}}" />
+                      <t-textarea placeholder="璇疯緭鍏ヨ瘎浠�" value="{{item.mateEvaluation}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" bindchange="onMateInput" data-index="{{index}}" wx:if="{{consumer == 'classmate'  && !evaluated}}" />
                       <view wx:if="{{isUpdate && item.mateEvaluation.length > 0}}" class="rateList">
-                        <view wx:for="{{item.mateEvaluation}}" wx:for-item="mateItem" wx:key="index">
+                        <view wx:for="{{item.mateEvaluation}}" wx:for-item="mateItem" wx:key="index" class="li">
                           <view class="userName">{{ mateItem.userName }}</view>
                           <view>{{ mateItem.evaluation }}</view>
                         </view>
@@ -111,10 +121,10 @@
                   <view class="box-list" wx:if="{{consumer == 'teacher' || !consumer}}">
                     <view class="lable">鑰佸笀璇�:</view>
                     <view class="inputBox">
-                      <t-textarea placeholder="璇疯緭鍏ヨ瘎浠�" value="{{item.teacherEvaluation}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" bindchange="onTeacherInput" wx:if="{{consumer == 'teacher'}}" />
+                      <t-textarea placeholder="璇疯緭鍏ヨ瘎浠�" value="{{item.teacherEvaluation}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" bindchange="onTeacherInput" data-index="{{index}}" wx:if="{{consumer == 'teacher' && !evaluated}}" />
                       <view wx:if="{{isUpdate && item.teacherEvaluation.length > 0}}" class="rateList">
-                        <view wx:for="{{item.teacherEvaluation}}" wx:for-item="mateItem" wx:key="index">
-                          <view class="userName">{{ mateItem.userName }}</view>
+                        <view wx:for="{{item.teacherEvaluation}}" wx:for-item="mateItem" wx:key="index" class="li">
+                          <view class="userName"><text></text>{{ mateItem.userName }}</view>
                           <view>{{ mateItem.evaluation }}</view>
                         </view>
                       </view>
@@ -127,14 +137,14 @@
             <view wx:if="{{dataList.length == 0}}" class="empyt">
               <empty />
             </view>
-            <view class="buttonBox">
-              <t-button class="btn" theme="primary" bind:tap="submitComment" wx:if="{{consumer}}">
+            <view class="buttonBox" wx:if="{{dataList.length > 0}}">
+              <t-button class="btn" theme="primary" bind:tap="submitComment" wx:if="{{consumer && !evaluated}}">
                 <view slot="content" class="btn-content">鎻愪氦</view>
               </t-button>
-              <t-button class="btn" theme="primary" bind:tap="updateSubmit" wx:if="{{isUpdate && !consumer}}">
+              <t-button class="btn" theme="primary" bind:tap="updateSubmit" wx:if="{{isUpdate && !consumer && dataList.length > 0}}">
                 <view slot="content" class="btn-content">閭�璇疯瘎浠�</view>
               </t-button>
-              <t-button class="btn" theme="primary" bind:tap="inviteBtn" wx:if="{{!isUpdate && !consumer}}">
+              <t-button class="btn" theme="primary" bind:tap="inviteBtn" wx:if="{{!isUpdate && !consumer && dataList.length > 0}}">
                 <view slot="content" class="btn-content">閭�璇疯瘎浠�</view>
               </t-button>
             </view>
@@ -144,4 +154,25 @@
       </view>
     </t-popup>
   </view>
+  <view class="popup-box" wx:if="{{dialogVisible}}" bindtap="handleClose"></view>
+  <view class="info-center" style="top:{{height*0.3}}px;" wx:if="{{dialogVisible}}">
+    <view class="block1">
+      <t-radio-group value="{{invitee}}" borderless t-class="box" class="radioBox" bind:change="onInviteeChange">
+        <t-radio block="{{false}}" label="鍚屼即" value="classmate" class="radio" />
+        <t-radio block="{{false}}" label="鑰佸笀" value="teacher" class="radio" />
+      </t-radio-group>
+    </view>
+    <view class="buttonBox">
+      <t-button class="btn" theme="primary" bind:tap="handleClose">
+        <view slot="content" class="btn-content">鍙栨秷</view>
+      </t-button>
+      
+      <t-button class="btn" theme="primary" bind:tap="confirmBtn1" wx:if="{{invitee == 'teacher' &&teacherEvaluated}}">
+        <view slot="content" class="btn-content">纭畾</view>
+      </t-button>
+      <t-button class="btn" theme="primary" bind:tap="confirmBtn" open-type="share" wx:else>
+        <view slot="content" class="btn-content">纭畾</view>
+      </t-button>
+    </view>
+  </view>
 </view>
\ No newline at end of file

--
Gitblit v1.9.1