|
|
@@ -32,7 +32,7 @@
|
|
|
<view class="xx-item-title cccAAA2">— 以下为当前等级课程目录 —</view>
|
|
|
|
|
|
<template v-if="unitPositions.length">
|
|
|
- <ezyActiveVue class="ezy-list-item-active item-dy-box item-fixed cccAAA"
|
|
|
+ <ezyActiveVue class="ezy-list-item-active item-dy-box item-fixed cccAAAB"
|
|
|
@aclick="handleClickDanyuan(danyuanList[activeAAAIndex])" :id="`unit-title-${danyuanList[activeAAAIndex].danyuanId}`">
|
|
|
<view class="dy-left-box">L{{banbenInfo.dengjiId}}</view>
|
|
|
<view class="dy-right-box">
|
|
|
@@ -118,6 +118,7 @@
|
|
|
import {
|
|
|
updateXuexiProcess
|
|
|
} from "./useNeirongShuxue"
|
|
|
+ import {nextTick} from "vue";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -457,9 +458,19 @@
|
|
|
.boundingClientRect((rects) => {
|
|
|
console.log('cccAAA', rects)
|
|
|
this.unitPositions = [...rects]
|
|
|
- this.defaultD = rects[0].top;
|
|
|
})
|
|
|
.exec();
|
|
|
+ nextTick(() => {
|
|
|
+ uni
|
|
|
+ .createSelectorQuery()
|
|
|
+ .in(this)
|
|
|
+ .selectAll(".cccAAAB")
|
|
|
+ .boundingClientRect((rects) => {
|
|
|
+ console.log('cccAAAB', rects)
|
|
|
+ this.defaultD = rects[0].top;
|
|
|
+ })
|
|
|
+ .exec();
|
|
|
+ })
|
|
|
},
|
|
|
// 绑定滚动事件
|
|
|
bindScrollEvent() {
|