Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MRBR_video
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
MRBR_video
Commits
7f5498a9
Commit
7f5498a9
authored
Nov 15, 2022
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
a39eafaa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
MRBR_video.js
assets/MRBR_video/scene/MRBR_video.js
+14
-3
No files found.
assets/MRBR_video/scene/MRBR_video.js
View file @
7f5498a9
...
@@ -544,12 +544,19 @@ cc.Class({
...
@@ -544,12 +544,19 @@ cc.Class({
// this.isLast = this.checkIsLast(); // data.last // this.checkIsLast();
// this.isLast = this.checkIsLast(); // data.last // this.checkIsLast();
// this.playTimes = this.checkPlayTimes(); // data.playTime// this.checkPlayTimes();
// this.playTimes = this.checkPlayTimes(); // data.playTime// this.checkPlayTimes();
// this.jumpData = this.getJumpData(); //data.saveData // this.getJumpData();
// this.jumpData = this.getJumpData(); //data.saveData // this.getJumpData();
// let saveData = this.getJumpData()
// if(saveData == null) {
// this.jumpData = {step: 0}
// } else {
// saveData.step++;
// this.jumpData = saveData;
// }
// console.log("PSQS_get_course_info",this.isFirst, this.isLast, this.playTimes, this.jumpData);
// cb();
// cb();
// return;
// return;
console
.
log
(
"
in getState 1
"
);
console
.
log
(
"
in getState 1
"
);
callMiddleLayerFunction
(
"
PSQS_get_course_info
"
,
{},
(
data
)
=>
{
callMiddleLayerFunction
(
"
PSQS_get_course_info
"
,
{},
(
data
)
=>
{
console
.
log
(
"
PSQS_get_course_info
"
,
data
.
first
,
data
.
last
,
data
.
playTime
,
JSON
.
stringify
(
data
.
saveData
));
this
.
isFirst
=
data
.
first
;
//this.checkIsFirst();
this
.
isFirst
=
data
.
first
;
//this.checkIsFirst();
this
.
isLast
=
data
.
last
// this.checkIsLast();
this
.
isLast
=
data
.
last
// this.checkIsLast();
this
.
playTimes
=
data
.
playTime
// this.checkPlayTimes();
this
.
playTimes
=
data
.
playTime
// this.checkPlayTimes();
...
@@ -564,6 +571,8 @@ cc.Class({
...
@@ -564,6 +571,8 @@ cc.Class({
this
.
playTimes
+=
1
;
this
.
playTimes
+=
1
;
}
}
console
.
log
(
"
PSQS_get_course_info
"
,
this
.
isFirst
,
this
.
isLast
,
this
.
playTimes
,
this
.
jumpData
);
cb
&&
cb
();
cb
&&
cb
();
});
});
},
},
...
@@ -581,7 +590,7 @@ cc.Class({
...
@@ -581,7 +590,7 @@ cc.Class({
},
},
getJumpData
()
{
getJumpData
()
{
return
{
step
:
7
};
return
{
"
step
"
:
5
};
},
},
maskSpr
:
null
,
maskSpr
:
null
,
...
@@ -655,7 +664,7 @@ cc.Class({
...
@@ -655,7 +664,7 @@ cc.Class({
const
endTime
=
this
.
data
.
quesArr
[
i
].
ques_end
;
const
endTime
=
this
.
data
.
quesArr
[
i
].
ques_end
;
if
(
Number
(
jumpTime
)
>=
Number
(
startTime
)
&&
Number
(
jumpTime
)
<
Number
(
endTime
))
{
if
(
Number
(
jumpTime
)
>=
Number
(
startTime
)
&&
Number
(
jumpTime
)
<
Number
(
endTime
))
{
this
.
quesIndex
=
i
;
this
.
quesIndex
=
i
;
//
console.log("重定位题号:",this.quesIndex)
console
.
log
(
"
重定位题号:
"
,
this
.
quesIndex
)
}
}
}
}
},
},
...
@@ -690,6 +699,7 @@ cc.Class({
...
@@ -690,6 +699,7 @@ cc.Class({
addServerListener
()
{
addServerListener
()
{
console
.
log
(
"
in addServerListener
"
);
console
.
log
(
"
in addServerListener
"
);
// this.loadEnd(()=>{});
// this.loadEnd(()=>{});
const
c
=
window
.
courseware
;
const
c
=
window
.
courseware
;
if
(
!
c
)
{
if
(
!
c
)
{
...
@@ -1048,6 +1058,7 @@ cc.Class({
...
@@ -1048,6 +1058,7 @@ cc.Class({
},
},
startQuesVideo
(
currentTime
=
null
)
{
startQuesVideo
(
currentTime
=
null
)
{
// currentTime = "110";
console
.
log
(
"
in startQuesVideo
"
,
currentTime
);
console
.
log
(
"
in startQuesVideo
"
,
currentTime
);
this
.
wrongTimes
=
0
;
this
.
wrongTimes
=
0
;
...
...
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