wkyy 2 лет назад
Родитель
Сommit
0ceb2f88c7
2 измененных файлов с 7 добавлено и 6 удалено
  1. 2 2
      pages/parents/homePage/homePage.vue
  2. 5 4
      pages/teacher/callNames/classCall.vue

+ 2 - 2
pages/parents/homePage/homePage.vue

@@ -20,8 +20,8 @@
 		</view>
 		<u-select v-model="show" mode="single-column" :list="studentList" @confirm="confirm"></u-select>
 		<view class="head">
-			<view class="wrap" v-if="bannerList.length != 0">
-				<u-swiper :list="bannerList"></u-swiper>
+			<view class="wrap">
+				<u-swiper :list="bannerList" v-if="bannerList.length != 0"></u-swiper>
 			</view>
 
 		</view>

+ 5 - 4
pages/teacher/callNames/classCall.vue

@@ -239,14 +239,15 @@
 					this.employee = response.data.employee;
 					this.scheduleSheet = response.data.scheduleSheet;
 					this.studentList = response.data.studentList;
+					this.rollCallList = this.studentList;
 					this.stopStudentList = response.data.stopStudentList;
-					for (var n = 0; n < this.stopStudentList.length; m++) {
-						if(this.stopStudentList[m].rollCallResult == null) {
-							this.stopStudentList[m].rollCallResult = '5';
+					
+					for (var n = 0; n < this.stopStudentList.length; n++) {
+						if(this.stopStudentList[n].rollCallResult == null) {
+							this.stopStudentList[n].rollCallResult = '5';
 						}
 					}
 					
-					this.rollCallList = this.studentList;
 					this.list[0].name = '正常' + this.studentList.length;
 					this.list[1].name = '停课' + this.stopStudentList.length;