Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<ion-header>
<ion-navbar>
<ion-title>测试列表</ion-title>
</ion-navbar>
<div class="tabs-parent">
<div *ngFor="let item of tabsList;let i = index" (click)="change(i)" class="tabs-children">{{item.name}}</div>
<span #tips id="tips"></span>
</div>
</ion-header>
<ion-content class="bgc-e7e8ed">
<!--下拉刷新-->
<!--<ion-refresher (ionRefresh)="doRefresh($event)">-->
<!--<ion-refresher-content pullingText="下拉刷新"-->
<!--pullingIcon="arrow-dropdown"-->
<!--refreshingSpinner="bubbles">-->
<!--</ion-refresher-content>-->
<!--</ion-refresher>-->
<ng-container *ngIf="link">
<ng-container *ngIf="index == 0">
<ion-list>
<ng-container *ngFor="let item of list">
<ion-item class="item-list margin-bottom-10">
<div class="item">
<div class="item-header padding-15-0">
<div class="item-header-style">
<span class="item-title">{{item.title}}</span>
<span *ngIf="item.testResult == 0" float-right class="gray">未完成</span>
<span *ngIf="item.testResult == 1" float-right class="red">测试未通过</span>
<span *ngIf="item.testResult == 2" float-right class="green">测试通过</span>
<span *ngIf="item.testResult == 3" float-right class="yellow">等待评分</span>
</div>
<div class="item-header-style" style="font-size: 1.4rem;margin-top: 5px;color: #666666">
<span>重复测试:</span>
<span *ngIf="item.isRepeat == 1">允许</span>
<span *ngIf="item.isRepeat == 0">不允许</span>
</div>
</div>
<div class="content-button padding-15-0 fontSize-15">
<span>参与人员:</span>
<span *ngIf="item.testObject">{{item.testObject}}</span>
<span *ngIf="item.testResult != 0" (click)="goToResult(item)" float-right class="look">查看结果</span>
<span *ngIf="item.testResult == 0" (click)="goToResult(item)" float-right class="join">开始测试</span>
</div>
<ng-container *ngIf="item.isRank == 1">
<div class="content-button padding-15-0 fontSize-15">
<span class="margin-right-10">最高分:<span
*ngIf="!item?.maxNum && item?.maxNum != 0">无</span>
<span class="color-red">{{item.maxNum}}</span>
</span>
<span>排名:</span>
<span *ngIf="!item?.ranking">无</span>
<span class="color-red">{{item.ranking}}</span>
<span (click)="goToRank(item)" float-right class="look">TOP5排行榜</span>
</div>
</ng-container>
</div>
</ion-item>
</ng-container>
<ng-container *ngIf="list.length == 0">
<ion-list text-center style="margin-top: 10rem">
<img style="width: 20%;" src="./assets/imgs/no-info.png" alt="">
<p text-center>
暂无测试
</p>
</ion-list>
</ng-container>
</ion-list>
</ng-container>
<ng-container *ngIf="index == 1">
<ion-list>
<ng-container *ngIf="noList.length > 0">
<ng-container *ngFor="let item of noList">
<ion-item class="item-list margin-bottom-10">
<div class="item" (click)="goToResult(item)">
<div class="item-header padding-15-0">
<div class="item-header-style">
<span class="item-title">{{item.title}}</span>
<span *ngIf="item.testResult == 0" float-right class="gray">未完成</span>
<span *ngIf="item.testResult == 1" float-right class="red">测试未通过</span>
<span *ngIf="item.testResult == 2" float-right class="green">测试通过</span>
<span *ngIf="item.testResult == 3" float-right class="yellow">等待评分</span>
</div>
<div class="item-header-style"
style="font-size: 1.4rem;margin-top: 5px;color: #666666">
<span>重复测试:</span>
<span *ngIf="item.isRepeat == 1">允许</span>
<span *ngIf="item.isRepeat == 0">不允许</span>
</div>
</div>
<div class="content-button padding-15-0 fontSize-15">
<span>参与人员:</span>
<span *ngIf="item.testObject">{{item.testObject}}</span>
<span *ngIf="item.testResult != 0" (click)="goToResult(item)" float-right
class="look">查看结果</span>
<span *ngIf="item.testResult == 0" (click)="goToResult(item)" float-right
class="join">开始测试</span>
</div>
<ng-container *ngIf="item.isRank == 1">
<div class="content-button padding-15-0 fontSize-15">
<span class="margin-right-10">最高分:<span
*ngIf="!item?.maxNum && item?.maxNum != 0">无</span>
<span class="color-red">{{item.maxNum}}</span>
</span>
<span>排名:</span>
<span *ngIf="!item?.ranking">无</span>
<span class="color-red">{{item.ranking}}</span>
<span (click)="goToRank(item)" float-right class="look">TOP5排行榜</span>
</div>
</ng-container>
</div>
</ion-item>
</ng-container>
</ng-container>
<ng-container *ngIf="noList.length == 0">
<ion-list text-center style="margin-top: 10rem">
<img style="width: 20%;" src="./assets/imgs/no-info.png" alt="">
<p text-center>
暂无测试
</p>
</ion-list>
</ng-container>
</ion-list>
</ng-container>
<ng-container *ngIf="index == 2">
<ion-list>
<ng-container *ngIf="doList.length > 0">
<ng-container *ngFor="let item of doList">
<ion-item class="item-list margin-bottom-10">
<div class="item" (click)="goToResult(item)">
<div class="item-header padding-15-0">
<div class="item-header-style">
<span class="item-title">{{item.title}}</span>
<span *ngIf="item.testResult == 0" float-right class="gray">未完成</span>
<span *ngIf="item.testResult == 1" float-right class="red">测试未通过</span>
<span *ngIf="item.testResult == 2" float-right class="green">测试通过</span>
<span *ngIf="item.testResult == 3" float-right class="yellow">等待评分</span>
</div>
<div class="item-header-style"
style="font-size: 1.4rem;margin-top: 5px;color: #666666">
<span>重复测试:</span>
<span *ngIf="item.isRepeat == 1">允许</span>
<span *ngIf="item.isRepeat == 0">不允许</span>
</div>
</div>
<div class="content-button padding-15-0 fontSize-15">
<span>参与人员:</span>
<span *ngIf="item.testObject">{{item.testObject}}</span>
<span *ngIf="item.testResult != 0" (click)="goToResult(item)" float-right
class="look">查看结果</span>
<span *ngIf="item.testResult == 0" (click)="goToResult(item)" float-right
class="join">开始测试</span>
</div>
<ng-container *ngIf="item.isRank == 1">
<div class="content-button padding-15-0 fontSize-15">
<span class="margin-right-10">最高分:<span
*ngIf="!item?.maxNum && item?.maxNum != 0">无</span>
<span class="color-red">{{item.maxNum}}</span>
</span>
<span>排名:</span>
<span *ngIf="!item?.ranking">无</span>
<span class="color-red">{{item.ranking}}</span>
<span (click)="goToRank(item)" float-right class="look">TOP5排行榜</span>
</div>
</ng-container>
</div>
</ion-item>
</ng-container>
</ng-container>
<ng-container *ngIf="doList.length == 0">
<ion-list text-center style="margin-top: 10rem">
<img style="width: 20%;" src="./assets/imgs/no-info.png" alt="">
<p text-center>
暂无测试
</p>
</ion-list>
</ng-container>
</ion-list>
</ng-container>
</ng-container>
<!--上滑加载数据-->
<!--<ion-infinite-scroll (ionInfinite)="doInfinite($event)">-->