|
@@ -35,12 +35,16 @@
|
|
|
finished-text="我是有底线的"
|
|
|
@load="statisticsList">
|
|
|
<div class="stu_info" v-for="(item, index) in dataList" :key="index">
|
|
|
- <van-cell :center="true" title-class="truant">
|
|
|
+ <van-cell :center="true">
|
|
|
<template slot="icon">
|
|
|
<img class="logo" src="@/assets/images/default_head_img.png" alt="">
|
|
|
</template>
|
|
|
<template slot="default">到课(天):{{ item.normalDay }}<br/>旷课(天):{{ item.truantDay }}<br/>请假(天):{{ item.leaveDay }}</template>
|
|
|
- <template slot="title">{{ item.studentName }}<van-tag v-if="item.truant" type="danger" size="medium">连续旷课</van-tag></template>
|
|
|
+ <template slot="title">
|
|
|
+ <div :class="item.truant ? 'truant' : ''">
|
|
|
+ {{ item.studentName }}<van-tag v-if="item.truant" type="danger" size="medium">连续旷课</van-tag>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
<template slot="label">{{ item.subjectName | joinArray }}</template>
|
|
|
</van-cell>
|
|
|
<div class="stu-detail">
|
|
@@ -209,6 +213,7 @@ export default {
|
|
|
font-size: .16rem;
|
|
|
font-weight: bold;
|
|
|
color: @mFontColor;
|
|
|
+ flex-basis: 15%;
|
|
|
&.truant {
|
|
|
color: @redColor;
|
|
|
}
|