Explorar el Código

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

wenxingxing hace 2 días
padre
commit
3204bb0524
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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>