Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
party-build-cloud
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
wangqinghua
party-build-cloud
Commits
893c7985
Commit
893c7985
authored
Jun 15, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出题采纳
parent
15b5aeb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
87 additions
and
0 deletions
+87
-0
accept.html
src/pages/discover-pages/accept/accept.html
+87
-0
No files found.
src/pages/discover-pages/accept/accept.html
0 → 100644
View file @
893c7985
<ion-header>
<ion-navbar>
<ion-title>
我的问答
</ion-title>
</ion-navbar>
</ion-header>
<ion-content>
<div
class=
"learn-item"
>
<div
class=
"item-container"
>
<div
class=
"item-title"
>
<p>
<span
*
ngIf=
"item?.type == 1"
>
(判断)
</span>
<span
*
ngIf=
"item?.type == 2"
>
(单选)
</span>
<span
*
ngIf=
"item?.type == 3"
>
(多选)
</span>
{{item?.stem}}
</p>
</div>
<div
class=
"item-content"
>
<div
class=
"padding-20-20"
>
<!--判断题-->
<ng-container
*
ngIf=
"item?.type == 1"
>
<p>
<label>
<input
[
disabled
]="
true
"
[(
ngModel
)]="
answer
"
[
name
]="
item
?.
id
"
value=
"A"
type=
"radio"
>
<span
class=
" selectIndex"
>
A
</span>
是
</label>
</p>
<p>
<label>
<input
[
disabled
]="
true
"
[(
ngModel
)]="
answer
"
[
name
]="
item
?.
id
"
value=
"B"
type=
"radio"
>
<span
class=
" selectIndex"
>
B
</span>
否
</label>
</p>
</ng-container>
<!--单选题-->
<ng-container
*
ngIf=
"item?.type == 2"
>
<ng-container
*
ngFor=
" let option1 of item?.options;"
>
<p>
<label>
<input
[
disabled
]="
true
"
[(
ngModel
)]="
answer
"
type=
"radio"
[
value
]="
option1
.
option
"
[
name
]="
item
?.
id
"
>
<span
class=
"selectIndex"
>
{{option1.option}}
</span>
{{option1.comment}}
</label>
</p>
</ng-container>
</ng-container>
<!--多选题-->
<ng-container
*
ngIf=
"item?.type == 3"
>
<ng-container
*
ngFor=
" let option2 of item.options;let i2 = index;"
>
<p>
<label>
<input
type=
"checkbox"
[
disabled
]="
true
"
[
value
]="
option2
.
option
"
[
name
]="
item
?.
id
"
>
<span
class=
"input-duox selectIndex"
>
{{option2.option}}
</span>
{{option2.comment}}
</label>
</p>
</ng-container>
</ng-container>
</div>
</div>
</div>
</div>
<div
class=
"stuff-comment"
>
<p
class=
"comment-title"
>
回答
</p>
<div
*
ngFor=
"let answer of answerList"
class=
"comment-item"
>
<ion-row>
<ion-col
col-12
>
<p
class=
"comment-info"
>
{{answer.userName}}
</p>
<p
class=
"commnet-content"
>
<span
class=
"margin-right-5 margin-left-20"
>
回答:
</span>
{{answer.answer}}
<span
style=
"color: #003388"
class=
"margin-left-10"
(
click
)="
accept
(
answer
.
id
)"
>
采纳
</span>
</p>
</ion-col>
</ion-row>
</div>
</div>
</ion-content>
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