assets/js/config.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
packageBookService/pages/bookServices/detail/index.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
packageBookService/pages/components/webView/index.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
packageBookService/pages/components/webView/index.wxml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
packageDomain/pages/sampleBookList/index.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
pages/home/home.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
pages/home/home.wxml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
pages/home/home.wxss | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
pages/personalCenter/index.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
assets/js/config.js
@@ -4,6 +4,7 @@ // 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 @@ -37,6 +38,7 @@ reg_tel, reg_telphone, epubUrl, pdfUrl, appId }; export default config; packageBookService/pages/bookServices/detail/index.js
@@ -1513,7 +1513,7 @@ 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 }) }, packageBookService/pages/components/webView/index.js
@@ -44,7 +44,10 @@ }, setWebViewSrc: function (data) { var url = app.config.epubUrl + var url = ""; if (data.fileType == 'epub') { if (data.bookBuy) { url = app.config.epubUrl + "?md5=" + data.md5 + "&bookName=" + @@ -54,6 +57,30 @@ 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 }) packageBookService/pages/components/webView/index.wxml
@@ -1,4 +1,4 @@ <!--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> packageDomain/pages/sampleBookList/index.js
@@ -314,7 +314,6 @@ this.setData({ 'secondList.value': second }) console.log(this.data.secondList.options) }); }, // 获取重点项目 pages/home/home.js
@@ -500,8 +500,33 @@ 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({ pages/home/home.wxml
@@ -21,7 +21,7 @@ </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> pages/home/home.wxss
@@ -65,6 +65,7 @@ display: flex; align-items: center; justify-content: center; background: #f6f6f6; } .swiper { pages/personalCenter/index.js
@@ -47,7 +47,7 @@ { title: '出书申请', icon: '/static/images/personal/chushu.png', url: '/packagePersonal/pages/publishBooks/index', url: '', type: 'publishBooks', } ];