From 66fbb1ea7c1ee4bf4353d0ffa16ff14a1a718c8f Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期四, 06 六月 2024 18:39:56 +0800
Subject: [PATCH] 数字教材icon

---
 static/images/digitalTextbooks/zhengshushenqing@2x.png    |    0 
 static/images/digitalTextbooks/shengshu-t@2x.png          |    0 
 static/images/digitalTextbooks/zhengshu@2x.png            |    0 
 static/images/digitalTextbooks/mulu@2x.png                |    0 
 static/images/digitalTextbooks/Suggestion@2x.png          |    0 
 static/images/digitalTextbooks/zuozhejianjie@2x.png       |    0 
 static/images/digitalTextbooks/shidu@2x.png               |    0 
 static/images/digitalTextbooks/wodeshoucang@2x.png        |    0 
 static/images/digitalTextbooks/square@2x.png              |    0 
 static/images/digitalTextbooks/jibenxinxi-t@2x.png        |    0 
 pages/digitalTextbooks/digitalTextbooksDetails/index.wxml |   10 +++++-----
 static/images/digitalTextbooks/jibenxinxi @2x.png         |    0 
 static/images/digitalTextbooks/link-t@2x.png              |    0 
 static/images/digitalTextbooks/zuozhejianjie-t@2x.png     |    0 
 static/images/digitalTextbooks/Link@2x.png                |    0 
 assets/js/config.js                                       |    2 +-
 pages/digitalTextbooks/digitalTextbooksDetails/index.js   |   45 ++++++++++++++++++++++++++++++++++++++++-----
 17 files changed, 46 insertions(+), 11 deletions(-)

diff --git a/assets/js/config.js b/assets/js/config.js
index 870c6e7..4bf5cc6 100644
--- a/assets/js/config.js
+++ b/assets/js/config.js
@@ -16,7 +16,7 @@
 export const digitalTextbooks = "jsek_digitalTextbooks"; //鏁板瓧鏁欐潗
 export const seminar = "jsek_seminar"; //涓撻鐮旇
 export const digitalRead = "jsek_digitalReading"; //鏁板瓧闃呰
-export const textReaderUrl = "http://182.92.203.7:3007/testBookReader/#/home"; //鏁板瓧鏁欐潗闃呰鍣�
+export const textReaderUrl = "https://jsek.bnuic.com/testBookReader/#/home"; //鏁板瓧鏁欐潗闃呰鍣�
 // export const seminar ="jsek_seminar";//涔﹀睍
 
 export const reg_tel =
diff --git a/pages/digitalTextbooks/digitalTextbooksDetails/index.js b/pages/digitalTextbooks/digitalTextbooksDetails/index.js
index bf850f1..4d4a664 100644
--- a/pages/digitalTextbooks/digitalTextbooksDetails/index.js
+++ b/pages/digitalTextbooks/digitalTextbooksDetails/index.js
@@ -11,13 +11,42 @@
     digitalsData: {},
     isFavourite: true,
     richStyle: 'font-size: 28rpx;color: #333; line-height: 48rpx;text-align: justify;margin: 20rpx; ',
-    briefIconClick: {
-      name: "/static/images/bookService/detail/tushujianjie-g.png",
-    },
+    tabValue: "brief",
     relatedBookData: [],
     publicationDate: '',
     isBuy: false,
     loading: true,
