Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
wechatapp.shangjiadao.com
Commits
9d47a89d
Commit
9d47a89d
authored
Nov 28, 2019
by
sujie@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
5edc35bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
7 deletions
+21
-7
constants.js
constants/constants.js
+4
-4
onlineclassroomplay.js
src/pages/websiteindex/onlineclassroomplay.js
+17
-3
No files found.
constants/constants.js
View file @
9d47a89d
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'
...
...
src/pages/websiteindex/onlineclassroomplay.js
View file @
9d47a89d
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment