Commit 3432c7ad authored by wangxuelai's avatar wangxuelai

''

parent 03d22422
......@@ -190,11 +190,6 @@ Page({
};
}
}
console.log({
title: shareObj.title,
path: shareObj.path,
imageUrl: shareObj.imageUrl,
}, '111111111');
return {
title: shareObj.title,
path: shareObj.path,
......@@ -801,8 +796,6 @@ Page({
if (currentTime >= this.data.audioStorage[value].duration) {
audioStorage[value].play = false;
audioStorage[value].currentTime = 0;
// audioStorage[value].innerAudioContext.seek(0);
// audioStorage[value].innerAudioContext.pause();
this.setData({
audioStorage
});
......@@ -816,8 +809,6 @@ Page({
playvoice(e) {
const { value, duration } = e.detail;
const that = this;
// this.innerAudioContext.src = audioorigin(value);
// this.innerAudioContext.obeyMuteSwitch = false;
wx.getNetworkType({
success: res => {
if (res.networkType != "none") {
......@@ -835,29 +826,14 @@ Page({
audioStorage[value].innerAudioContext.src = audioorigin(value);
audioStorage[value].innerAudioContext.obeyMuteSwitch = false;
audioStorage[value].innerAudioContext.onWaiting(e => {
console.log("等待中");
const { actPalyaudioValue, audioStorage } = this.data;
// if(audioStorage[value].isWaiting){
// return
// }
clearInterval(that.data.voiceInterval);
audioStorage[value].isWaiting = true;
that.setData({
audioStorage
});
// setTimeout((e)=>{
// this.data.audioStorage[value].isWaiting = false;
// this.setData({
// audioStorage: this.data.audioStorage
// })
// },5000)
});
// audioStorage[value].innerAudioContext.onPlay((e) => {
// console.log('dasdad');
// that.voiceIntervalPlay(value);
// })
audioStorage[value].innerAudioContext.onTimeUpdate(e => {
console.log("sss");
const { actPalyaudioValue, audioStorage } = this.data;
if (audioStorage[value].isWaiting) {
clearInterval(that.data.voiceInterval);
......@@ -940,7 +916,6 @@ Page({
audioStorage[value].innerAudioContext.src = audioorigin(value);
audioStorage[value].innerAudioContext.obeyMuteSwitch = false;
audioStorage[value].innerAudioContext.onWaiting(e => {
console.log(value, "等待1111");
if (audioStorage[value] && !audioStorage[value].play) {
const { actPalyaudioValue, audioStorage } = this.data;
// if(audioStorage[value].isWaiting){
......@@ -961,7 +936,6 @@ Page({
audioStorage[value].innerAudioContext.onTimeUpdate(e => {
const { actPalyaudioValue, audioStorage } = this.data;
if (audioStorage[value].isWaiting) {
console.log("22222222222222222");
clearInterval(that.data.voiceInterval);
that.voiceIntervalPlay(value);
audioStorage[value].isWaiting = false;
......@@ -983,33 +957,17 @@ Page({
audioStorage
});
});
// audioStorage[value].innerAudioContext.seek(slide);
} else {
if (slide >= audioStorage[value].duration) {
audioStorage[value].currentTime = 0;
audioStorage[value].play = false;
audioStorage[value].innerAudioContext.pause();
clearInterval(this.data.voiceInterval);
// audioStorage[value].innerAudioContext.seek(0);
} else {
audioStorage[value].currentTime = slide;
// audioStorage[value].innerAudioContext.seek(slide);
}
audioStorage[value].isWaiting = false;
}
// if (audioStorage[value] && audioStorage[value].play) { // 如果当前是播放状态 则启用定时器 播放按钮状态不需要改
// // audioStorage[value].play = false;
// console.log(slide, '播放slide')
// audioStorage[value].innerAudioContext.seek(slide); // audioStorage[value].currentTime
// // audioStorage[value].innerAudioContext.play();
// // clearInterval(this.data.voiceInterval);
// setTimeout(() => {
// audioStorage[value].innerAudioContext.play();
// }, 500)
// this.voiceIntervalPlay(value);
// } else { // 如果当前不是播放状态 则该干嘛干嘛
// // audioStorage[value].innerAudioContext.play();
// }
this.setData({
audioStorage
});
......@@ -1040,19 +998,6 @@ Page({
});
},
slideend(e) {
// const {value, slide} = e.detail;
// let audioStorage = this.data.audioStorage;
// clearInterval(this.slideTimeOut);
// if (audioStorage[value] && audioStorage[value].play) { // 如果当前是播放状态 则启用定时器 播放按钮状态不需要改
// // audioStorage[value].play = false;
// console.log(audioStorage[value].currentTime, '播放')
// audioStorage[value].innerAudioContext.seek(audioStorage[value].currentTime);
// // audioStorage[value].innerAudioContext.play();
// // clearInterval(this.data.voiceInterval);
// this.voiceIntervalPlay(value);
// } else { // 如果当前不是播放状态 则该干嘛干嘛
// // audioStorage[value].innerAudioContext.play();
// }
},
resetAudiosPlayStatus() {
// 点击一个录音的时候把其他的录音状态改成暂停状态
......@@ -1116,13 +1061,6 @@ Page({
},
screenchange(e) {
const { fullScreen } = e.detail;
// if (!fullScreen) { // 退出全屏时的操作
// this.setData({
// 'videostatus.videoId': '',
// 'videostatus.videoShow': false,
// 'videostatus.src': '',
// })
// }
},
closeVideo() {
this.setData({
......@@ -1392,7 +1330,6 @@ Page({
// 选择点评类型的代码
goCommentEditor(e) {
const { clock } = e.detail;
console.log(Number(clock.class_id), "clock");
this.setData({
goCommentEditorInfo: {
show: true,
......
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