+    briefIcon: {
+      name: "/static/images/digitalTextbooks/jibenxinxi-t@2x.png",
+    },
+    briefIconClick: {
+      name: "/static/images/digitalTextbooks/jibenxinxi @2x.png",
+    },
+    eBookIcon: {
+      name: "/static/images/digitalTextbooks/zuozhejianjie-t@2x.png",
+    },
+    eBookClickIcon: {
+      name: "/static/images/digitalTextbooks/zuozhejianjie@2x.png",
+    },
+    teachResourcesIcon: {
+      name: "/static/images/digitalTextbooks/zuozhejianjie-t@2x.png",
+    },
+    teachResourcesClickIcon: {
+      name: "/static/images/digitalTextbooks/zuozhejianjie@2x.png",
+    },
+    learnResourceIcon: {
+      name: "/static/images/digitalTextbooks/shengshu-t@2x.png",
+    },
+    learnResourceClickIcon: {
+      name: "/static/images/digitalTextbooks/zhengshu@2x.png",
+    },
+    testResourceIocn: {
+      name: "/static/images/digitalTextbooks/link-t@2x.png",
+    },
+    testResourceClickIocn: {
+      name: "/static/images/digitalTextbooks/Link@2x.png",
+    }
+
   },
 
   /**
@@ -233,11 +262,17 @@
     }
   },
   onTabsChange(event) {
-    console.log(`Change tab, tab-panel value is ${event.detail.value}.`);
+
+    this.setData({
+      tabValue: event.detail.value,
+    })
+
+
+    console.log(this.data.tabValue);
   },
 
   onTabsClick(event) {
-    console.log(`Click tab, tab-panel value is ${event.detail.value}.`);
+    // console.log(`Click tab, tab-panel value is ${event.detail.value}.`);
   },
 
   // 鑾峰彇鐩稿叧鏁欐潗
diff --git a/pages/digitalTextbooks/digitalTextbooksDetails/index.wxml b/pages/digitalTextbooks/digitalTextbooksDetails/index.wxml
index f22d311..f562330 100644
--- a/pages/digitalTextbooks/digitalTextbooksDetails/index.wxml
+++ b/pages/digitalTextbooks/digitalTextbooksDetails/index.wxml
@@ -64,8 +64,8 @@
     </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="" />
@@ -77,7 +77,7 @@
           </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="" />
@@ -90,7 +90,7 @@
 
 
         </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">
@@ -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">
diff --git a/static/images/digitalTextbooks/Link@2x.png b/static/images/digitalTextbooks/Link@2x.png
new file mode 100644
index 0000000..9c0a5f8
--- /dev/null
+++ b/static/images/digitalTextbooks/Link@2x.png
Binary files differ
diff --git a/static/images/digitalTextbooks/Suggestion@2x.png b/static/images/digitalTextbooks/Suggestion@2x.png
new file mode 100644
index 0000000..9c1b2fd
--- /dev/null
+++ b/static/images/digitalTextbooks/Suggestion@2x.png
Binary files differ
diff --git a/static/images/digitalTextbooks/jibenxinxi @2x.png b/static/images/digitalTextbooks/jibenxinxi @2x.png
new file mode 100644
index 0000000..54efa98
--- /dev/null
+++ b/static/images/digitalTextbooks/jibenxinxi @2x.png
Binary files differ
diff --git a/static/images/digitalTextbooks/jibenxinxi-t@2x.png b/static/images/digitalTextbooks/jibenxinxi-t@2x.png
new file mode 100644
index 0000000..34d4330
--- /dev/null
+++ b/static/images/digitalTextbooks/jibenxinxi-t@2x.png
Binary files differ
diff --git a/static/images/digitalTextbooks/link-t@2x.png b/static/images/digitalTextbooks/link-t@2x.png
new file mode 100644
index 0000000..0a91a49
--- /dev/null
+++ b/static/images/digitalTextbooks/link-t@2x.png
Binary files differ
diff --git a/static/images/digitalTextbooks/mulu@2x.png b/static/images/digitalTextbooks/mulu@2x.png
new file mode 100644
index 0000000..59c366b
--- /dev/null
+++ b/static/images/digitalTextbooks/mulu@2x.png
Binary files differ
diff --git a/static/images/digitalTextbooks/shengshu-t@2x.png b/static/images/digitalTextbooks/shengshu-t@2x.png
new file mode 100644
index 0000000..82a12e8
--- /dev/null
+++ b/static/images/digitalTextbooks/shengshu-t@2x.png
Binary files differ
diff --git a/static/images/digitalTextbooks/shidu@2x.png b/static/images/digitalTextbooks/shidu@2x.png
new file mode 100644
index 0000000..d7be0de
--- /dev/null
+++ b/static/images/digitalTextbooks/shidu@2x.png
Binary files differ
diff --git a/static/images/digitalTextbooks/square@2x.png b/static/images/digitalTextbooks/square@2x.png
new file mode 100644
index 0000000..5cd46a4
--- /dev/null
+++ b/static/images/digitalTextbooks/square@2x.png
Binary files differ
diff --git a/static/images/digitalTextbooks/wodeshoucang@2x.png b/static/images/digitalTextbooks/wodeshoucang@2x.png
new file mode 100644
index 0000000..75806f1
--- /dev/null
+++ b/static/images/digitalTextbooks/wodeshoucang@2x.png
Binary files differ
diff --git a/static/images/digitalTextbooks/zhengshu@2x.png b/static/images/digitalTextbooks/zhengshu@2x.png
new file mode 100644
index 0000000..072ca2c
--- /dev/null
+++ b/static/images/digitalTextbooks/zhengshu@2x.png
Binary files differ
diff --git a/static/images/digitalTextbooks/zhengshushenqing@2x.png b/static/images/digitalTextbooks/zhengshushenqing@2x.png
new file mode 100644
index 0000000..3b55940
--- /dev/null
+++ b/static/images/digitalTextbooks/zhengshushenqing@2x.png
Binary files differ
diff --git a/static/images/digitalTextbooks/zuozhejianjie-t@2x.png b/static/images/digitalTextbooks/zuozhejianjie-t@2x.png
new file mode 100644
index 0000000..00d7938
--- /dev/null
+++ b/static/images/digitalTextbooks/zuozhejianjie-t@2x.png
Binary files differ
diff --git a/static/images/digitalTextbooks/zuozhejianjie@2x.png b/static/images/digitalTextbooks/zuozhejianjie@2x.png
new file mode 100644
index 0000000..5fc8a27
--- /dev/null
+++ b/static/images/digitalTextbooks/zuozhejianjie@2x.png
Binary files differ

--
Gitblit v1.9.1