Commit 9d47a89d authored by sujie@126.com's avatar sujie@126.com

dd

parent 5edc35bd
export default {
imageRoot: 'https://cdn.img.shangjiadao.cn/qingxiao/daka/images/',
// host: 'https://qxapi.qingxiao.online/daka',
// host2: 'https://wx.m.shangjiadao.cn',
host: 'https://qxapi.qingxiao.online/daka',
host2: 'https://wx.m.shangjiadao.cn',
storageVersion: '4.0',
imageVersion: '20191104',
host: 'https://clock.wp53.cn',
host2: 'https://test.wp53.cn',
// host: 'https://clock.wp53.cn',
// host2: 'https://test.wp53.cn',
appId: 'wxc1246ea029394785',
miniProgram: {
clock: 'wxdeee20e52a1fd7ee'
......
......@@ -307,6 +307,12 @@ Page({
changeCourse(e){
const { item, index } = e.currentTarget.dataset;
const { onlinesubcourses } = this.data;
if(onlinesubcourses.find(ele => item.id == ele.id).isAction){
this.setData({
catlogDailogShow: false
})
return
}
onlinesubcourses.forEach(ele=>{
if(ele.id == item.id){
ele.isAction = true;
......@@ -320,6 +326,16 @@ Page({
catlogDailogShow: false
})
this.onlinecoursesdetailGet()
if (this.videoContext) {
this.videoContext.stop();
}
this.innerAudioContext.pause();
this.setData({
audioStorage: {
}
})
clearInterval(this.data.voiceInterval);
},
clickVideo(){
if(this.data.videoStatus.isPlay){
......@@ -537,7 +553,6 @@ Page({
this.curAudioValue = value;
this.innerAudioContext.obeyMuteSwitch = false;
this.innerAudioContext.onTimeUpdate(function(e){
console.log(e)
if(this.voiceIntervalPlayOn){
return
}
......@@ -568,12 +583,11 @@ Page({
clearInterval(that.data.voiceInterval);
that.voiceIntervalPlay(value);
})
this.innerAudioContext.seek(audioStorage[value].currentTime)
this.innerAudioContext.seek(audioStorage[value].currentTime);
this.innerAudioContext.play();
this.setData({
audioStorage,
})
},
pausevoice(e) {
const {
......
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