Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FT_12
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
FT_12
Commits
856618f1
Commit
856618f1
authored
Dec 25, 2020
by
asdf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
表单调整
parent
cb5cb094
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
3830 additions
and
803 deletions
+3830
-803
angular.json
form/angular.json
+1
-1
package-lock.json
form/package-lock.json
+3729
-717
package.json
form/package.json
+2
-2
form.component.html
form/src/app/form/form.component.html
+73
-65
form.component.ts
form/src/app/form/form.component.ts
+2
-2
index.html
form/src/index.html
+21
-15
styles.css
form/src/styles.css
+1
-0
Scene.js
play/assets/tmpGame/script/Scene.js
+1
-1
No files found.
form/angular.json
View file @
856618f1
...
@@ -130,6 +130,6 @@
...
@@ -130,6 +130,6 @@
},
},
"defaultProject"
:
"ng-template-generator"
,
"defaultProject"
:
"ng-template-generator"
,
"cli"
:
{
"cli"
:
{
"analytics"
:
false
"analytics"
:
"3d51f778-6aa7-4f47-b516-68a1c3f16d24"
}
}
}
}
\ No newline at end of file
form/package-lock.json
View file @
856618f1
This diff is collapsed.
Click to expand it.
form/package.json
View file @
856618f1
...
@@ -26,11 +26,11 @@
...
@@ -26,11 +26,11 @@
"@fortawesome/free-solid-svg-icons"
:
"^5.12.1"
,
"@fortawesome/free-solid-svg-icons"
:
"^5.12.1"
,
"@tweenjs/tween.js"
:
"~18.5.0"
,
"@tweenjs/tween.js"
:
"~18.5.0"
,
"ali-oss"
:
"^6.5.1"
,
"ali-oss"
:
"^6.5.1"
,
"cnpm"
:
"^6.1.1"
,
"compressing"
:
"^1.5.0"
,
"compressing"
:
"^1.5.0"
,
"ng-zorro-antd"
:
"^8.5.2"
,
"ng-zorro-antd"
:
"^8.5.2"
,
"rxjs"
:
"~6.5.4"
,
"sass"
:
"1.28.0"
,
"node-sass"
:
"^4.0.0"
,
"node-sass"
:
"^4.0.0"
,
"rxjs"
:
"~6.5.4"
,
"spark-md5"
:
"^3.0.0"
,
"spark-md5"
:
"^3.0.0"
,
"tslib"
:
"^1.10.0"
,
"tslib"
:
"^1.10.0"
,
"zone.js"
:
"~0.10.2"
"zone.js"
:
"~0.10.2"
...
...
form/src/app/form/form.component.html
View file @
856618f1
<div
class=
"model-content"
>
<div
class=
"model-content"
>
<span
style=
"margin-left: 5%;height: 30px; font-size: 18px;"
>
标题音频:
</span>
<div
class=
"card-config"
>
<div
style=
"margin-left: 5%;"
>
<div
class=
"card-item clearfix"
style=
"padding: 0.5vw; width: 600px; "
>
<app-audio-recorder
[
audioUrl
]="
item
.
questionAudio
"
(
audioUploaded
)="
onQuestionAudioUploadSuccess
($
event
)"
>
<div
class=
"card-item-content border"
>
</app-audio-recorder>
<span
style=
"margin-left: 5%;height: 30px; font-size: 18px;"
>
标题音频:
</span>
<div
style=
"margin-left: 5%;"
>
<app-audio-recorder
[
audioUrl
]="
item
.
questionAudio
"
(
audioUploaded
)="
onQuestionAudioUploadSuccess
($
event
)"
>
</app-audio-recorder>
</div>
<br>
<span
style=
"margin-left: 5%;height: 30px; font-size: 18px;"
>
标题文本:
</span>
<br>
<input
style=
"margin-left: 5%;width: 150px; "
type=
"text"
maxlength=
""
nz-input
[(
ngModel
)]="
item
.
questionText
"
(
blur
)="
save
()"
>
<br>
</div>
</div>
</div>
</div>
<br>
<span
style=
"margin-left: 5%;height: 30px; font-size: 18px;"
>
标题文本:
</span>
<br>
<input
style=
"margin-left: 5%;width: 150px; "
type=
"text"
maxlength=
""
nz-input
[(
ngModel
)]="
item
.
questionText
"
(
blur
)="
save
()"
>
<br>
<div
*
ngFor=
"let question of item.questionList; let i = index"
>
<div
class=
"card-config"
>
<div
style=
"border-style: solid; border-width: 2px;width:100%"
>
<div
*
ngFor=
"let question of item.questionList; let i = index"
class=
"card-item clearfix"
<div
style=
"margin-left: 5%; margin-bottom: 50px; padding-top: 20px; "
>
style=
"padding: 0.5vw; width: 100%; "
>
<div
style=
"height: 330px;width:100%;height:100%"
>
<div
class=
"card-item-content border"
>
<span
style=
"height: 30px; font-size: 18px;"
>
第{{i + 1}}页题干:
</span>
<span
style=
"height: 30px; font-size: 18px;"
>
第{{i + 1}}页题干:
</span>
<div
*
ngFor=
"let option of question.optionList; let j = index"
>
<br>
<div
style=
"margin-top: 20px; float: left; border-width: 1px; border-style: dotted;
padding: 20px; margin-right: 20px; width: 230px;"
>
<span
style=
"height: 30px; font-size: 18px;"
>
题干音频:
</span>
<app-audio-recorder
[
audioUrl
]="
option
.
optionAudio
"
(
audioUploaded
)="
onOptionUploadSuccess
($
event
,
i
,
j
)"
>
</app-audio-recorder>
<br>
<span
style=
"height: 30px; font-size: 18px;"
>
题干文本:
</span>
<input
style=
"width: 150px; "
type=
"text"
maxlength=
""
nz-input
[(
ngModel
)]="
option
.
text
"
(
blur
)="
save
()"
>
<br>
<span
style=
"height: 30px; font-size: 18px;"
>
题干骨骼动画:
</span>
<app-upload-dragon-bone
[
btnName
]="[['配置骨骼动画']]"
[
animaNames
]="[[['
normal
']]]"
[
skeJsonData
]=
option
.
optionDragonBone
.
skeJsonData
[
texJsonData
]=
option
.
optionDragonBone
.
texJsonData
[
texPngData
]=
option
.
optionDragonBone
.
texPngData
(
save
)="
saveAnima
($
event
,
option
.
optionDragonBone
)"
(
refreshEmitter
)="
refresh
()"
>
</app-upload-dragon-bone>
<br>
<div>
<div
*
ngFor=
"let option of question.optionList; let j = index"
class=
"section-content;text-align:center"
<nz-radio-group
[(
ngModel
)]="
question
.
rightOptionIdx
"
>
style=
"padding: 0.5vw; display: inline-block"
>
<div
[
nzValue
]="
j
"
nz-radio
(
click
)="
radioClick
(
i
,
j
)"
>
<div
style=
"margin-top: 20px; float: left; border-width: 1px; border-style: dotted;
<span
style=
"height: 30px; font-size: 18px;"
>
正确选项
</span>
padding: 20px; margin-right: 20px; width: 230px;"
>
</div>
<span
style=
"height: 30px; font-size: 18px;"
>
题干音频:
</span>
</nz-radio-group>
<app-audio-recorder
[
audioUrl
]="
option
.
optionAudio
"
(
audioUploaded
)="
onOptionUploadSuccess
($
event
,
i
,
j
)"
>
</div>
</app-audio-recorder>
<br>
<span
style=
"height: 30px; font-size: 18px;"
>
题干文本:
</span>
<input
style=
"width: 150px; "
type=
"text"
maxlength=
""
nz-input
[(
ngModel
)]="
option
.
text
"
(
blur
)="
save
()"
>
<br>
<span
style=
"height: 30px; font-size: 18px;"
>
题干骨骼动画:
</span>
<app-upload-dragon-bone
[
btnName
]="[['配置骨骼动画']]"
[
animaNames
]="[[['
normal
']]]"
[
skeJsonData
]=
option
.
optionDragonBone
.
skeJsonData
[
texJsonData
]=
option
.
optionDragonBone
.
texJsonData
[
texPngData
]=
option
.
optionDragonBone
.
texPngData
(
save
)="
saveAnima
($
event
,
option
.
optionDragonBone
)"
(
refreshEmitter
)="
refresh
()"
>
</app-upload-dragon-bone>
<br>
<button
style=
"margin-top: 20px; width: 100%; height: 32px; color: red;"
nz-button
nzType=
"dashed"
<div>
class=
"add-btn"
(
click
)="
removeOption
(
i
,
j
)"
>
<nz-radio-group
[(
ngModel
)]="
question
.
rightOptionIdx
"
>
删除选项
<div
[
nzValue
]="
j
"
nz-radio
(
click
)="
radioClick
(
i
,
j
)"
>
</button>
<span
style=
"height: 30px; font-size: 18px;"
>
正确选项
</span>
</div>
</nz-radio-group>
</div>
</div>
<button
style=
"margin-top: 20px; width: 100%; height: 32px; color: red;"
nz-button
nzType=
"dashed"
class=
"add-btn"
(
click
)="
removeOption
(
i
,
j
)"
>
删除选项
</button>
</div>
</div>
<div
*
ngIf=
"(question.optionList.length < 7)"
>
</div>
<button
style=
"margin-top: 20px; float: left; border-width: 1px;
<div
*
ngIf=
"(question.optionList.length < 7)"
class=
"section-content;text-align:center"
style=
"padding: 0.5vw; display: inline-block"
>
<button
style=
"margin-top: 20px; float: left; border-width: 1px;
border-style: dotted; padding: 20px; margin-right: 20px;
border-style: dotted; padding: 20px; margin-right: 20px;
width: 230px; height: 343px;"
nz-button
nzType=
"dashed"
class=
"add-btn"
(
click
)="
addOption
(
i
)"
>
width: 230px; height: 343px;"
nz-button
nzType=
"dashed"
class=
"add-btn"
(
click
)="
addOption
(
i
)"
>
增加选项
增加选项
</button>
</button>
</div>
</div>
<br>
<div
style=
"margin-top: 20px;"
>
<button
style=
"margin-left: 5%; margin-top: 50px;margin-bottom: 8px; width: 100px; height: 32px;"
nz-button
nzType=
"danger"
(
click
)="
removeQuestion
(
i
)"
>
删除问题
</button>
<button
style=
"margin-left: 5px; margin-top: 50px;margin-bottom: 8px; width: 100px; height: 32px; "
nz-button
nzType=
"dashed"
nzDanger
class=
"add-btn"
(
click
)="
copyQuestion
(
i
)"
>
复制问题
</button>
<button
style=
"margin-left: 5px; margin-top: 50px;margin-bottom: 8px; width: 120px; height: 32px;"
nz-button
nzType=
"dashed"
nzDanger
class=
"add-btn"
(
click
)="
pasteQuestion
(
i
)"
>
粘贴到下一页
</button>
</div>
</div>
</div>
<br>
</div>
<br>
<div
style=
"margin-top: 20px;"
>
</div>
<button
style=
"margin-left: 5%; margin-top: 50px;margin-bottom: 8px; width: 100px; height: 32px;"
nz-button
nzType=
"danger"
(
click
)="
removeQuestion
(
i
)"
>
删除问题
</button>
<button
style=
"margin-left: 5px; margin-top: 50px;margin-bottom: 8px; width: 100px; height: 32px; "
nz-button
nzType=
"dashed"
nzDanger
class=
"add-btn"
(
click
)="
copyQuestion
(
i
)"
>
复制问题
</button>
<button
style=
"margin-left: 5px; margin-top: 50px;margin-bottom: 8px; width: 120px; height: 32px;"
nz-button
nzType=
"dashed"
nzDanger
class=
"add-btn"
(
click
)="
pasteQuestion
(
i
)"
>
粘贴到下一页
</button>
</div>
</div>
</div>
</div>
<button
style=
"margin-left: 5%; margin-top: 8px; margin-bottom: 100px; height: 50px; width: 90%;"
nz-button
<button
style=
"margin-left: 5%; margin-top: 8px; margin-bottom: 100px; height: 50px; width: 90%;"
nz-button
...
...
form/src/app/form/form.component.ts
View file @
856618f1
...
@@ -5,12 +5,12 @@ import { JsonPipe } from '@angular/common';
...
@@ -5,12 +5,12 @@ import { JsonPipe } from '@angular/common';
@
Component
({
@
Component
({
selector
:
'
app-form
'
,
selector
:
'
app-form
'
,
templateUrl
:
'
./form.component.html
'
,
templateUrl
:
'
./form.component.html
'
,
styleUrls
:
[
'
./form.component.css
'
]
styleUrls
:
[
'
./form.component.
s
css
'
]
})
})
export
class
FormComponent
implements
OnInit
,
OnChanges
,
OnDestroy
{
export
class
FormComponent
implements
OnInit
,
OnChanges
,
OnDestroy
{
// 储存数据用
// 储存数据用
saveKey
=
"
DataKey_Cocos_FT1
1
"
;
saveKey
=
"
DataKey_Cocos_FT1
2
"
;
// 储存对象
// 储存对象
item
;
item
;
copyQuestionData
;
copyQuestionData
;
...
...
form/src/index.html
View file @
856618f1
<!doctype html>
<!DOCTYPE html>
<html
lang=
"en"
>
<html
lang=
"zh"
>
<head>
<head>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
/>
<title>
NgOne
</title>
<title>
NgOne
</title>
<base
href=
"/"
>
<base
href=
"/"
/>
<!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
<style>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
html
,
body
{
<link
rel=
"icon"
type=
"image/x-icon"
href=
"favicon.ico"
>
width
:
100%
;
<script
type=
"text/javascript"
src=
"https://staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js"
></script>
height
:
100%
;
</head>
}
<body>
</style>
<app-root></app-root>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
</body>
<link
rel=
"icon"
type=
"image/x-icon"
href=
"favicon.ico"
/>
<script
type=
"text/javascript"
src=
"https://staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js"
></script>
<!-- <script type="text/javascript" src="https://staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air_online.js"></script> -->
</head>
<body>
<app-root></app-root>
</body>
</html>
</html>
form/src/styles.css
View file @
856618f1
/* You can add global styles to this file, and also import other style files */
/* You can add global styles to this file, and also import other style files */
@import
"~ng-zorro-antd/ng-zorro-antd.min.css"
;
\ No newline at end of file
play/assets/tmpGame/script/Scene.js
View file @
856618f1
const
saveKey
=
"
DataKey_Cocos_FT1
1
"
;
const
saveKey
=
"
DataKey_Cocos_FT1
2
"
;
const
BaseUI
=
require
(
'
BaseUI
'
);
const
BaseUI
=
require
(
'
BaseUI
'
);
import
EventMgr
from
'
./EventMgr
'
;
import
EventMgr
from
'
./EventMgr
'
;
cc
.
Class
({
cc
.
Class
({
...
...
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