Commit fa2d5a01 authored by wangqinghua's avatar wangqinghua

version-4.1.0

parent 8400f96a
<?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>
......
......@@ -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>
......
......@@ -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){
......
......@@ -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>
......
......@@ -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){
......
......@@ -39,6 +39,9 @@
.color-red{
color: red;
}
.color-green{
color: #1ec659;
}
.color-24bafc{
color: #24bafc;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment