فهرست منبع

fix: 调整课程分类模块中分类展示效果

wenxingxing 2 روز پیش
والد
کامیت
3204bb0524
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      pages/index/course.vue
  2. 1 1
      pages/index/video.vue

+ 1 - 1
pages/index/course.vue

@@ -19,7 +19,7 @@
 						<text class="textTwo">{{ cat.cateName }}</text>
 					</view>
 				</view>
-				<view class="expand-btn" @click="categoryExpand = !categoryExpand">
+				<view v-if="categories.length>9" class="expand-btn" @click="categoryExpand = !categoryExpand">
 					<text>{{ categoryExpand ? '收起' : '展开' }}</text>
 					<image :class="{ 'rotate-arrow': !categoryExpand }" src="@/static/images/new/expand.png"></image>
 				</view>

+ 1 - 1
pages/index/video.vue

@@ -19,7 +19,7 @@
 						<text class="ellipsis2">{{ cat.cateName }}</text>
 					</view>
 				</view>
-				<view class="expand-btn" @click="categoryExpand = !categoryExpand">
+				<view v-if="categories.length>9" class="expand-btn" @click="categoryExpand = !categoryExpand">
 					<text>{{ categoryExpand ? '收起' : '展开' }}</text>
 					<image :class="{ 'rotate-arrow': !categoryExpand }" src="@/static/images/new/expand.png"></image>
 				</view>