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
5607f5d2
Commit
5607f5d2
authored
Mar 24, 2021
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix
parent
10ae6f6e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
form.component.html
form/src/app/form/form.component.html
+2
-2
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.html
View file @
5607f5d2
...
...
@@ -122,7 +122,7 @@
</div>
</div>
</div>
<button
[
disabled
]="(
item
.
correct
.
length
+
item
.
incorrect
.
length
)
>
=30" style="margin-top: 10px; position: absolute; bottom: 10px; right: 1
0
0px;" nz-button (click)="copyItem(item.correct, choiceIndex)" >
<button
[
disabled
]="(
item
.
correct
.
length
+
item
.
incorrect
.
length
)
>
=30" style="margin-top: 10px; position: absolute; bottom: 10px; right: 1
2
0px;" nz-button (click)="copyItem(item.correct, choiceIndex)" >
<span>
复制此项
</span>
</button>
<button
[
disabled
]="
item
.
correct
.
length=
=1"
style=
"margin-top: 10px; position: absolute; bottom: 10px; right: 10px;;"
nz-button
nzType=
"danger"
(
click
)="
deleteChoice
(
item
.
correct
,
choiceIndex
)"
>
...
...
@@ -173,7 +173,7 @@
</div>
</div>
</div>
<button
[
disabled
]="(
item
.
correct
.
length
+
item
.
incorrect
.
length
)
>
=30" style="margin-top: 10px; position: absolute; bottom: 10px; right: 1
0
0px;" nz-button (click)="copyItem(item.incorrect, choiceIndex)" >
<button
[
disabled
]="(
item
.
correct
.
length
+
item
.
incorrect
.
length
)
>
=30" style="margin-top: 10px; position: absolute; bottom: 10px; right: 1
2
0px;" nz-button (click)="copyItem(item.incorrect, choiceIndex)" >
<span>
复制此项
</span>
</button>
<button
style=
"margin-top: 10px; position: absolute; bottom: 10px; right: 10px;;"
nz-button
nzType=
"danger"
(
click
)="
deleteChoice
(
item
.
incorrect
,
choiceIndex
)"
>
...
...
form/src/app/form/form.component.ts
View file @
5607f5d2
...
...
@@ -208,9 +208,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this
.
refresh
();
/* Remove this when commit */
if
(
location
.
href
.
indexOf
(
"
localhost
"
)
!=
-
1
)
{
(
<
any
>
window
).
axios
.
post
(
`http://www.datalist.com.cn:8060/json/save/
${
this
.
KEY
}
`
,
this
.
item
)
}
//
if(location.href.indexOf("localhost") != -1) {
//
(<any> window).axios.post(`http://www.datalist.com.cn:8060/json/save/${this.KEY}`, this.item)
//
}
/* Remove this when commit */
console
.
log
(
"
保存
"
,
this
.
item
)
...
...
play/assets/tmpGame/script/Scene.js
View file @
5607f5d2
...
...
@@ -110,14 +110,14 @@ cc.Class({
},
getData
(
cb
)
{
//
cb(this.getDefaultData());
cc
.
loader
.
load
(
"
http://www.datalist.com.cn:8060/json/DataKey_dfzx_ppp
"
,
function
(
err
,
res
)
{
if
(
err
)
{
cb
(
this
.
getDefaultData
());
}
else
{
cb
(
JSON
.
parse
(
res
));
}
});
cb
(
this
.
getDefaultData
());
//
cc.loader.load( "http://www.datalist.com.cn:8060/json/DataKey_dfzx_ppp", function( err, res) {
//
if(err) {
//
cb(this.getDefaultData());
//
} else {
//
cb(JSON.parse(res));
//
}
//
});
},
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