| | |
| | | // export const appId = 3; |
| | | // export const epubUrl = "http://182.92.203.7:3007/epubReadMobile/"; |
| | | export const epubUrl = "http://jsysf.bnuic.com/epubReadMobile/#/"; |
| | | export const pdfUrl = "http://182.92.203.7:3007/pdfRead/" |
| | | export const requestTimeOut = 300000; // 请求超时时间 |
| | | export const tokenKey = "jsek-token"; |
| | | export const userInfoKey = "website-front-userInfo"; // 用户信息key |
| | |
| | | reg_tel, |
| | | reg_telphone, |
| | | epubUrl, |
| | | pdfUrl, |
| | | appId |
| | | }; |
| | | export default config; |
| | |
| | | return false; |
| | | } |
| | | wx.navigateTo({ |
| | | url: '/packageBookService/pages/components/webView/index?md5=' + this.data.fileInfo.md5 + '&fileName=' + this.data.fileInfo.bookName + '&fileType=' + this.data.fileInfo.fileType + '&freePage=' + this.data.fileInfo.freePage |
| | | url: '/packageBookService/pages/components/webView/index?md5=' + this.data.fileInfo.md5 + '&fileName=' + this.data.fileInfo.bookName + '&fileType=' + this.data.fileInfo.fileType + '&freePage=' + this.data.fileInfo.freePage + '&bookBuy=' + this.data.bookBuy |
| | | }) |
| | | |
| | | }, |
| | |
| | | }, |
| | | |
| | | setWebViewSrc: function (data) { |
| | | var url = app.config.epubUrl + |
| | | "?md5=" + |
| | | data.md5 + |
| | | "&bookName=" + |
| | | data.fileName + |
| | | "&url=" + app.config.requestCtx + |
| | | "&token=" + |
| | | wx.getStorageSync(app.config.tokenKey) + |
| | | "&recordLocation=" + |
| | | this.data.currentPage |
| | | var url = ""; |
| | | if (data.fileType == 'epub') { |
| | | if (data.bookBuy) { |
| | | url = app.config.epubUrl + |
| | | "?md5=" + |
| | | data.md5 + |
| | | "&bookName=" + |
| | | data.fileName + |
| | | "&url=" + app.config.requestCtx + |
| | | "&token=" + |
| | | wx.getStorageSync(app.config.tokenKey) + |
| | | "&recordLocation=" + |
| | | this.data.currentPage |
| | | } else { |
| | | url = app.config.epubUrl + |
| | | "?md5=" + |
| | | data.md5 + |
| | | "&bookName=" + |
| | | data.fileName + |
| | | "&url=" + app.config.requestCtx + |
| | | "&token=" + |
| | | wx.getStorageSync(app.config.tokenKey) + |
| | | "&recordLocation=" + |
| | | this.data.currentPage + "&freeEpubPage=" + data.freePage |
| | | } |
| | | } else { |
| | | url = app.config.pdfUrl + |
| | | "?md5=" + |
| | | data.md5 + |
| | | "&bookName=" + |
| | | data.fileName + |
| | | "&url=" + app.config.requestCtx + |
| | | "&token=" + |
| | | wx.getStorageSync(app.config.tokenKey) + |
| | | "&recordLocation=" + |
| | | this.data.currentPage; |
| | | } |
| | | this.setData({ |
| | | src: url |
| | | }) |
| | |
| | | domain: "bookReadProgress", |
| | | key: this.data.epubObj.md5, |
| | | value: JSON.stringify(data), |
| | | },], |
| | | }, ], |
| | | }) |
| | | .then((res) => { }); |
| | | .then((res) => {}); |
| | | } |
| | | }, |
| | | |
| | |
| | | percentage, |
| | | type |
| | | } = |
| | | e.detail.data[0]; |
| | | e.detail.data[0]; |
| | | if (type == "progress" && type != "backDetail") { |
| | | this.setProgress({ |
| | | page: currentLocation, |
| | |
| | | <!--packageBookService/pages/components/webView/index.wxml--> |
| | | <view class="page-body"> |
| | | <web-view bind:message="drawBack" binderror="onError" bindload="onLoadWeb" src="{{src}}"></web-view> |
| | | <web-view bind:message="drawBack" binderror="onError" bindload="onLoadWeb" src="{{src}}" id="webView"></web-view> |
| | | </view> |
| | |
| | | this.setData({ |
| | | 'secondList.value': second |
| | | }) |
| | | console.log(this.data.secondList.options) |
| | | }); |
| | | }, |
| | | // 获取重点项目 |
| | |
| | | onMoreGuide(e) { |
| | | let type = e.currentTarget.dataset.info |
| | | if (type == "tushufuwu") { |
| | | let assortCode = ""; |
| | | if (this.data.bookTypeData.name == '高等教育') { |
| | | assortCode = "jsek_higherEducation" |
| | | } |
| | | if (this.data.bookTypeData.name == '职业教育') { |
| | | assortCode = "jsek_vocationalEducation" |
| | | } |
| | | if (this.data.bookTypeData.name == '教师教育') { |
| | | assortCode = "jsek_teacherEducation" |
| | | } |
| | | if (this.data.bookTypeData.name == '少儿教育') { |
| | | assortCode = "jsek_childrenEducation" |
| | | } |
| | | if (this.data.bookTypeData.name == '考试培训') { |
| | | assortCode = "jsek_examTraining" |
| | | } |
| | | if (this.data.bookTypeData.name == '主题出版') { |
| | | assortCode = "jsek_themePublishing" |
| | | } |
| | | if (this.data.bookTypeData.name == '学术著作') { |
| | | assortCode = "jsek_academicWorks" |
| | | } |
| | | if (this.data.bookTypeData.name == '大众读物') { |
| | | assortCode = "jsek_popularReadingMaterials" |
| | | } |
| | | wx.navigateTo({ |
| | | url: '/packageBookService/pages/bookServices/list/index?assorName=' + this.data.bookTypeData.name |
| | | url: '/packageBookService/pages/bookServices/list/index?assorName=' + this.data.bookTypeData.name + '&assortCode=' + assortCode |
| | | }) |
| | | } else if (type == "shuziyuedu") { |
| | | wx.navigateTo({ |
| | |
| | | </view> |
| | | </swiper-item> |
| | | </swiper> |
| | | <view class="body-loading" wx:else=""> |
| | | <view class="body-loading" wx:else> |
| | | <t-loading theme="circular" size="40rpx" class="wrapper" /> |
| | | </view> |
| | | </view> |
| | |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | background: #f6f6f6; |
| | | } |
| | | |
| | | .swiper { |
| | |
| | | { |
| | | title: '出书申请', |
| | | icon: '/static/images/personal/chushu.png', |
| | | url: '/packagePersonal/pages/publishBooks/index', |
| | | url: '', |
| | | type: 'publishBooks', |
| | | } |
| | | ]; |