| | |
| | | "pages/bindInfo/index", |
| | | "pages/bookExhibitionList/select/select", |
| | | "pages/digitalTextbooks/index", |
| | | "pages/digitalTextbooks/digitalTextbooksDetails/index" |
| | | "pages/digitalTextbooks/digitalTextbooksDetails/index", |
| | | "pages/digitalTextbooks/digitalTextbooksDetails/components/webView/index" |
| | | ], |
| | | "subPackages": [ |
| | | { |
| | |
| | | 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 seminar ="jsek_seminar";//书展 |
| | | |
| | | export const reg_tel = |
| | |
| | | epubUrl, |
| | | pdfUrl, |
| | | appId, |
| | | textReaderUrl |
| | | }; |
| | | export default config; |
New file |
| | |
| | | // pages/digitalTextbooks/digitalTextbooksDetails/components/webView/index.js |
| | | const app = getApp() |
| | | Page({ |
| | | |
| | | /** |
| | | * 页面的初始数据 |
| | | */ |
| | | data: { |
| | | URL: '' |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面加载 |
| | | */ |
| | | onLoad(options) { |
| | | console.log(options); |
| | | |
| | | let token = wx.getStorageSync(app.config.tokenKey) |
| | | this.setData({ |
| | | URL: app.config.textReaderUrl + '?bookId=' + options.refCode + "&tryPageCount=" + options.probationPage + "&token=" + token |
| | | }) |
| | | console.log(this.data.URL); |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面初次渲染完成 |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面显示 |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面隐藏 |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面卸载 |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页面相关事件处理函数--监听用户下拉动作 |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页面上拉触底事件的处理函数 |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 用户点击右上角分享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
New file |
| | |
| | | { |
| | | "usingComponents": {} |
| | | } |
New file |
| | |
| | | <!--pages/digitalTextbooks/digitalTextbooksDetails/components/webView/index.wxml--> |
| | | <web-view src="{{URL}}"></web-view> |
New file |
| | |
| | | /* pages/digitalTextbooks/digitalTextbooksDetails/components/webView/index.wxss */ |
| | |
| | | isFavourite: true, |
| | | richStyle: 'font-size: 28rpx;color: #333; line-height: 48rpx;text-align: justify;margin: 20rpx; ', |
| | | briefIconClick: { |
| | | name: "/static/images/bookService/detail/tushujianjie-click.png", |
| | | name: "/static/images/bookService/detail/tushujianjie-g.png", |
| | | }, |
| | | relatedBookData: [], |
| | | publicationDate: '', |
| | |
| | | duration: 1000, |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | // console.log(item, app.config.textReaderUrl); |
| | | // console.log(token); |
| | | goRead() { |
| | | |
| | | const item = this.data.digitalsData |
| | | |
| | | let token = wx.getStorageSync(app.config.tokenKey) |
| | | console.log(); |
| | | const URL = app.config.textReaderUrl + '?bookId=' + item.refCode + "&tryPageCount=" + item.probationPage + "&token=" + token |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | wx.navigateTo({ |
| | | url: '/pages/digitalTextbooks/digitalTextbooksDetails/components/webView/index?refCode=' + item.refCode + "&tryPageCount=" + item.probationPage |
| | | }); |
| | | |
| | | } |
| | | }) |
| | |
| | | </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> |
| | | |
| | |
| | | </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> |
| | | |
| | |
| | | <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> |
| | |
| | | |
| | | </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> |
| | |
| | | <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" /> |
| | |
| | | |
| | | .t-tabs__item-inner { |
| | | flex-direction: column; |
| | | color: #ff6c00; |
| | | /* color: #ff6c00; */ |
| | | } |
| | | |
| | | .t-tabs__item--active { |
| | |
| | | } |
| | | |
| | | .buyColor { |
| | | width: 50%; |
| | | width: 100%; |
| | | height: 110rpx; |
| | | border-right: 1px solid #DDD; |
| | | color: #fff; |