|
@@ -1,9 +1,12 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="home">
|
|
<div class="home">
|
|
|
<div class="base">
|
|
<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>
|
|
<video-upload v-model="info2" class="width"></video-upload>
|
|
|
</div>
|
|
</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">
|
|
|
<div class="base-info-item">
|
|
<div class="base-info-item">
|
|
|
<div class="text1">节目名称</div>
|
|
<div class="text1">节目名称</div>
|
|
@@ -178,6 +181,27 @@ export default {
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
this.getInfo(this.programmeId);
|
|
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: {
|
|
methods: {
|
|
|
next() {
|
|
next() {
|
|
@@ -203,31 +227,9 @@ export default {
|
|
|
this.score = "";
|
|
this.score = "";
|
|
|
this.message = "";
|
|
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() {
|
|
scoreChange() {
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
if (this.score > 100) {
|
|
if (this.score > 100) {
|
|
@@ -303,7 +305,11 @@ export default {
|
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
|
border-radius: 12px;
|
|
border-radius: 12px;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ .img {
|
|
|
|
|
+ width: 100px;
|
|
|
|
|
+ height: 100px;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ }
|
|
|
.base-info {
|
|
.base-info {
|
|
|
position: relative;
|
|
position: relative;
|
|
|
padding: 22px 44px;
|
|
padding: 22px 44px;
|