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.js | 46 +++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 41 insertions(+), 5 deletions(-) diff --git a/pages/digitalTextbooks/digitalTextbooksDetails/index.js b/pages/digitalTextbooks/digitalTextbooksDetails/index.js index bf850f1..556a12f 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}.`); }, // 鑾峰彇鐩稿叧鏁欐潗 @@ -379,6 +414,7 @@ orderNum: bookOrdersId, }) .then((res) => { + this.digitalTextbooksDetailsGet(this.data.digitalTextId) if (res) { wx.showToast({ title: "棰嗗彇鎴愬姛", -- Gitblit v1.9.1