Browse Source

二次修改

zzp 2 years ago
parent
commit
cc801c74b7
1 changed files with 4 additions and 3 deletions
  1. 4 3
      pagesClass/signForm.vue

+ 4 - 3
pagesClass/signForm.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="content">
-		<u-card :title="'总数(' + studentList.length + ')人'" title-size="32" margin="0px 0px 10px 0px" :head-style="cardStyle">
+		<u-card :title="'总数(' + studentNum + ')人'" title-size="32" margin="0px 0px 10px 0px" :head-style="cardStyle">
 			<u-grid :col="3" slot="body" :border="false">
 				<u-grid-item v-for="(item, index) in studentList" :key="index" :custom-style="gridCustomStyle" @click.native.stop="setSignCheck(item)">
 					<view class="avatar-box">
@@ -61,14 +61,14 @@
 				},
 				gridCustomStyle: {
 					padding: '0 2px'
-				}
+				},
+				studentNum: 0
 			}
 		},
 		onLoad(options) {
 			this.classId = options.id
 			this.status = options.status
 			this.venueId = options.venueId
-			
 		},
 		onShow() {
 			this.initialize()
@@ -89,6 +89,7 @@
 							}
 						}
 					)
+					this.studentNum = this.studentList.length
 				}).catch(error => {
 					this.$refs.uTips.show({
 						title: error.message,