Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
Book_Read
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
Book_Read
Commits
f674ef43
Commit
f674ef43
authored
Nov 10, 2021
by
huoshizhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 报错问题
parent
d4883190
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
14 deletions
+24
-14
.gitignore
.gitignore
+7
-1
Book_Read.js
play/assets/Book_Read/scene/Book_Read.js
+16
-12
config.json
publish/publish/config.json
+1
-1
No files found.
.gitignore
View file @
f674ef43
...
...
@@ -5,6 +5,12 @@
/publish/publish/play
/publish/publish/form
/publish/publish/android
/publish/publish/web_desktop
/publish/publish/ios
/publish/publish/*.zip
/node_modules
\ No newline at end of file
/publish/publish/config.json
/publish/publish/Release*
/node_modules
/play/build_android
/play/build_ios
/play/build_web_desktop
\ No newline at end of file
play/assets/Book_Read/scene/Book_Read.js
View file @
f674ef43
...
...
@@ -115,17 +115,17 @@ cc.Class({
getData
(
func
)
{
//
if (window && window.courseware) {
//
window.courseware.getData(func, 'ww03');
//
return;
//
}
//
const middleLayer = cc.find('middleLayer');
//
if (middleLayer) {
//
const middleLayerComponent = middleLayer.getComponent('middleLayer');
//
middleLayerComponent.getData(func);
//
return;
//
}
if
(
window
&&
window
.
courseware
)
{
window
.
courseware
.
getData
(
func
,
'
ww03
'
);
return
;
}
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
const
middleLayerComponent
=
middleLayer
.
getComponent
(
'
middleLayer
'
);
middleLayerComponent
.
getData
(
func
);
return
;
}
func
(
this
.
getDefaultData
());
},
...
...
@@ -292,6 +292,7 @@ cc.Class({
},
/** 左移动 */
leftMove
()
{
this
.
stopAll
();
this
.
stopAudio
()
this
.
_cantouch
=
false
;
let
width
=
cc
.
winSize
.
width
+
64
...
...
@@ -315,6 +316,7 @@ cc.Class({
/** 右移动 */
rightMove
()
{
this
.
stopAll
();
this
.
stopAudio
()
this
.
_cantouch
=
false
;
let
width
=
cc
.
winSize
.
width
+
64
...
...
@@ -359,7 +361,9 @@ cc.Class({
// ------------------------------------------
update
()
{
this
.
pageNumNode
.
getChildByName
(
"
text
"
).
getComponent
(
cc
.
Label
).
string
=
(
this
.
curPage
%
this
.
data
.
length
+
1
)
+
"
/
"
+
this
.
data
.
length
if
(
this
.
data
)
{
this
.
pageNumNode
.
getChildByName
(
"
text
"
).
getComponent
(
cc
.
Label
).
string
=
(
this
.
curPage
%
this
.
data
.
length
+
1
)
+
"
/
"
+
this
.
data
.
length
}
}
});
//3.自动连读
\ No newline at end of file
publish/publish/config.json
View file @
f674ef43
...
...
@@ -5,6 +5,6 @@
},
"android"
:
{
"sceneName"
:
"Book_Read"
,
"version"
:
"
c8307
"
"version"
:
"
45c64
"
}
}
\ No newline at end of file
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