xuqiaoying 3 лет назад
Родитель
Сommit
e3f252791b
1 измененных файлов с 43 добавлено и 6 удалено
  1. 43 6
      pages3/polyv/detail.vue

+ 43 - 6
pages3/polyv/detail.vue

@@ -127,15 +127,49 @@
 						<view class="note">正在直播中</view>
 						<view class="title">{{livingItem.sectionName}}</view>
 					</view>
-          <!-- <view class="all_item" v-for="(cou, c_index) in goodsTeacher" :key="c_index"> -->
-            <!-- <view class="cou_title">{{ cou.}}</view> -->
-          <view v-if="teacherList && teacherList.length > 0" class='teacher_names'>
+          <!-- <view v-for="(courseItem, gTindex) in goodsTeacher" :key="gTindex">
+            <view v-for="(item, index) in courseItem.courseList" :key="index" v-show="item.subjectId === newActiveSubjectId || !newActiveSubjectId">
+                <view class="course_items"  v-if="item.show && item.show == 1">
+                    <view class="course_lefts">
+                      <view class="course_title">
+                        {{ item.courseName }}
+                      </view>
+                      <view v-if="courseItem.teaList && courseItem.teaList.length > 0" class='teacher_names' >
+                          <view v-for="(tea, tindex) in courseItem.teaList" :key="tindex" class="names"
+                          >{{tea.aliasName}}</view>
+                      </view>
+                      <view class="course_pros">
+                        学习进度
+                        <text> {{ item.stuAllNum + item.recordNum }}/{{ item.secAllNum + item.examNum}}</text>
+                      </view>
+                    </view>
+                    <view class="course_rights" @click="jump(item, gTindex, 'jump')">
+                      <view class="cicles">
+                        <u-icon name="arrow-right" color="#498AFE" size="20"></u-icon>
+                      </view>
+                      <view class="intoStudy">进入学习</view>
+                    </view>
+                </view>
+            </view>
+          </view> -->
+      <view class="all_item" v-for="(courseItem, c_index) in goodsTeacher" :key="c_index">
+        <view v-for="(cour, cou_index) in courseItem.courseList" :key="cou_index">
+            <view class="cou_title">{{ cour.courseName }}</view>
+
+            <view v-if="courseItem.teaList && courseItem.teaList.length > 0" class='teacher_names'>
+                <view v-for="(tea, tindex) in courseItem.teaList" :key="tindex" class="names"
+                  :class="{nactive: teacherIndex == tindex}" @click="activeFunc(tea, tindex)">
+                  {{ tea.aliasName }}
+                </view>
+            </view>
+          <!-- <view v-if="teacherList && teacherList.length > 0" class='teacher_names'>
               <view v-for="(tea, index) in teacherList" :key="index" class="names"
                 :class="{nactive: teacherIndex == index}" @click="activeFunc(tea, index)">
                 {{ tea.aliasName }}
               </view>
-          </view>
-          <view class="menuBox onessss" v-for="(item, index) in menuList" :key="index">
+          </view> -->
+          <!-- menuList -->
+          <view class="menuBox onessss" v-for="(item, index) in courseItem.courseItem" :key="index">
             <!--模块 -->
             <view v-if="item.type == 1"
               ><courseModule
@@ -199,7 +233,10 @@
             ></view>
             <!-- @togoBack="togoBack($event)" -->
           </view>
-          <!-- </view> -->
+
+        </view>
+
+      </view>
         </view>
         <!--讲义 -->
         <view v-show="current == 1">