Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-ces
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
wisdom-ces
Commits
fa2d5a01
Commit
fa2d5a01
authored
Apr 10, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version-4.1.0
parent
8400f96a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
9 deletions
+14
-9
config.xml
config.xml
+1
-1
learning-result.html
src/pages/home/learning/learning-result/learning-result.html
+2
-1
learning-result.ts
src/pages/home/learning/learning-result/learning-result.ts
+3
-3
review-result.html
src/pages/home/learning/review-result/review-result.html
+2
-1
review-result.ts
src/pages/home/learning/review-result/review-result.ts
+3
-3
icon.scss
src/theme/icon.scss
+3
-0
No files found.
config.xml
View file @
fa2d5a01
<?xml version='1.0' encoding='utf-8'?>
<widget
id=
"io.ionic.smart19.starter.test"
version=
"4.1.
0
"
xmlns=
"http://www.w3.org/ns/widgets"
xmlns:cdv=
"http://cordova.apache.org/ns/1.0"
>
<widget
id=
"io.ionic.smart19.starter.test"
version=
"4.1.
1
"
xmlns=
"http://www.w3.org/ns/widgets"
xmlns:cdv=
"http://cordova.apache.org/ns/1.0"
>
<name>
党建云平台(测试)
</name>
<description>
An awesome Ionic/Cordova app.
</description>
<author
email=
"hi@ionicframework"
href=
"http://ionicframework.com/"
>
Ionic Framework Team
</author>
...
...
src/pages/home/learning/learning-result/learning-result.html
View file @
fa2d5a01
...
...
@@ -29,7 +29,8 @@
<div
class=
"item-content2"
>
<p>
满分{{result?.fullmarks}}分
</p>
<p>
共计{{result?.fullCount}}题,答对{{result?.correctCount}}题
</p>
<p
class=
"color-red"
*
ngIf=
"result?.fullmarks *0.6 > result?.score"
>
很遗憾,未能通过测试
</p>
<p
class=
"color-red"
*
ngIf=
"result?.fullmarks *0.8 > result?.score"
>
很遗憾,未能通过测试
</p>
<p
class=
"color-green"
*
ngIf=
"result?.fullmarks *0.8 < result?.score || result?.fullmarks *0.8 == result?.score"
>
通过测试
</p>
</div>
<div>
<button
class=
"submit-btn submit"
(
click
)="
reviewTest
()"
>
测试回顾
</button>
...
...
src/pages/home/learning/learning-result/learning-result.ts
View file @
fa2d5a01
...
...
@@ -38,13 +38,13 @@ export class LearningResultPage {
if
(
this
.
result
.
score
==
0
){
this
.
starList
=
[{
class
:
'star-gray'
},
{
class
:
'star-gray'
},
{
class
:
'star-gray'
},];
}
if
(
0.
6
>
c
&&
c
>
0.3
){
if
(
0.
9
>
c
&&
c
>
0.8
){
this
.
starList
=
[{
class
:
'star-yellow'
},
{
class
:
'star-gray'
},
{
class
:
'star-gray'
},];
}
if
(
0.
3
>
c
&&
c
>
0
){
if
(
0.
8
>
c
&&
c
>
0
){
this
.
starList
=
[{
class
:
'star-yellow'
},
{
class
:
'star-gray'
},
{
class
:
'star-gray'
},];
}
if
(
1
>
c
&&
c
>
0.
6
){
if
(
1
>
c
&&
c
>
0.
9
){
this
.
starList
=
[{
class
:
'star-yellow'
},
{
class
:
'star-yellow'
},
{
class
:
'star-gray'
},];
}
if
(
this
.
result
.
score
==
this
.
result
.
fullmarks
){
...
...
src/pages/home/learning/review-result/review-result.html
View file @
fa2d5a01
...
...
@@ -28,7 +28,8 @@
<div
class=
"item-content2"
>
<p>
满分{{result?.fullmarks}}分
</p>
<p>
共计{{result?.fullCount}}题,答对{{result?.correctCount}}题
</p>
<p
class=
"color-red"
*
ngIf=
"result?.fullmarks *0.6 > result?.score"
>
很遗憾,未能通过测试
</p>
<p
class=
"color-red"
*
ngIf=
"result?.fullmarks *0.8 > result?.score"
>
很遗憾,未能通过测试
</p>
<p
class=
"color-green"
*
ngIf=
"result?.fullmarks *0.8 < result?.score || result?.fullmarks *0.8 == result?.score"
>
通过测试
</p>
</div>
<div>
<button
class=
"submit-btn submit"
(
click
)="
reviewTest
()"
>
测试回顾
</button>
...
...
src/pages/home/learning/review-result/review-result.ts
View file @
fa2d5a01
...
...
@@ -29,13 +29,13 @@ export class ReviewResultPage {
if
(
this
.
result
.
score
==
0
){
this
.
starList
=
[{
class
:
'star-gray'
},
{
class
:
'star-gray'
},
{
class
:
'star-gray'
},];
}
if
(
0.
6
>
c
&&
c
>
0.3
){
if
(
0.
9
>
c
&&
c
>
0.8
){
this
.
starList
=
[{
class
:
'star-yellow'
},
{
class
:
'star-gray'
},
{
class
:
'star-gray'
},];
}
if
(
0.
3
>
c
&&
c
>
0
){
if
(
0.
8
>
c
&&
c
>
0
){
this
.
starList
=
[{
class
:
'star-yellow'
},
{
class
:
'star-gray'
},
{
class
:
'star-gray'
},];
}
if
(
1
>
c
&&
c
>
0.
6
){
if
(
1
>
c
&&
c
>
0.
9
){
this
.
starList
=
[{
class
:
'star-yellow'
},
{
class
:
'star-yellow'
},
{
class
:
'star-gray'
},];
}
if
(
this
.
result
.
score
==
this
.
result
.
fullmarks
){
...
...
src/theme/icon.scss
View file @
fa2d5a01
...
...
@@ -39,6 +39,9 @@
.color-red
{
color
:
red
;
}
.color-green
{
color
:
#1ec659
;
}
.color-24bafc
{
color
:
#24bafc
;
}
...
...
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