| | |
| | | <text>资源购买</text> |
| | | </view> |
| | | </t-button> |
| | | <!-- <t-button class="btn" theme="primary" style="height: 72rpx; font-size: 28rpx;margin:0 20rpx" bind:tap="goLearnTask"> |
| | | <t-button class="btn" theme="primary" style="height: 72rpx; font-size: 28rpx;margin:0 20rpx" bind:tap="goLearnTask"> |
| | | <view slot="content" class="btn-content"> |
| | | <image src="/static/images/bookService/detail/renwudan/icon.png" /> |
| | | <text>学习任务单</text> |
| | | </view> |
| | | </t-button> --> |
| | | </t-button> |
| | | </view> |
| | |
| | | import { |
| | | getPublicImage |
| | | } from "../../../../assets/js/middleGround/tool"; |
| | | import { |
| | | loginInfo |
| | | } from '../../../../assets/js/login'; |
| | | const app = getApp(); |
| | | Page({ |
| | | /** |
| | |
| | | // pages/resourceDetails/document/index.js |
| | | import Toast from 'tdesign-miniprogram/toast/index'; |
| | | const app = getApp() |
| | | import { |
| | | loginInfo |
| | | } from '../../../../assets/js/login'; |
| | | Page({ |
| | | |
| | | /** |
| | |
| | | // pages/resourceDetails/index.js |
| | | const app = getApp() |
| | | const myAudio = wx.createInnerAudioContext(); |
| | | import { |
| | | loginInfo |
| | | } from '../../../../assets/js/login'; |
| | | // innerAudioContext.onPlay(function callback), |
| | | // InnerAudioContext.onTimeUpdate(function callback) |
| | | Page({ |
| | |
| | | // pages/resourceDetails/index.js |
| | | const app = getApp() |
| | | |
| | | import { |
| | | loginInfo |
| | | } from '../../../../assets/js/login'; |
| | | Page({ |
| | | |
| | | /** |
| | |
| | | } |
| | | this.getAboutBook(res.datas.productLinkInfo[res.datas.productLinkInfo.length - 1].LinkPath) |
| | | this.getCertificateList() |
| | | res.datas.content = res.datas.content.replace('../', app.config.requestCtx + '/') |
| | | res.datas.content = res.datas.content && res.datas.content.replace('../', app.config.requestCtx + '/') |
| | | this.setData({ |
| | | lecturerList: lecturer, |
| | | digitalsData: res.datas, |
| | |
| | | } |
| | | }) |
| | | .then((res) => { |
| | | this.setData({ |
| | | relationTextBook: res.datas[0] |
| | | }) |
| | | if (this.data.relationTextBook.purchasedSaleMethodIdList.includes(this.data.relationTextBook.defaultSaleMethodId)) { |
| | | if (res.datas.length > 0) { |
| | | this.setData({ |
| | | isTextBookBuy: true |
| | | relationTextBook: res.datas[0] |
| | | }) |
| | | } else { |
| | | this.setData({ |
| | | isTextBookBuy: false |
| | | }) |
| | | if (this.data.relationTextBook.purchasedSaleMethodIdList.includes(this.data.relationTextBook.defaultSaleMethodId)) { |
| | | this.setData({ |
| | | isTextBookBuy: true |
| | | }) |
| | | } else { |
| | | this.setData({ |
| | | isTextBookBuy: false |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | |
| | | <view>{{isTextBookBuy ? '阅读' : '试看'}}</view> |
| | | </view> |
| | | </view> |
| | | <tree id="test-tree" openIds="{{openTeachids}}" bookInfo="{{digitalsData}}" treeList="{{learnList}}"> |
| | | </tree> |
| | | <view wx:if="{{learnList.length > 0}}"> |
| | | <tree id="test-tree" openIds="{{openTeachids}}" bookInfo="{{digitalsData}}" treeList="{{learnList}}"> |
| | | </tree> |
| | | </view> |
| | | <view wx:if="{{learnList.length == 0}}" class="noData"> |
| | | <empty /> |
| | | </view> |
| | | </view> |
| | | <view wx:if="{{selectActive == 'test'}}"> |
| | | <view class="testBtnBox"> |
| | |
| | | </view> |
| | | </view> |
| | | <testTree id="tree" openIds="{{openTeachids}}" bookInfo="{{digitalsData}}" tab="{{tab}}" treeList="{{testList}}"></testTree> |
| | | <view wx:if="{{testList.length == 0}}" class="noData"> |
| | | <empty /> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="correlation" wx:else> |
| | | <view style="margin-bottom: 30rpx;" wx:for="{{relatedBookData}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="onCorrelationBook"> |
| | | <view class="correlationImage"> |
| | | <image src="{{item.icon}}" mode="" /> |
| | | <image src="{{item.icon}}" mode="" mode="aspectFit" /> |
| | | <img wx:if="{{item.icon == ''}}" src="/static/images/default-book-img.png" alt="" /> |
| | | </view> |
| | | <view class="correlationName">{{item.name}}</view> |
| | |
| | | .correlationImage { |
| | | width: 300rpx; |
| | | height: 180rpx; |
| | | /* background: #D9D9D9; */ |
| | | border: 2rpx solid #ddd; |
| | | } |
| | | |
| | | .correlation { |
| | |
| | | titleBook: "图书(" + res.totalSize + "本)", |
| | | }) |
| | | }) |
| | | // let data1 = { |
| | | // Size: 9999, |
| | | // Start: 0, |
| | | // sort: { |
| | | // type: "Desc", |
| | | // field: "CreateDate", |
| | | // }, |
| | | // searchList: [{ |
| | | // keywords: 'jsek_digitalCourses', |
| | | // field: "ProductType", |
| | | // }], |
| | | // } |
| | | // app.MG.store.getPurchasedProductList(data1).then((res) => { |
| | | // that.setData({ |
| | | // titleCourse: "课程(" + res.totalSize + "门)", |
| | | // }) |
| | | // }) |
| | | let data1 = { |
| | | Size: 9999, |
| | | Start: 0, |
| | | sort: { |
| | | type: "Desc", |
| | | field: "CreateDate", |
| | | }, |
| | | searchList: [{ |
| | | keywords: 'jsek_digitalCourses', |
| | | field: "ProductType", |
| | | }], |
| | | } |
| | | app.MG.store.getPurchasedProductList(data1).then((res) => { |
| | | that.setData({ |
| | | titleCourse: "课程(" + res.totalSize + "门)", |
| | | }) |
| | | }) |
| | | let data2 = { |
| | | Size: 9999, |
| | | Start: 0, |
| | |
| | | url: `/packageBookService/pages/bookServices/detail/index?id=${book.product.id}&name=${book.product.name}`, |
| | | }); |
| | | } |
| | | if (this.data.active == 1) { |
| | | // wx.navigateTo({ |
| | | // url: `/packageBookService/pages/bookServices/detail/index?id=${book.product.id}&name=${book.product.name}`, |
| | | // }); |
| | | } |
| | | // if (this.data.active == 1) { |
| | | // wx.navigateTo({ |
| | | // url: `/pages/digitalCourses/digitalCoursesDetails/index?id=${book.product.id}`, |
| | | // }); |
| | | // } |
| | | if (this.data.active == 2) { |
| | | wx.navigateTo({ |
| | | url: `/pages/digitalTextbooks/digitalTextbooksDetails/index?id=${book.product.id}`, |