From cfd502b3e4c27bf8d0d92002e918835dccb06e05 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期四, 19 九月 2024 21:05:51 +0800
Subject: [PATCH] 云学习资源购买按钮

---
 packageBookService/pages/bookServices/detail/index.wxml |   63 ++++++++++++++++---------------
 1 files changed, 32 insertions(+), 31 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/index.wxml b/packageBookService/pages/bookServices/detail/index.wxml
index da17adf..75e12b4 100644
--- a/packageBookService/pages/bookServices/detail/index.wxml
+++ b/packageBookService/pages/bookServices/detail/index.wxml
@@ -1,8 +1,6 @@
 <!--pages/bookServices/detail/index.wxml-->
 <import src="index.skeleton.wxml" />
 <template is="skeleton" wx:if="{{pageLoading}}" />
-<!-- pageLoading -->
-<!--瀵艰埅鍖哄煙 -->
 
 <suggest-dialog
   class="suggest-dialog"
@@ -12,20 +10,6 @@
 ></suggest-dialog>
 <!-- <popup showIndex="{{showIndex}}"></popup> -->
 <view class="page-bookService" wx:if="{{!pageLoading}}">
-  <!-- <view style="width: 100%; height: {{barHeight}}px; "></view>
-  <view class="nacigationBar" style="width: 100%; height: {{navBarHeight}}px;">
-    <view>
-      <t-icon
-        name="chevron-left"
-        size="30"
-        data-name="{{item}}"
-        bind:click="goBack"
-      />
-    </view>
-    <view class="navbar-title" style="width: 100%">
-      <text>{{options.name}}</text>
-    </view>
-  </view> -->
   <t-toast id="t-toast" />
   <movable-area class="movable-area">
     <scroll-view
@@ -215,14 +199,13 @@
             value="jsek_teachingResources"
             class="{{loading ? 'loading': ''}}"
           >
-            <view
-              wx:if="{{!loading && teach.length && !noResources && applyState}}"
-            >
+            <view wx:if="{{!loading  && applyState}}">
               <teach-resource
                 applyState="{{applyState}}"
                 rejectCause="{{rejectCause}}"
                 deadline="{{deadline}}"
                 bind:applyResource="applyResource"
+                treeList="{{teach}}"
                 applyResourceLoading="{{applyResourceLoading}}"
                 bind:uploadFile="uploadFile"
               ></teach-resource>
@@ -256,10 +239,6 @@
                 loading="{{loading}}"
               ></t-skeleton>
             </view>
-            <view wx:if="{{noResources && !loading}}" class="noData">
-              <!-- <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> -->
-              <empty />
-            </view>
           </t-tab-panel>
           <t-tab-panel
             label="浜戝涔�"
@@ -277,6 +256,9 @@
                 isshowDrawBtn="{{isshowDrawBtn}}"
                 successOrderNumber="{{successOrderNumber}}"
                 isGoBuyResource="{{isGoBuyResource}}"
+                isShowBuyCloundMenu="{{isShowBuyCloundMenu}}"
+                isShowBuyCloundBtn="{{isShowBuyCloundBtn}}"
+                bind:buyCloudLearnClass="buyCloudLearnClass"
               ></learn-resource>
 
               <tree
@@ -287,8 +269,10 @@
                 treeList="{{learn}}"
                 buyIds="{{buyIdList}}"
                 openLearnids="{{openLearnids}}"
+                cloundMenuIsBuy="{{cloundMenuIsBuy}}"
                 bind:updateShoppingCartHidden="updateShoppingCartHidden"
                 bind:updateCloudLearning="updateCloudLearning"
+                bind:getCloundIsBuy="getCloundIsBuy"
               ></tree>
             </view>
             <view wx:if="{{noResources && !loading}}" class="noData">
@@ -451,14 +435,30 @@
           <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 class="inputBox1">
+                <t-input placeholder="杈撳叆璧勬簮绫诲瀷" borderless value="{{resourceInfo.fileType}}" bindchange="onFileTypeInput" />
+              </view> -->
+              <t-cell
+                class="mb-16"
+                title=""
+                arrow
+                hover
+                note="{{resourceInfo.fileType}}"
+                bind:click="onResourcePicker"
+              />
+              <t-picker
+                visible="{{resourceVisible}}"
+                value="{{resourceValue}}"
+                data-key="resource"
+                title="閫夋嫨璧勬簮绫诲瀷"
+                cancelBtn="鍙栨秷"
+                confirmBtn="纭"
+                usingCustomNavbar
+                bindchange="onPickerChange"
+                bindcancel="onPickerCancel"
+              >
+                <t-picker-item options="{{fileTypeList}}" />
+              </t-picker>
             </view>
           </view>
           <view class="from-item">
@@ -522,6 +522,7 @@
     </view>
   </view>
 </view>
+
 <view class="popupBox">
   <t-popup
     visible="{{protocolShow}}"

--
Gitblit v1.9.1