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
Show 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 @@
},
"defaultProject"
:
"ng-template-generator"
,
"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 @@
"@fortawesome/free-solid-svg-icons"
:
"^5.12.1"
,
"@tweenjs/tween.js"
:
"~18.5.0"
,
"ali-oss"
:
"^6.5.1"
,
"cnpm"
:
"^6.1.1"
,
"compressing"
:
"^1.5.0"
,
"ng-zorro-antd"
:
"^8.5.2"
,
"rxjs"
:
"~6.5.4"
,
"sass"
:
"1.28.0"
,
"node-sass"
:
"^4.0.0"
,
"rxjs"
:
"~6.5.4"
,
"spark-md5"
:
"^3.0.0"
,
"tslib"
:
"^1.10.0"
,
"zone.js"
:
"~0.10.2"
...
...
form/src/app/form/form.component.html
View file @
856618f1
<div
class=
"model-content"
>
<div
class=
"card-config"
>
<div
class=
"card-item clearfix"
style=
"padding: 0.5vw; width: 600px; "
>
<div
class=
"card-item-content border"
>
<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
)"
>
...
...
@@ -10,13 +13,19 @@
<input
style=
"margin-left: 5%;width: 150px; "
type=
"text"
maxlength=
""
nz-input
[(
ngModel
)]="
item
.
questionText
"
(
blur
)="
save
()"
>
<br>
</div>
</div>
</div>
<div
*
ngFor=
"let question of item.questionList; let i = index
"
>
<div
style=
"border-style: solid; border-width: 2px;width:100%"
>
<div
style=
"margin-left: 5%; margin-bottom: 50px; padding-top: 20px
; "
>
<div
style=
"height: 330px;width:100%;height:100%
"
>
<div
class=
"card-config
"
>
<div
*
ngFor=
"let question of item.questionList; let i = index"
class=
"card-item clearfix"
style=
"padding: 0.5vw; width: 100%
; "
>
<div
class=
"card-item-content border
"
>
<span
style=
"height: 30px; font-size: 18px;"
>
第{{i + 1}}页题干:
</span>
<div
*
ngFor=
"let option of question.optionList; let j = index"
>
<br>
<div
*
ngFor=
"let option of question.optionList; let j = index"
class=
"section-content;text-align:center"
style=
"padding: 0.5vw; display: inline-block"
>
<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>
...
...
@@ -48,19 +57,15 @@
</button>
</div>
</div>
<div
*
ngIf=
"(question.optionList.length < 7)"
>
<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;
width: 230px; height: 343px;"
nz-button
nzType=
"dashed"
class=
"add-btn"
(
click
)="
addOption
(
i
)"
>
增加选项
</button>
</div>
</div>
</div>
<br>
</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
)"
>
...
...
@@ -75,6 +80,9 @@
粘贴到下一页
</button>
</div>
</div>
</div>
</div>
<button
style=
"margin-left: 5%; margin-top: 8px; margin-bottom: 100px; height: 50px; width: 90%;"
nz-button
nzType=
"dashed"
class=
"add-btn"
(
click
)="
addQuestion
()"
>
...
...
form/src/app/form/form.component.ts
View file @
856618f1
...
...
@@ -5,12 +5,12 @@ import { JsonPipe } from '@angular/common';
@
Component
({
selector
:
'
app-form
'
,
templateUrl
:
'
./form.component.html
'
,
styleUrls
:
[
'
./form.component.css
'
]
styleUrls
:
[
'
./form.component.
s
css
'
]
})
export
class
FormComponent
implements
OnInit
,
OnChanges
,
OnDestroy
{
// 储存数据用
saveKey
=
"
DataKey_Cocos_FT1
1
"
;
saveKey
=
"
DataKey_Cocos_FT1
2
"
;
// 储存对象
item
;
copyQuestionData
;
...
...
form/src/index.html
View file @
856618f1
<!
doctype
html>
<html
lang=
"
en
"
>
<head>
<meta
charset=
"utf-8"
>
<!
DOCTYPE
html>
<html
lang=
"
zh
"
>
<head>
<meta
charset=
"utf-8"
/
>
<title>
NgOne
</title>
<base
href=
"/"
>
<
!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">--
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<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>
<base
href=
"/"
/
>
<
style
>
html
,
body
{
width
:
100%
;
height
:
100%
;
</head>
<body>
<app-root></app-root>
</body>
}
</style>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<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>
form/src/styles.css
View file @
856618f1
/* 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
'
);
import
EventMgr
from
'
./EventMgr
'
;
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