Browse Source

修复bug

chenxiong 3 năm trước cách đây
mục cha
commit
25cd70c368
2 tập tin đã thay đổi với 125 bổ sung3 xóa
  1. 5 0
      src/components/header/index.vue
  2. 120 3
      src/pages/course-detail/index.vue

+ 5 - 0
src/components/header/index.vue

@@ -68,6 +68,11 @@
         </div>
         <div class="search__input">
           <input type="text" v-model="searchKey" autocomplete="off" />
+          <input
+            type="password"
+            autocomplete="new-password"
+            style="display: none"
+          />
         </div>
         <el-button type="primary" @click="search" class="search__btn"
           >搜索</el-button

+ 120 - 3
src/pages/course-detail/index.vue

@@ -162,6 +162,29 @@
                                                   "
                                                 >
                                                   {{ section.name }}
+                                                  <div
+                                                    style="zoom: 0.8"
+                                                    v-if="
+                                                      section.liveStartTime >
+                                                      nowTime
+                                                    "
+                                                  >
+                                                    <span>{{
+                                                      $tools.timestampToTime(
+                                                        section.liveStartTime,
+                                                        (isDay = false)
+                                                      )
+                                                    }}</span
+                                                    >-
+                                                    <span>{{
+                                                      $tools
+                                                        .timestampToTime(
+                                                          section.liveEndTime,
+                                                          (isDay = false)
+                                                        )
+                                                        .substr(11, 9)
+                                                    }}</span>
+                                                  </div>
                                                 </div>
                                               </template>
 
@@ -355,6 +378,29 @@
                                                 class="bank-section__item__text"
                                               >
                                                 {{ section.name }}
+                                                <div
+                                                  style="zoom: 0.8"
+                                                  v-if="
+                                                    section.liveStartTime >
+                                                    nowTime
+                                                  "
+                                                >
+                                                  <span>{{
+                                                    $tools.timestampToTime(
+                                                      section.liveStartTime,
+                                                      (isDay = false)
+                                                    )
+                                                  }}</span
+                                                  >-
+                                                  <span>{{
+                                                    $tools
+                                                      .timestampToTime(
+                                                        section.liveEndTime,
+                                                        (isDay = false)
+                                                      )
+                                                      .substr(11, 9)
+                                                  }}</span>
+                                                </div>
                                               </div>
 
                                               <template
@@ -514,6 +560,7 @@
                                           <div class="bank-section__item__text">
                                             {{ menu.name }}
                                             <div
+                                              style="zoom: 0.8"
                                               v-if="
                                                 menu.liveStartTime > nowTime
                                               "
@@ -691,6 +738,29 @@
                                                   "
                                                 >
                                                   {{ section.name }}
+                                                  <div
+                                                    style="zoom: 0.8"
+                                                    v-if="
+                                                      section.liveStartTime >
+                                                      nowTime
+                                                    "
+                                                  >
+                                                    <span>{{
+                                                      $tools.timestampToTime(
+                                                        section.liveStartTime,
+                                                        (isDay = false)
+                                                      )
+                                                    }}</span
+                                                    >-
+                                                    <span>{{
+                                                      $tools
+                                                        .timestampToTime(
+                                                          section.liveEndTime,
+                                                          (isDay = false)
+                                                        )
+                                                        .substr(11, 9)
+                                                    }}</span>
+                                                  </div>
                                                 </div>
                                               </template>
 
@@ -884,6 +954,29 @@
                                                 class="bank-section__item__text"
                                               >
                                                 {{ section.name }}
+                                                <div
+                                                  style="zoom: 0.8"
+                                                  v-if="
+                                                    section.liveStartTime >
+                                                    nowTime
+                                                  "
+                                                >
+                                                  <span>{{
+                                                    $tools.timestampToTime(
+                                                      section.liveStartTime,
+                                                      (isDay = false)
+                                                    )
+                                                  }}</span
+                                                  >-
+                                                  <span>{{
+                                                    $tools
+                                                      .timestampToTime(
+                                                        section.liveEndTime,
+                                                        (isDay = false)
+                                                      )
+                                                      .substr(11, 9)
+                                                  }}</span>
+                                                </div>
                                               </div>
 
                                               <template
@@ -1042,6 +1135,28 @@
                                           </div>
                                           <div class="bank-section__item__text">
                                             {{ menu.name }}
+                                            <div
+                                              style="zoom: 0.8"
+                                              v-if="
+                                                menu.liveStartTime > nowTime
+                                              "
+                                            >
+                                              <span>{{
+                                                $tools.timestampToTime(
+                                                  menu.liveStartTime,
+                                                  (isDay = false)
+                                                )
+                                              }}</span
+                                              >-
+                                              <span>{{
+                                                $tools
+                                                  .timestampToTime(
+                                                    menu.liveEndTime,
+                                                    (isDay = false)
+                                                  )
+                                                  .substr(11, 9)
+                                              }}</span>
+                                            </div>
                                           </div>
                                         </template>
 
@@ -4168,7 +4283,7 @@ export default {
             this.timeEvent
           );
         //播放视频
-        this.showRecordStatus = false;//隐藏播放记录提示
+        this.showRecordStatus = false; //隐藏播放记录提示
         this.sectionItem = section;
         console.log(section, "section");
         this.isPlayRebuild = section.rebuild;
@@ -4414,7 +4529,7 @@ export default {
       });
 
       this.playerzb.on("s2j_onStartPlay", () => {
-        console.log('s2j_onStartPlay')
+        console.log("s2j_onStartPlay");
         this.livingTimer = setInterval(self.timeEventLiving, 1000);
       });
 
@@ -5737,7 +5852,9 @@ export default {
                           padding-left: 12px;
                           flex: 1;
                           height: 40px;
-                          line-height: 40px;
+                          display: flex;
+                          flex-direction: column;
+                          justify-content: center;
                           cursor: pointer;
 
                           .el-icon-caret-right,