From ac4e010be3eda5da61d9a3e31748b3395ecfe822 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期日, 08 九月 2024 17:47:51 +0800
Subject: [PATCH] bug

---
 packageBookService/pages/bookServices/detail/index.wxml |  144 +++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 137 insertions(+), 7 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/index.wxml b/packageBookService/pages/bookServices/detail/index.wxml
index 0dd9e4d..da17adf 100644
--- a/packageBookService/pages/bookServices/detail/index.wxml
+++ b/packageBookService/pages/bookServices/detail/index.wxml
@@ -183,13 +183,14 @@
           class="tab-class"
         >
           <t-tab-panel
-            label="鍥句功绠�浠�"
+            label="鍥句功淇℃伅"
             icon="{{ tabValue == 'brief' ? briefIconClick : briefIcon}}"
             value="brief"
             style="{{tabPanelstyle}}"
           >
             <book-brief
               content="{{bookDetail.content}}"
+              catalogue="{{bookDetail.catalogue}}"
               authorIntroduction="{{bookDetail.authorIntroduction}}"
               wx:if="{{bookDetail.content || bookDetail.authorIntroduction}}"
             ></book-brief>
@@ -197,7 +198,8 @@
               wx:if="{{!bookDetail.content && !bookDetail.authorIntroduction && !loading}}"
               class="noData"
             >
-              <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" />
+              <!-- <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> -->
+              <empty />
             </view>
           </t-tab-panel>
           <!-- <t-tab-panel
@@ -222,6 +224,7 @@
                 deadline="{{deadline}}"
                 bind:applyResource="applyResource"
                 applyResourceLoading="{{applyResourceLoading}}"
+                bind:uploadFile="uploadFile"
               ></teach-resource>
               <tree
                 id="teach-tree"
@@ -254,7 +257,8 @@
               ></t-skeleton>
             </view>
             <view wx:if="{{noResources && !loading}}" class="noData">
-              <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" />
+              <!-- <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> -->
+              <empty />
             </view>
           </t-tab-panel>
           <t-tab-panel
@@ -288,7 +292,8 @@
               ></tree>
             </view>
             <view wx:if="{{noResources && !loading}}" class="noData">
-              <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" />
+              <!-- <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> -->
+              <empty />
             </view>
           </t-tab-panel>
           <t-tab-panel
@@ -302,7 +307,11 @@
                 id="test-resource"
                 list="{{test}}"
                 bookInfo="{{bookDetail}}"
+                openIds="{{openLearnids}}"
                 mockData="{{mockData}}"
+                tab="{{tabValue}}"
+                storeInfo="{{options.storeInfo}}"
+                jslx="{{jslx}}"
                 bind:buyMock="buyMock"
               ></test-resource>
             </view>
@@ -382,7 +391,7 @@
     <view
       class="{{!bookBuy && bookDetail.isSell ? 'bottom-btn tryRead' : 'bottom-btn try'}}"
       bind:tap="goRead"
-      wx:if="{{!bookBuy}}"
+      wx:if="{{!bookBuy || applicationState == 'overdue'}}"
     >
       <view>
         <t-image src="/static/images/bookService/detail/shidu.png"></t-image>
@@ -408,10 +417,131 @@
       wx:if="{{!bookBuy && bookDetail.price == '0.00' && bookDetail.isSell == '1'}}"
       >鍏嶈垂棰嗗彇</view
     >
-    <view class="buy read" bind:tap="goRead" wx:if="{{bookBuy}}">绔嬪嵆鏌ョ湅</view>
+    <view
+      class="buy read"
+      bind:tap="goRead"
+      wx:if="{{bookBuy || applicationState == 'Normal'}}"
+      >绔嬪嵆鏌ョ湅</view
+    >
   </view>
 </view>
-
+<view wx:if="{{dialogBox}}">
+  <view class="popup-box" bindtap="closeDialog"></view>
+  <view class="info-center">
+    <view>
+      <view class="row-info">
+        <view class="body">
+          <view class="dialog-title">鏂囦欢涓婁紶</view>
+          <view
+            style="width: 100%; height: 2rpx; background-color: #f4f4f4"
+          ></view>
+          <view class="from-item">
+            <view class="label"> <text class="icon">*</text>璧勬簮鍚嶇О: </view>
+            <view class="item-content">
+              <view class="inputBox1">
+                <t-input
+                  placeholder="杈撳叆璧勬簮鍚嶇О"
+                  borderless
+                  value="{{resourceInfo.resourceName}}"
+                  bindchange="onNameInput"
+                />
+              </view>
+            </view>
+          </view>
+          <view class="from-item">
+            <view class="label"> <text class="icon">*</text>璧勬簮绫诲瀷: </view>
+            <view class="item-content">
+              <view class="inputBox1">
+                <t-input
+                  placeholder="杈撳叆璧勬簮绫诲瀷"
+                  borderless
+                  value="{{resourceInfo.fileType}}"
+                  bindchange="onFileTypeInput"
+                />
+              </view>
+            </view>
+          </view>
+          <view class="from-item">
+            <view class="label">鏂囦欢鎻忚堪:</view>
+            <view class="item-content">
+              <view class="inputBox1">
+                <t-textarea
+                  placeholder="璇疯緭鍏ユ枃浠舵弿杩�"
+                  value="{{resourceInfo.description}}"
+                  disableDefaultPadding="{{true}}"
+                  autosize="{{true}}"
+                  maxlength="300"
+                  indicator
+                  bind:change="textareaChange"
+                />
+              </view>
+            </view>
+          </view>
+          <view class="from-item">
+            <view class="label"> <text class="icon">*</text>涓婁紶鏂囦欢: </view>
+            <view class="item-content">
+              <t-button
+                size="small"
+                class="right-btn"
+                bind:tap="uploadPicture"
+                wx:if="{{isShowUp}}"
+                >鐐瑰嚮涓婁紶</t-button
+              >
+              <view
+                wx:if="{{!isShowUp && fileList.length > 0}}"
+                class="fileList"
+              >
+                <text>{{fileList[0].name}}</text>
+                <image
+                  src="/static/images/bookService/detail/deleteHover.png"
+                  class="deleteBtn"
+                  data-md5="{{fileList[0].md5}}"
+                  bind:tap="handleRemove"
+                />
+              </view>
+            </view>
+            <view class="tip">娉細鏂囦欢澶у皬涓嶅緱瓒呰繃50MB</view>
+          </view>
+          <view class="from-item">
+            <view class="protocolBox">
+              <t-checkbox
+                label="鍚屾剰"
+                icon="rectangle"
+                checked="{{resourceInfo.agree}}"
+                bind:change="onChange"
+              />
+              <text class="wait" bind:tap="getAgreement">銆婃巿鏉冨悓鎰忎功銆�</text>
+            </view>
+          </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="popupBox">
+  <t-popup
+    visible="{{protocolShow}}"
+    bind:visible-change="onVisibleChange"
+    placement="center"
+  >
+    <view class="block">
+      <view class="protocol">
+        <rich-text space="emsp" nodes="{{protocolTxt}}" class="content" />
+      </view>
+      <t-icon
+        t-class="close-btn"
+        name="close-circle"
+        size="32"
+        color="#fff"
+        bind:tap="onCloseProtocol"
+      />
+    </view>
+  </t-popup>
+</view>
 <!-- <view class="loading" wx:if="{{pageLoading}}">
   <t-loading loading="{{pageLoading}}" size="40"></t-loading>
 </view> -->

--
Gitblit v1.9.1