Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dfzx_cocos_dqq_app
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
dfzx_cocos_dqq_app
Commits
9611665b
Commit
9611665b
authored
Mar 24, 2021
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: app端getdata
parent
be46958a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
dfzx_cocos_dqq_app.js
play/assets/dfzx_cocos_dqq_app/scene/dfzx_cocos_dqq_app.js
+14
-2
config.json
publish/publish/config.json
+1
-1
No files found.
play/assets/dfzx_cocos_dqq_app/scene/dfzx_cocos_dqq_app.js
View file @
9611665b
...
...
@@ -86,8 +86,20 @@ cc.Class({
});
},
getData
(
cb
)
{
cb
(
this
.
getDefaultData
());
getData
(
func
)
{
if
(
window
&&
window
.
courseware
)
{
window
.
courseware
.
getData
(
func
,
'
dfzx_cocos_dqq
'
);
return
;
}
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
const
middleLayerComponent
=
middleLayer
.
getComponent
(
'
middleLayer
'
);
middleLayerComponent
.
getData
(
func
);
return
;
}
func
(
this
.
getDefaultData
());
},
getDefaultData
()
{
...
...
publish/publish/config.json
View file @
9611665b
{
"ios"
:{
"sceneName"
:
"dfzx_cocos_dqq_app"
,
"version"
:
"61cc2"
},
"android"
:{
"sceneName"
:
"dfzx_cocos_dqq_app"
,
"version"
:
"61cc2"
}}
\ No newline at end of file
{
"ios"
:{
"sceneName"
:
"dfzx_cocos_dqq_app"
,
"version"
:
"eda8c"
},
"android"
:{
"sceneName"
:
"dfzx_cocos_dqq_app"
,
"version"
:
"eda8c"
}}
\ 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