xuqiaoying hace 3 años
padre
commit
439bc3aeeb
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      pages3/polyv/detail.vue

+ 8 - 0
pages3/polyv/detail.vue

@@ -129,6 +129,7 @@
 					</view>
 
           <view class="all_items" v-for="(courseItem, c_index) in goodsTeacher" :key="c_index">
+            
             <view v-for="(cour, cou_index) in courseItem.courseList" :key="cou_index">
               <view v-if="cour.show && cour.show == 1">
                 <view v-if="courseTotal > 1" class="cou_title">{{ cour.courseName }}</view>
@@ -207,6 +208,8 @@
               </view>
 
             </view>
+
+
           </view>
         </view>
         <!--讲义 -->
@@ -1014,6 +1017,11 @@ export default {
           let courseItem = await this.getMenuList(item.courseList[0].courseId)
           // console.log('==courseItem', courseItem);
           item['courseMeun'] = courseItem
+          if (item.courseList[0].courseId == this.courseId ) {
+            item['courseShow'] = true
+          } else {
+            item['courseShow'] = false
+          }
         })
         console.log('===,== this.goodsTeacher', this.goodsTeacher, 'this.courseId:', this.courseId);
       })