Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dfzx_ac2
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_ac2
Commits
ed18f197
Commit
ed18f197
authored
Mar 22, 2021
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev commit
parent
a4da5f70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
form.component.ts
form/src/app/form/form.component.ts
+3
-3
Scene.js
play/assets/tmpGame/script/Scene.js
+8
-8
No files found.
form/src/app/form/form.component.ts
View file @
ed18f197
...
@@ -202,9 +202,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
...
@@ -202,9 +202,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this
.
refresh
();
this
.
refresh
();
/* Remove this when commit */
/* Remove this when commit */
if
(
location
.
href
.
indexOf
(
"
localhost
"
)
!=
-
1
)
{
//
if(location.href.indexOf("localhost") != -1) {
(
<
any
>
window
).
axios
.
post
(
`http://www.datalist.com.cn:8060/json/save/
${
this
.
KEY
}
`
,
this
.
item
)
//
(<any> window).axios.post(`http://www.datalist.com.cn:8060/json/save/${this.KEY}`, this.item)
}
//
}
/* Remove this when commit */
/* Remove this when commit */
console
.
log
(
"
保存
"
,
this
.
item
)
console
.
log
(
"
保存
"
,
this
.
item
)
...
...
play/assets/tmpGame/script/Scene.js
View file @
ed18f197
...
@@ -109,14 +109,14 @@ cc.Class({
...
@@ -109,14 +109,14 @@ cc.Class({
},
},
getData
(
cb
)
{
getData
(
cb
)
{
//
cb(this.getDefaultData());
cb
(
this
.
getDefaultData
());
cc
.
loader
.
load
(
"
http://www.datalist.com.cn:8060/json/DataKey_dfzx_ppp
"
,
function
(
err
,
res
)
{
//
cc.loader.load( "http://www.datalist.com.cn:8060/json/DataKey_dfzx_ppp", function( err, res) {
if
(
err
)
{
//
if(err) {
cb
(
this
.
getDefaultData
());
//
cb(this.getDefaultData());
}
else
{
//
} else {
cb
(
JSON
.
parse
(
res
));
//
cb(JSON.parse(res));
}
//
}
});
//
});
},
},
getDefaultData
()
{
getDefaultData
()
{
...
...
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