tanxue 1 місяць тому
батько
коміт
624757c29e
2 змінених файлів з 19 додано та 10 видалено
  1. 7 0
      common/styles/global/pages.scss
  2. 12 10
      pages/admin/Kecheng/list.vue

+ 7 - 0
common/styles/global/pages.scss

@@ -195,6 +195,13 @@
 	.admin-list-box{
 		.admin-list-item-box{border-bottom: 20rpx solid #f4f6fa;}
 		.uni-list--border,.uni-list--border-top{display: none;}
+		// admin课程
+		.kecheng-list-card{
+			display: flex;
+			.kc-totalTm{margin-left: 0;}
+			.kc-name{width: 360rpx;@include single-line-ellipsis();}
+			img{width: 300rpx;max-height: 260rpx;margin-right: 32rpx;}
+		}
 	}
 	
 		// 列表区域

+ 12 - 10
pages/admin/Kecheng/list.vue

@@ -18,16 +18,18 @@
 				<uni-list class="admin-list-box">
 					<uni-list-item v-for="item in data.list" class="admin-list-item-box">
 						<template v-slot:body>
-							<view class="item-card-row">
-								<!-- 数量 -->
-								<view class="ks-item-top">
-									<view>{{item.zyName}}</view>
-									<view class="ks-zyLevelName">{{item.zyLevelName}}</view>
+							<view class="kecheng-list-card">
+								<img :src="item.pic">
+								<view class="item-card-row">
+									<!-- 数量 -->
+									<view class="ks-item-top">
+										<view class="kc-name">{{item.zyName}} [{{item.zyLevelName}}]</view>
+									</view>
+									<view class="ks-totalTm kc-totalTm">
+										<icon class="phone-time-icon" />时间:{{formatDuration(item.period)}}分钟
+									</view>
+									<button @click="checkKecheng(item)" type="primary" size="mini"  class="item-view-btn">查看内容</button>
 								</view>
-								<view class="ks-totalTm">
-									<icon class="phone-time-icon" />时间:{{formatDuration(item.period)}}分钟
-								</view>
-								<button @click="checkKecheng(item)" type="primary" size="mini"  class="item-view-btn">查看内容</button>
 							</view>
 						</template>
 					</uni-list-item>
@@ -37,7 +39,7 @@
 			</scroll-view>
 
 		<!-- 页面底端 -->
-		<customTabbarAdminVue :current-tab="0"></customTabbarAdminVue>
+		<customTabbarAdminVue :current-tab="2"></customTabbarAdminVue>
 	</view>
 </template>