人生啊人生 1 month ago
parent
commit
fe41d54a11
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/view/student/trainChapter/trainChapter.vue

+ 4 - 4
src/view/student/trainChapter/trainChapter.vue

@@ -49,26 +49,26 @@
                     <div class="menuList commonsScrollbarNew" >
 
                         <div class="menuListMain" v-for="(item, index) of state.chapterTree" :key="index" >
+
                             <div :class="'menuListpParent ' + ( (index < state.currentStep || state.currentStep <= -1) ? 'menuListpParentYes' : '' ) "
                             @click="menuClickNew(item, index)" >
                                 <div class="menuListpParentLeft">
-                                    <div v-if="(index >= state.currentStep)" class="logoNo" ></div>
                                     <!-- <div class="logoTime" ></div> -->
-                                    <div v-if="(index < state.currentStep || state.currentStep <= -1)" class="logoMenu" ></div>
+                                    <div :class="'' + ( (index < state.currentStep || state.currentStep <= -1) ? 'logoMenu' : 'logoNo' )" ></div>
                                 </div>
                                 <div class="menuListpParentCenter">{{ item.name }} {{ item.name }} {{ item.name }}</div>
                                 <div class="menuListpParentRight" v-if="item.children != null && item.children != undefined && item.children.length > 0" >
                                     +
                                 </div>
                             </div>
+
                             <div :class="'menuListpChildren ' + ( (index < state.currentStep || state.currentStep <= -1) ? 'menuListpChildrenYes' : '' ) "
                             @click="menuClickNew(item_1, index, item_1.id)"
                             v-if="item.children?.length > 0" v-for="(item_1, index_1) of item.children" :key="index_1" >
                                 <div class="menuListpChildrenKong" ></div>
                                 <div class="menuListpChildrenLeft" >
-                                    <div v-if="(index >= state.currentStep)" class="logoNo" ></div>
                                     <!-- <div class="logoTime" ></div> -->
-                                    <div v-if="(index < state.currentStep || state.currentStep <= -1)" class="logoMenu" ></div>
+                                    <div :class="'' + ( (index < state.currentStep || state.currentStep <= -1) ? 'logoMenu' : 'logoNo' )" ></div>
                                 </div>
                                 <div class="menuListpChildrenRight">
                                     {{ item_1.name }} {{ item_1.name }}