|
|
@@ -3,8 +3,9 @@
|
|
|
<view class="icon-title-navBar-box">
|
|
|
<text class="nav-bar-title">学习</text>
|
|
|
</view>
|
|
|
+ <view v-if="existData" class="ezy-page-body xuexi-page-body">
|
|
|
<scroll-view scroll-y>
|
|
|
- <view v-if="existData" class="ezy-page-body xuexi-page-body">
|
|
|
+ <view class="xxjl-card-box-padding">
|
|
|
<view class="xxjl-card-box">
|
|
|
<!-- 显示内容 -->
|
|
|
<view class="card-body-box">
|
|
|
@@ -26,7 +27,7 @@
|
|
|
<view class="jxxx-btn" @click="handlePlay(banbenInfo,'jixu')"></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="xx-scroll-body">
|
|
|
+ </view>
|
|
|
<view class="xx-item-list">
|
|
|
<view class="xx-item-title">— 以下为当前等级课程目录 —</view>
|
|
|
<view v-for="(danyuanItem,index) in danyuanList" :key="danyuanItem.danyuanId">
|
|
|
@@ -34,8 +35,10 @@
|
|
|
<view v-if="index ==0" class="item-dy-box" :class="{ 'item-fixed': isFixed }" @click="handleClickDanyuan" :id="`unit-title-${danyuanItem.danyuanId}`">
|
|
|
<view class="dy-left-box">L{{banbenInfo.dengjiId}}</view>
|
|
|
<view class="dy-right-box">
|
|
|
- <view class="dy-name">{{danyuanItem.danyuanName}}</view>
|
|
|
- <view>{{danyuanItem.danyuanIntro}}</view>
|
|
|
+ <view class="right-content">
|
|
|
+ <view class="dy-name">{{danyuanItem.danyuanName}}</view>
|
|
|
+ <view>{{danyuanItem.danyuanIntro}}</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 其他单元 -->
|
|
|
@@ -61,19 +64,18 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- </view>
|
|
|
-
|
|
|
+ <!-- 回到顶部 -->
|
|
|
+ <view class="go-top-btn" v-if="false"></view>
|
|
|
+
|
|
|
+ </scroll-view>
|
|
|
</view>
|
|
|
<view v-if="!existData">
|
|
|
|
|
|
</view>
|
|
|
|
|
|
- </scroll-view>
|
|
|
-
|
|
|
<danyuanInfoVue ref="dyRef" v-if="isShow" @close="isShow= false"></danyuanInfoVue>
|
|
|
<custom-tab-bar :show="true" :current-index="currentTabIndex" />
|
|
|
- <!-- 回到顶部 -->
|
|
|
- <view class="go-top-btn" v-if="false"></view>
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -118,7 +120,7 @@
|
|
|
currentVisibleUnit: '', // 当前可见的单元名称
|
|
|
observer: null, // IntersectionObserver实例
|
|
|
lastToastUnitId: null ,// 上一次toast的单元ID,防止重复触发
|
|
|
- isFixed:true
|
|
|
+ isFixed:false,
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
@@ -190,9 +192,9 @@
|
|
|
|
|
|
console.log('item',item);
|
|
|
if(item.danyuanName !="第一单元"){
|
|
|
- this.isFixed = false
|
|
|
+ this.isFixed = true
|
|
|
}else{
|
|
|
- this.isFixed = true
|
|
|
+ this.isFixed = false
|
|
|
}
|
|
|
// uni.showToast({
|
|
|
// title: `${item.danyuanName}`,
|