Browse Source

修改bug,续费点不上

zhangli 2 years ago
parent
commit
58871d2922
2 changed files with 6 additions and 4 deletions
  1. 2 1
      config/api.js
  2. 4 3
      pagesClass/classDetail.vue

+ 2 - 1
config/api.js

@@ -5,7 +5,8 @@
 
 //const API_BASE = 'http://192.168.1.117:8089'
 // const API_BASE = 'http://192.168.1.109/newApi'
-const API_BASE = 'http://192.168.1.145/newApi'
+//const API_BASE = 'http://192.168.1.145/newApi'
+const API_BASE = 'https://starfire.jihengcc.cn/newApi'
 // const API_BASE = 'http://192.168.1.126:30000'
 // const API_BASE = 'http://192.168.1.117:8089'
 

+ 4 - 3
pagesClass/classDetail.vue

@@ -57,7 +57,7 @@
 				</u-grid-item>
 			</u-grid>
 		</u-card>
-		<u-card :title="'续费卡(' + getStudentsNumber(4) + ')'" title-size="32" margin="0px 0px 10px 0px" :head-style="cardStyle">
+		<u-card :title="'续费卡和自定义卡(' + getStudentsNumber(4) + ')'" title-size="32" margin="0px 0px 10px 0px" :head-style="cardStyle">
 			<u-grid :col="3" slot="body" :border="false"  v-if="classInfo.studentRenewList.length">
 				<u-grid-item v-for="(item, index) in classInfo.studentRenewList" :key="index" :custom-style="gridCustomStyle">
 					<view class="class-student-col" :class="item.state ? 'student-active' : ''" @click="handleVtCardClick(item)">
@@ -157,6 +157,7 @@
 					classEndHours: '',
 					residue: '',
 					address: '',
+					studentLeaveList: [],
 					classExtrasList: [],
 					studentSignList: [],
 					showList: [],
@@ -305,7 +306,7 @@
 					case 2: 
 						return this.classInfo.studentLeaveRecordList.length
 					case 3:
-							return this.classInfo.studentLeaveList.length
+						return this.classInfo.studentLeaveList.length
 					case 4:
 						return this.classInfo.studentRenewList.length
 				}
@@ -561,7 +562,7 @@
 		.class-student-col {
 			height: 28px;
 			display: flex;
-			padding: 0 10px;
+			padding: 0 10rpx;
 			line-height: 28px;
 			color: $mainColor;
 			white-space: nowrap;