From 66fbb1ea7c1ee4bf4353d0ffa16ff14a1a718c8f Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期四, 06 六月 2024 18:39:56 +0800 Subject: [PATCH] 数字教材icon --- pages/digitalTextbooks/digitalTextbooksDetails/index.js | 45 ++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 40 insertions(+), 5 deletions(-) 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}.`); }, // 鑾峰彇鐩稿叧鏁欐潗 -- Gitblit v1.9.1