|
|
@@ -1,6 +1,9 @@
|
|
|
<template>
|
|
|
<div class="home">
|
|
|
<div class="base">
|
|
|
+ <div style="margin-top:20px" v-if="info.video">
|
|
|
+ <video-upload v-model="info2" class="width"></video-upload>
|
|
|
+ </div>
|
|
|
<div class="base-info">
|
|
|
<div class="base-info-item">
|
|
|
<div class="text1">节目名称</div>
|
|
|
@@ -70,18 +73,33 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
- <div class="bottom" v-if="!info.second">
|
|
|
- <van-button
|
|
|
- @click="submitScore"
|
|
|
- :disabled="!score"
|
|
|
- round
|
|
|
- block
|
|
|
- :color="$colors.prim"
|
|
|
- >
|
|
|
- 提交评分
|
|
|
- </van-button>
|
|
|
- </div>
|
|
|
+ <template>
|
|
|
+ <!-- <div class="bottom" v-if="!info.second">
|
|
|
+ <van-button
|
|
|
+ @click="submitScore"
|
|
|
+ :disabled="!score"
|
|
|
+ round
|
|
|
+ block
|
|
|
+ :color="$colors.prim"
|
|
|
+ >
|
|
|
+ 提交评分
|
|
|
+ </van-button>
|
|
|
+ </div> -->
|
|
|
+ <div class="bottom btnList">
|
|
|
+ <!-- <van-button
|
|
|
+ v-if="nowActive !== 0"
|
|
|
+ @click="pre"
|
|
|
+ round
|
|
|
+ block
|
|
|
+ :color="$colors.prim"
|
|
|
+ >
|
|
|
+ 上一个
|
|
|
+ </van-button> -->
|
|
|
+ <van-button @click="next" round block :color="$colors.prim">
|
|
|
+ 下一个
|
|
|
+ </van-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -99,6 +117,7 @@ export default {
|
|
|
return {
|
|
|
tab: 0,
|
|
|
info: {},
|
|
|
+ info2: {},
|
|
|
persons: [],
|
|
|
isAdmin: false,
|
|
|
scores: [],
|
|
|
@@ -121,6 +140,9 @@ export default {
|
|
|
.join(" ")
|
|
|
: "暂无";
|
|
|
},
|
|
|
+ programmeId() {
|
|
|
+ return this.$route.query.id;
|
|
|
+ },
|
|
|
url() {
|
|
|
return (
|
|
|
"http://wljtest.izouma.com/home?performanceId=" +
|
|
|
@@ -147,12 +169,43 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.getInfo();
|
|
|
+ this.getInfo(this.programmeId);
|
|
|
+ if (window.localStorage.getItem("loginPhoneToken")) {
|
|
|
+ this.$store.dispatch("getUserInfo");
|
|
|
+ this.isAdmin = true;
|
|
|
+ } else {
|
|
|
+ this.isAdmin = false;
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
- getInfo() {
|
|
|
- this.$http.post("/programme/getDTO/" + this.$route.query.id).then(res => {
|
|
|
+ next() {
|
|
|
+ console.log(111);
|
|
|
+ // this.nowActive = this.nowActive + 1;
|
|
|
+ // this.persons = [];
|
|
|
+ // this.scores = [];
|
|
|
+ // this.score = "";
|
|
|
+ // this.myScore = null;
|
|
|
+ // this.isScore = false;
|
|
|
+ this.getInfo(1340, true);
|
|
|
+ },
|
|
|
+ pre() {
|
|
|
+ this.nowActive = this.nowActive - 1;
|
|
|
+ this.persons = [];
|
|
|
+ this.scores = [];
|
|
|
+ this.score = "";
|
|
|
+ this.myScore = null;
|
|
|
+ this.isScore = false;
|
|
|
+ this.getInfo(
|
|
|
+ this.relatedList[this.nowActive % this.relatedList.length].id,
|
|
|
+ true
|
|
|
+ );
|
|
|
+ },
|
|
|
+ getInfo(programmeId) {
|
|
|
+ this.$http.post("/programme/getDTO/" + programmeId).then(res => {
|
|
|
this.info = res;
|
|
|
+ this.info2 = {
|
|
|
+ src: this.info.video
|
|
|
+ };
|
|
|
this.score = "";
|
|
|
this.message = "";
|
|
|
});
|
|
|
@@ -178,6 +231,7 @@ export default {
|
|
|
remark: this.message
|
|
|
})
|
|
|
.then(res => {
|
|
|
+ console.log(res);
|
|
|
this.$toast.success("评分成功");
|
|
|
this.getInfo();
|
|
|
})
|