Commit d3e6245e authored by lvtz's avatar lvtz

fix

parent db908545
......@@ -357,7 +357,7 @@ Page({
let that = this
let scrollTop = e.scrollTop;
if(that.data.websiteCourses && that.data.websiteCourses.switch==1){
if (scrollTop >= 800) {
if (scrollTop >= 300) {
// 当页面顶端距离大于一定高度时
this.setData({
fixBtnShow: true
......
......@@ -1180,8 +1180,8 @@ audioStorage[value].isWaiting = true;
prevContentImg (e) {
const {dataset} = e.currentTarget;
const current = dataset.src;
console.log(current,'当前');
let type = current.indexOf('pdf')!=-1 ? 'media': '';
// 4ppt/ 5pdf
let type = (this.data.coursesDetail.content.type==4 || this.data.coursesDetail.content.type==5) ? 'media': '';
const images = this.data.coursesDetail.content.images;
wxPreviewImage({
urls: images,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment