From 5f74b1e6208cc433636498b8d51dbe24bb49a312 Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期四, 06 六月 2024 19:09:08 +0800
Subject: [PATCH] 领取刷新

---
 pages/digitalTextbooks/digitalTextbooksDetails/index.wxml |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/pages/digitalTextbooks/digitalTextbooksDetails/index.wxml b/pages/digitalTextbooks/digitalTextbooksDetails/index.wxml
index 2d8ebfa..f562330 100644
--- a/pages/digitalTextbooks/digitalTextbooksDetails/index.wxml
+++ b/pages/digitalTextbooks/digitalTextbooksDetails/index.wxml
@@ -64,33 +64,33 @@
     </view>
 
     <view style="margin-top: 20rpx;">
-      <t-tabs defaultValue="{{0}}" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs" t-class-content="custom-panel">
-        <t-tab-panel icon="{{ briefIconClick}}" label="鍩烘湰淇℃伅" value="0" style="{{tabPanelstyle}}">
+      <t-tabs defaultValue="{{tabValue}}" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs" t-class-content="custom-panel">
+        <t-tab-panel icon="{{ tabValue == 'brief' ? briefIconClick : briefIcon}}" value="brief" label="鍩烘湰淇℃伅" style="{{tabPanelstyle}}">
           <view class="rubricBox">
             <view class="rubricimgBox">
               <image src="/static/images/bookService/detail/label.png" mode="" />
             </view>
             <view class="basic"> 鍩烘湰淇℃伅</view>
           </view>
-          <view style="margin: 30rpx;">
+          <view style="margin: 30rpx; margin-bottom: 130rpx;">
             <rich-text nodes="{{digitalsData.content}}" style="{{richStyle}}"></rich-text>
           </view>
 
         </t-tab-panel>
-        <t-tab-panel icon="{{ briefIconClick}}" label="浣滆�呬俊鎭�" value="1" style="{{tabPanelstyle}}">
+        <t-tab-panel icon="{{tabValue == 'jsek_teachingResources' ? teachResourcesClickIcon : teachResourcesIcon}}" value="jsek_teachingResources" label="浣滆�呬俊鎭�" style="{{tabPanelstyle}}">
           <view class="rubricBox">
             <view class="rubricimgBox">
               <image src="/static/images/bookService/detail/author.png" mode="" />
             </view>
             <view class="basic"> 浣滆�呬俊鎭�</view>
           </view>
-          <view style="margin: 30rpx;">
+          <view style="margin: 30rpx; margin-bottom: 130rpx;">
             <rich-text nodes="{{digitalsData.authorIntroduction}}" style="{{richStyle}}"></rich-text>
           </view>
 
 
         </t-tab-panel>
-        <t-tab-panel icon="{{ briefIconClick}}" label="鐩綍" value="2" style="{{tabPanelstyle}}">
+        <t-tab-panel icon="{{tabValue == 'jsek_cloudLearning' ? learnResourceClickIcon : learnResourceIcon}}" value="jsek_cloudLearning" label="鐩綍" style="{{tabPanelstyle}}">
 
           <view class="rubricBox">
             <view class="rubricimgBox">
@@ -99,7 +99,7 @@
             <view class="basic"> 鐩綍</view>
           </view>
 
-          <view style="margin: 30rpx;">
+          <view style="margin: 30rpx; margin-bottom: 130rpx;">
 
 
             <rich-text nodes="{{digitalsData.catalogue}}" style="{{richStyle}}"></rich-text>
@@ -108,7 +108,7 @@
 
 
         </t-tab-panel>
-        <t-tab-panel icon="{{ briefIconClick}}" label="鐩稿叧鏁欐潗" value="3" style="{{tabPanelstyle}}">
+        <t-tab-panel icon="{{tabValue == 'questionBank' ? testResourceClickIocn : testResourceIocn}}" value="questionBank" label="鐩稿叧鏁欐潗" style="{{tabPanelstyle}}">
 
 
           <view class="correlation">
@@ -130,7 +130,7 @@
 
     </view>
     <view class="box-bottom">
-      <view class="trialReading" bind:tap="goRead">
+      <view class="trialReading" bind:tap="goRead" wx:if="{{!isBuy}}">
         <view>
           <t-image src="/static/images/bookService/detail/shidu.png"></t-image>
         </view>
@@ -139,8 +139,12 @@
       <view class="shopCarColor" bind:tap="addBookShopcCar" wx:if="{{!isBuy}}">鍔犲叆璐墿杞�</view>
       <view class="buyColor" bind:tap="buyBtn" wx:if="{{!isBuy}}">绔嬪嵆璐拱</view>
       <!-- <view class="buyColor" bind:tap="buyBtn" wx:if="{{digitalsData.price == 0}} ">鍏嶈垂棰嗗彇</view> -->
-      <view class="buyColor" bind:tap="goRead" wx:if="{{isBuy}}">绔嬪嵆闃呰</view>
+      <view class="buyColor" bind:tap="goRead" wx:if="{{isBuy}}">
+        绔嬪嵆闃呰
+      </view>
     </view>
   </view>
 </view>
+
+
 <t-toast id="t-toast" />
\ No newline at end of file

--
Gitblit v1.9.1