xuqiang 4 سال پیش
والد
کامیت
106ad4c3da
2فایلهای تغییر یافته به همراه33 افزوده شده و 27 حذف شده
  1. 1 1
      src/main/h5/src/views/programme/arrangeList.vue
  2. 32 26
      src/main/h5/src/views/programme/programmeDetail.vue

+ 1 - 1
src/main/h5/src/views/programme/arrangeList.vue

@@ -26,7 +26,7 @@
       >
         <div class="left">
           <div class="name">{{ item.name }}</div>
-          <div v-for="(spec, index) in item.specialtyId" :key="index">
+          <div v-for="(spec, index) in item.specialtyName" :key="index">
             <div class="name">{{ spec }}</div>
           </div>
           <div class="status" v-if="item.date">

+ 32 - 26
src/main/h5/src/views/programme/programmeDetail.vue

@@ -1,9 +1,12 @@
 <template>
   <div class="home">
     <div class="base">
-      <div style="margin-top:20px" v-if="info.video">
+      <div style="margin-bottom:20px" v-if="info.video">
         <video-upload v-model="info2" class="width"></video-upload>
       </div>
+      <div style="margin-bottom:20px" v-if="info.img">
+        <img class="img" :src="info.img" alt="" />
+      </div>
       <div class="base-info">
         <div class="base-info-item">
           <div class="text1">节目名称</div>
@@ -178,6 +181,27 @@ export default {
   },
   mounted() {
     this.getInfo(this.programmeId);
+    this.$http
+      .post(
+        `/programme/byExpert`,
+        {
+          size: 100,
+          query: {
+            arrangeId: this.aid
+          }
+        },
+        { body: "json" }
+      )
+      .then(res => {
+        this.relatedList = res.content;
+        this.empty = res.empty;
+        // this.nowActive = res.content.findIndex(item => {
+        //   console.log(item.id);
+        //   return item.id === this.info.id;
+        // });
+        // console.log(this.info.id);
+        // console.log(this.nowActive);
+      });
   },
   methods: {
     next() {
@@ -203,31 +227,9 @@ export default {
         this.score = "";
         this.message = "";
       });
-      this.getRelated();
-    },
-    getRelated() {
-      this.$http
-        .post(
-          `/programme/byExpert`,
-          {
-            size: 100,
-            query: {
-              arrangeId: this.aid
-            }
-          },
-          { body: "json" }
-        )
-        .then(res => {
-          this.relatedList = res.content;
-          this.empty = res.empty;
-          // this.nowActive = res.content.findIndex(item => {
-          //   console.log(item.id);
-          //   return item.id === this.info.id;
-          // });
-          // console.log(this.info.id);
-          // console.log(this.nowActive);
-        });
+      // this.getRelated();
     },
+    // getRelated() {},
     scoreChange() {
       this.$nextTick(() => {
         if (this.score > 100) {
@@ -303,7 +305,11 @@ export default {
     background-color: #fff;
     border-radius: 12px;
   }
-
+  .img {
+    width: 100px;
+    height: 100px;
+    text-align: center;
+  }
   .base-info {
     position: relative;
     padding: 22px 44px;