Browse Source

样式修改

tanxue 3 tuần trước cách đây
mục cha
commit
4478a3bffc
2 tập tin đã thay đổi với 13 bổ sung7 xóa
  1. 2 1
      common/styles/global/pages.scss
  2. 11 6
      pages/chanpinneirong/index.vue

+ 2 - 1
common/styles/global/pages.scss

@@ -2063,7 +2063,7 @@
 	
 	// 学习记录
 	.xxjl-card-box{
-		width: 95%;margin: 0 auto 0;padding: 72rpx 24rpx 24rpx 24rpx;box-sizing: border-box;
+		width: 95%;margin: 0 auto 24rpx;padding: 72rpx 24rpx 24rpx 24rpx;box-sizing: border-box;
 		background-color: #5795f6;border-radius: 16rpx;position: relative;
 		.card-body-box{
 			display: flex;
@@ -2128,6 +2128,7 @@
 	
 	// 学习目录
 	.xx-item-list{
+		padding-bottom: 24rpx;
 		.xx-item-title{text-align: center;margin: 32rpx 0;font-size: 32rpx;color: #444;}
 		.xx-more-btn{
 			width: 630rpx;height: 89rpx;@include ezy-no-repeat-cover;margin: 0 auto 32rpx;

+ 11 - 6
pages/chanpinneirong/index.vue

@@ -1,5 +1,5 @@
 <template>
-	<view class="ezy-xuexi-page3">
+	<view class="ezy-xuexi-page">
 		<view class="icon-title-navBar-box">
 			<text class="nav-bar-title">学习</text>
 		</view>
@@ -32,14 +32,19 @@
 			</view>
 
 			<view class="xx-item-list">
-				<!-- <view class="xx-item-title">— 以下为当前等级课程目录 —</view> -->
+				<view class="xx-item-title">— 以下为当前等级课程目录 —</view>
 
 				<view v-for="(danyuanItem, index) in danyuanList" :key="danyuanItem.danyuanId">
 					<!-- 单元标题(带唯一ID,用于位置查询) -->
-					<view class="xx-item-title" @click="handleClickDanyuan(danyuanItem.danyuanId)"
-						:id="`title-${danyuanItem.danyuanId}`">
-						— {{ danyuanItem.danyuanName }} {{ danyuanItem.danyuanIntro }} —
-					</view>
+					<ezyActiveVue class="ezy-list-item-active item-dy-box" @aclick="handleClickDanyuan(danyuanItem)" :id="`unit-title-${danyuanItem.danyuanId}`">
+						<view class="dy-left-box">L{{banbenInfo.dengjiId}}</view>
+						<view class="dy-right-box">
+							<view class="right-content">
+								<view class="dy-name">{{danyuanItem.danyuanName}}</view>
+								<view>{{danyuanItem.danyuanIntro}}</view>
+							</view>
+						</view>
+					</ezyActiveVue>
 					<!-- 节列表 -->
 					<ezyActiveVue class="ezy-list-item-active xx-item-box" v-for="jieItem in danyuanItem.jieList"
 						:key="jieItem.jieId" @aclick="handlePlay(jieItem,'play')">