|
@@ -9,7 +9,9 @@
|
|
<view class="ezy-border-body">
|
|
<view class="ezy-border-body">
|
|
<view class="word-title-box" style="display: flex;overflow-x: auto;" v-if="listData.jieNumberList && listData.jieNumberList.length >0">
|
|
<view class="word-title-box" style="display: flex;overflow-x: auto;" v-if="listData.jieNumberList && listData.jieNumberList.length >0">
|
|
<view :id="'item-' + item.jieId" class="title-item" v-for="(item,index) in listData.jieNumberList" @click="handleTitleClick(item)"
|
|
<view :id="'item-' + item.jieId" class="title-item" v-for="(item,index) in listData.jieNumberList" @click="handleTitleClick(item)"
|
|
- :key="item.jieId" :class="{active: listData.activeIndex == index}">Unit{{item.number}}</view>
|
|
|
|
|
|
+ :key="item.jieId" :class="{active: listData.activeIndex == index}"
|
|
|
|
+ v-show="isTargetInSameGroup(listData.jieNumberList, listData.jieNumberList[listData.activeIndex],item.jieId)">
|
|
|
|
+ Unit{{item.number}}</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<swiper class="word-list-swiper-box" :indicator-dots="false" :autoplay="false" :circular="false" :current="listData.activeIndex"
|
|
<swiper class="word-list-swiper-box" :indicator-dots="false" :autoplay="false" :circular="false" :current="listData.activeIndex"
|
|
@@ -62,8 +64,8 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
- import {reactive,ref,nextTick} from "vue";
|
|
|
|
- import {toast,getDataFromStr,useActiveDomIntoView} from "@/utils/common";
|
|
|
|
|
|
+ import {reactive,ref,nextTick,computed} from "vue";
|
|
|
|
+ import {toast,getDataFromStr,useActiveDomIntoView,isTargetInSameGroup} from "@/utils/common";
|
|
import {onLoad} from "@dcloudio/uni-app";
|
|
import {onLoad} from "@dcloudio/uni-app";
|
|
import {getWordZhangList,getWordZhangListYK,} from "@/api/word.js";
|
|
import {getWordZhangList,getWordZhangListYK,} from "@/api/word.js";
|
|
import cacheManager from '@/utils/cacheManager.js';
|
|
import cacheManager from '@/utils/cacheManager.js';
|
|
@@ -105,7 +107,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
onLoad((options) => {
|
|
onLoad((options) => {
|
|
routerOpt = options;
|
|
routerOpt = options;
|
|
if (!cacheManager.get('auth')) {
|
|
if (!cacheManager.get('auth')) {
|