Browse Source

样式修改

tanxue 1 month ago
parent
commit
c5ce5b50d0
2 changed files with 4 additions and 6 deletions
  1. 2 2
      common/styles/global/pages.scss
  2. 2 4
      pages/chanpinneirong/index.vue

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

@@ -2120,8 +2120,8 @@
 			transform:scale(0.98);
 			transform:scale(0.98);
 		}
 		}
 		.item-dy-box.item-fixed{
 		.item-dy-box.item-fixed{
-			position: fixed;left: 50%;transform: translate(-50%);
-			top: calc(120rpx + var(--status-bar-height));z-index: 10;
+			position:sticky;position:-webkit-sticky;
+			top: 20rpx;z-index: 10;
 		}
 		}
 		/* 动画类 */
 		/* 动画类 */
 		.item-dy-box.item-active {
 		.item-dy-box.item-active {

+ 2 - 4
pages/chanpinneirong/index.vue

@@ -4,7 +4,6 @@
 			<text class="nav-bar-title">学习</text>
 			<text class="nav-bar-title">学习</text>
 		</view>
 		</view>
 		<view v-if="existData" class="ezy-page-body xuexi-page-body">
 		<view v-if="existData" class="ezy-page-body xuexi-page-body">
-		<scroll-view scroll-y class="xx-scroll-view">
 			<view class="xxjl-card-box-padding">
 			<view class="xxjl-card-box-padding">
 				<view class="xxjl-card-box">
 				<view class="xxjl-card-box">
 					<!-- 显示内容 -->
 					<!-- 显示内容 -->
@@ -31,8 +30,8 @@
 					<view class="xx-item-list">
 					<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">
 						<view v-for="(danyuanItem,index) in danyuanList" :key="danyuanItem.danyuanId">
-							<!-- 第一单元 -->
-							<view v-if="index ==0"  class="item-dy-box" :class="{ 'item-fixed': isFixed }" @click="handleClickDanyuan" :id="`unit-title-${danyuanItem.danyuanId}`">
+							<!-- 第一单元 v-if="index ==0"-->
+							<view class="item-dy-box item-fixed" @click="handleClickDanyuan" :id="`unit-title-${danyuanItem.danyuanId}`">
 								<view class="dy-left-box">L{{banbenInfo.dengjiId}}</view>
 								<view class="dy-left-box">L{{banbenInfo.dengjiId}}</view>
 								<view class="dy-right-box">
 								<view class="dy-right-box">
 									<view class="right-content">
 									<view class="right-content">
@@ -67,7 +66,6 @@
 				<!-- 回到顶部 -->
 				<!-- 回到顶部 -->
 				<view class="go-top-btn" v-if="false"></view>
 				<view class="go-top-btn" v-if="false"></view>
 				
 				
-			</scroll-view>
 			</view>
 			</view>
 			<view v-if="!existData">
 			<view v-if="!existData">