Procházet zdrojové kódy

Signed-off-by: liuboyan <632697560@qq.com>
bug

liuboyan před 4 roky
rodič
revize
b3fe50b0a0

+ 2 - 0
config/api.js

@@ -25,6 +25,8 @@ module.exports = {
 	getEnlistAbleStudent: API_BASE + '/v2/class/selectApplyList',
 	//  获取会员服务班级详情
 	getMemberClassDetail: API_BASE + '/v2/class/getDetail',
+	//  获取我的班级全部请假列表
+	getAllLeaveList: API_BASE + '/v2/class/getAllLeaveList',
 	//  学员报名
 	enlistStudent: API_BASE + '/v2/class/apply',
 	//  获取可预约学员列表

+ 1 - 1
pages/index/index.vue

@@ -15,7 +15,7 @@
 				<view class="venue-content" slot="body">
 					<view class="info-text">
 						<u-icon name="car"></u-icon>
-						距您{{item.distance}}km
+						距您{{item.distance}}
 					</view>
 					<view class="info-text">
 						<u-icon name="map"></u-icon>

+ 1 - 1
pagesMain/couponList.vue

@@ -8,7 +8,7 @@
 				 :refresher-triggered="triggered" :refresher-threshold="100" refresher-background="white" @refresherrefresh="onRefresh"
 				 @refresherrestore="onRestore">
 					<u-card :show-head="false" :show-foot="false" padding="0px" margin="10px" borderRadius="40" v-for="(site, index2) in item.tableList"
-					 :key="index" class="class-card">
+					 :key="index2" class="class-card">
 						<view class="class-content" slot="body">
 							<view class="class-info-img">
 								<u-image width="60px" height="60px" :src="site.url" shape="circle"></u-image>

+ 4 - 4
pagesMember/myClassDetail.vue

@@ -4,7 +4,7 @@
 		 @head-click="getSignInList">
 			<view class="signIn-box" slot="body">
 				<view class="signIn-col" v-for="(item, index) in classInfo.signInList" :key="index">
-					<u-icon name="bookmark" color="#666666" size="64" v-if="item.status"></u-icon>
+					<u-icon name="bookmark" color="#666666" size="64" v-if="!item.status"></u-icon>
 					<u-icon name="bookmark-fill" :color="mainColor" size="64" v-else></u-icon>
 					<view class="signIn-date">{{item.date}}</view>
 				</view>
@@ -82,13 +82,13 @@
 						type: 'warning',
 					})
 				})
-				NET.request(API.getLeaveList, {
+				NET.request(API.getAllLeaveList, {
 					id: this.classId
 				}, 'POST').then(res => {
-					this.availableList = res.data.filter(site => site.type == 1).map(site => {
+					this.availableList = res.data.filter(site => site.status == 0).map(site => {
 						return site.lastDate
 					})
-					this.activeList = res.data.filter(site => site.type == 0).map(site => {
+					this.activeList = res.data.filter(site => site.status == 1).map(site => {
 						return site.lastDate
 					})
 				}).catch(error => {