Przeglądaj źródła

修改:课程列表按钮显示逻辑修改

littleblue55 1 tydzień temu
rodzic
commit
81ff0dc026
1 zmienionych plików z 7 dodań i 1 usunięć
  1. 7 1
      pages/goOnEdu/course/courseHome/courseHome.vue

+ 7 - 1
pages/goOnEdu/course/courseHome/courseHome.vue

@@ -91,7 +91,13 @@
 						<!-- 如果课程结束了 -->
 						<view class="func" v-else>
 							<!-- regType: 0 线下 ;1 线上 -->
-							<view v-if="course.regType==='0'" class="func-box" style="justify-content: flex-end;">
+							<view v-if="course.regType==='0' && course.status === '2'" class="func-box" style="justify-content: flex-end;">
+								<view class="button over" @click="toPage(course)">已结束</view>
+							</view>
+							<view v-if="course.regType==='0' && course.status === '3' && !course.actId" class="func-box" style="justify-content: flex-end;">
+								<view class="button over" @click="toPage(course)">已结束</view>
+							</view>
+							<view v-if="course.regType==='0' && course.status === '3' && course.actId" class="func-box" style="justify-content: flex-end;">
 								<view class="button-long over" @click="toAct(course.actId)">已结束,点击查看活动</view>
 							</view>
 							<view v-if="course.regType==='1'" class="func-box" style="justify-content: flex-end;">