From 8aeddcf766df9f7e3061d4d098b57afdf53db896 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期四, 19 十二月 2024 15:28:07 +0800 Subject: [PATCH] 骨架屏及选择选中后自动跳转 --- packageBookService/pages/bookServices/detail/index.wxml | 78 +++++++++++++++++++++------------------ 1 files changed, 42 insertions(+), 36 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/index.wxml b/packageBookService/pages/bookServices/detail/index.wxml index da17adf..5d4d56a 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" + md5List="{{md5List}}" applyResourceLoading="{{applyResourceLoading}}" bind:uploadFile="uploadFile" ></teach-resource> @@ -242,12 +225,6 @@ bind:updateCloudLearning="updateCloudLearning" ></tree> </view> - <!-- <t-loading - theme="circular" - size="60rpx" - class="loading" - loading="{{loading }}" - /> --> <view wx:if="{{loading}}" style="width: 100%; height: min-content"> <t-skeleton row-col="{{rowCol}}" @@ -257,7 +234,6 @@ ></t-skeleton> </view> <view wx:if="{{noResources && !loading}}" class="noData"> - <!-- <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> --> <empty /> </view> </t-tab-panel> @@ -277,6 +253,10 @@ isshowDrawBtn="{{isshowDrawBtn}}" successOrderNumber="{{successOrderNumber}}" isGoBuyResource="{{isGoBuyResource}}" + isShowBuyCloundMenu="{{isShowBuyCloundMenu}}" + isShowBuyCloundBtn="{{isShowBuyCloundBtn}}" + bind:buyCloudLearnClass="buyCloudLearnClass" + learnTaskData="{{learnTaskData}}" ></learn-resource> <tree @@ -285,14 +265,18 @@ bookInfo="{{bookDetail}}" tab="{{tabValue}}" treeList="{{learn}}" + learnList="{{learn}}" buyIds="{{buyIdList}}" openLearnids="{{openLearnids}}" + cloundMenuIsBuy="{{cloundMenuIsBuy}}" + learnMenu="{{learnMenu}}" + isCloundHaveSaleMethod="{{isCloundHaveSaleMethod}}" bind:updateShoppingCartHidden="updateShoppingCartHidden" bind:updateCloudLearning="updateCloudLearning" + bind:getCloundIsBuy="getCloundIsBuy" ></tree> </view> <view wx:if="{{noResources && !loading}}" class="noData"> - <!-- <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> --> <empty /> </view> </t-tab-panel> @@ -306,6 +290,9 @@ <test-resource id="test-resource" list="{{test}}" + bankSaleData="{{bankSaleData}}" + isBuyBank="{{isBuyBank}}" + isShoppingBank="{{isShoppingBank}}" bookInfo="{{bookDetail}}" openIds="{{openLearnids}}" mockData="{{mockData}}" @@ -313,6 +300,8 @@ storeInfo="{{options.storeInfo}}" jslx="{{jslx}}" bind:buyMock="buyMock" + bind:buyBank="buyBank" + bind:handleShoppingBank="handleShoppingBank" ></test-resource> </view> </t-tab-panel> @@ -451,14 +440,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"> @@ -491,7 +496,7 @@ wx:if="{{!isShowUp && fileList.length > 0}}" class="fileList" > - <text>{{fileList[0].name}}</text> + <text class="fileName">{{fileList[0].name}}</text> <image src="/static/images/bookService/detail/deleteHover.png" class="deleteBtn" @@ -522,6 +527,7 @@ </view> </view> </view> + <view class="popupBox"> <t-popup visible="{{protocolShow}}" -- Gitblit v1.9.1