From c0ff00c32bca4077b140d0d69b2863851ae31273 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期二, 08 七月 2025 16:29:17 +0800 Subject: [PATCH] 优化 --- packageBookService/pages/bookServices/detail/index.wxml | 26 ++++++++++---------------- 1 files changed, 10 insertions(+), 16 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/index.wxml b/packageBookService/pages/bookServices/detail/index.wxml index 6121d79..e4b7307 100644 --- a/packageBookService/pages/bookServices/detail/index.wxml +++ b/packageBookService/pages/bookServices/detail/index.wxml @@ -7,7 +7,7 @@ <view class="page-bookService" wx:if="{{!pageLoading}}"> <t-toast id="t-toast" /> <movable-area class="movable-area"> - <scroll-view scroll-y="{{true}}" class="book" bindscrolltolower="onReachBottom"> + <scroll-view scroll-y="{{true}}" class="book" bindscrolltolower="onReachBottom" scroll-with-animation="{{true}}" scroll-top="{{scrollTop}}"> <!-- 鍥句功璇︽儏 --> <view class="book-box"> <view class="book-detail" id="book-detail"> @@ -30,7 +30,7 @@ <view class="use-title">寤鸿</view> </view> <view class="suggest" bindtap="editPhone"> - <t-icon class="editIcon" style="color: rgb(194, 194, 194);" name="calendar-edit" size="40rpx" /> + <t-icon class="editIcon" style="color: rgb(194, 194, 194)" name="calendar-edit" size="40rpx" /> <view class="use-title">鑱旂郴</view> </view> </view> @@ -48,10 +48,10 @@ </view> <view class="message-li" wx:if="{{bookDetail.isbn}}"> <view class="li-title">ISBN锛�</view> - <view class="li-content">{{bookDetail.isbn}}</view> + <view bindtap="showISBN" class="li-content">{{bookDetail.isbn}}</view> </view> <view class="message-li" wx:if="{{bookDetail.publicationDate}}"> - <view class="li-title">鍑虹増鏃堕棿锛�</view> + <view class="li-title">鍑虹増(閲嶅嵃)鏃堕棿锛�</view> <view class="li-content">{{bookDetail.publicationDate}}</view> </view> <view class="message-li" wx:if="{{bookClass.length}}" style="height: 80rpx"> @@ -106,17 +106,11 @@ <empty /> </view> </t-tab-panel> - <!-- <t-tab-panel - label="鐢靛瓙涔�" - icon="{{tabValue == 'jsek_eBook' ? eBookClickIcon : eBookIcon}}" - value="jsek_eBook" - style="{{tabPanelstyle}}" - > - </t-tab-panel> --> + <t-tab-panel label="鏁欏璧勬簮" icon="{{tabValue == 'jsek_teachingResources' ? teachResourcesClickIcon : teachResourcesIcon}}" value="jsek_teachingResources" class="{{loading ? 'loading': ''}}"> <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> - <tree id="teach-tree" openIds="{{openTeachids}}" bookInfo="{{bookDetail}}" treeList="{{teach}}" tab="{{tabValue}}" applyState="{{applyState}}" deadline="{{deadline}}" bind:downloadTeach="downloadTeach" bind:handleTree="handleTree" openTeachids="{{openTeachids}}" wx:if="{{teach.length}}" isShoppingCart="isShoppingCart" bind:updateCloudLearning="updateCloudLearning"></tree> + <tree id="teach-tree" openIds="{{openTeachids}}" bookInfo="{{bookDetail}}" treeList="{{teach}}" tab="{{tabValue}}" applyState="{{applyState}}" deadline="{{deadline}}" bind:downloadTeach="downloadTeach" bind:handleTree="handleTree" openTeachids="{{openTeachids}}" source="{{source}}" activeId="{{activeId}}" wx:if="{{teach.length}}" isShoppingCart="isShoppingCart" bind:updateCloudLearning="updateCloudLearning" bind:handleScrollTop="handleScrollTop"></tree> </view> <view wx:if="{{loading}}" style="width: 100%; height: min-content"> <t-skeleton row-col="{{rowCol}}" theme="paragraph" animation="gradient" loading="{{loading}}"></t-skeleton> @@ -129,7 +123,7 @@ <view wx:if="{{!loading && learn.length}}"> <learn-resource bind:getFreeResource="getFreeResource" bind:allAddShoppiingCar="allAddShoppiingCar" id="learn-resource" buyResourceData="{{buyResourceData}}" bookId="{{bookDetail.id}}" isshowDrawBtn="{{isshowDrawBtn}}" successOrderNumber="{{successOrderNumber}}" isGoBuyResource="{{isGoBuyResource}}" isShowBuyCloundMenu="{{isShowBuyCloundMenu}}" isShowBuyCloundBtn="{{isShowBuyCloundBtn}}" bind:buyCloudLearnClass="buyCloudLearnClass" learnTaskData="{{learnTaskData}}"></learn-resource> - <tree id="tree" openIds="{{openLearnids}}" 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> + <tree id="tree" openIds="{{openLearnids}}" bookInfo="{{bookDetail}}" tab="{{tabValue}}" treeList="{{learn}}" learnList="{{learn}}" buyIds="{{buyIdList}}" openLearnids="{{openLearnids}}" cloundMenuIsBuy="{{cloundMenuIsBuy}}" learnMenu="{{learnMenu}}" isCloundHaveSaleMethod="{{isCloundHaveSaleMethod}}" source="{{source}}" activeId="{{activeId}}" bind:updateShoppingCartHidden="updateShoppingCartHidden" bind:updateCloudLearning="updateCloudLearning" bind:getCloundIsBuy="getCloundIsBuy" bind:handleScrollTop="handleScrollTop"></tree> </view> <view wx:if="{{noResources && !loading}}" class="noData"> <empty /> @@ -159,7 +153,7 @@ </movable-view> </movable-area> <!-- 鑱旂郴缂栬緫寮圭獥 --> - <t-dialog visible="{{editDialog}}" close-btn> + <t-dialog visible="{{editDialog}}" close-btn bind:close="closeEditDialog"> <view slot="content" class="editContent"> <view class="editText">鍥句功缂栬緫锛歿{bookDetail.bookEditor}}</view> <view class="editText">鑱旂郴鏂瑰紡锛歿{bookDetail.contactInformation}}</view> @@ -183,7 +177,7 @@ </view> <view class="btn-text">绾歌川鏍蜂功鐢宠</view> </view> - <view class="{{!bookBuy && bookDetail.isSell ? 'bottom-btn tryRead' : 'bottom-btn try'}}" bind:tap="goRead" wx:if="{{!bookBuy || applicationState == 'overdue'}}"> + <view class="{{!bookBuy ? 'bottom-btn tryRead' : 'bottom-btn try'}}" bind:tap="goRead" data-type="freeFile" wx:if="{{!bookBuy || applicationState == 'overdue'}}"> <view> <t-image src="/static/images/bookService/detail/shidu.png"></t-image> </view> @@ -193,7 +187,7 @@ <view class="shopCar shopCarColor" bind:tap="addBookShopcCar" wx:if="{{!bookBuy && bookDetail.price !== '0.00' && bookDetail.isSell == '1'}}">鍔犲叆璐墿杞�</view> <view class="buy buyColor" bind:tap="buyBtn" wx:if="{{!bookBuy && bookDetail.price !== '0.00' && bookDetail.isSell == '1'}}">绔嬪嵆璐拱</view> <view class="buy receiveColor" bind:tap="buyBtn" wx:if="{{!bookBuy && bookDetail.price == '0.00' && bookDetail.isSell == '1'}}">鍏嶈垂棰嗗彇</view> - <view class="buy read" bind:tap="goRead" wx:if="{{bookBuy || applicationState == 'Normal'}}">绔嬪嵆鏌ョ湅</view> + <view class="buy read" bind:tap="goRead" data-type="file" wx:if="{{bookBuy || applicationState == 'Normal'}}">绔嬪嵆鏌ョ湅</view> </view> </view> <view wx:if="{{dialogBox}}"> -- Gitblit v1.9.1