|
@@ -4,7 +4,7 @@
|
|
<div v-for="item in videoList" :key="item.plateId">
|
|
<div v-for="item in videoList" :key="item.plateId">
|
|
<div class="fs16">{{item.plateName}}</div>
|
|
<div class="fs16">{{item.plateName}}</div>
|
|
<div :class="item.displayMode === 1 ? 'jjjc-list' : 'jcjc-list'">
|
|
<div :class="item.displayMode === 1 ? 'jjjc-list' : 'jcjc-list'">
|
|
- <video v-for="ele in item.videoCourseList" :id="'el-video-' + ele.id" :key="ele.id" class="w165h148" preload="auto" :poster="'http://110.53.221.195:8210/document/newFile/download/0/e858720c23ke455aa60e?fileKey=' + ele.coverImageKey" :src="'http://110.53.221.195:8210/document/newFile/download/0/e858720c23ke455aa60e?fileKey=' + ele.videoKey" @click="play(item, ele)" />
|
|
|
|
|
|
+ <video v-for="ele in item.videoCourseList" :id="'el-video-' + ele.id" :key="ele.id" class="w165h148" preload="auto" :poster="videoURL(ele.coverImageKey)" :src="videoURL(ele.videoKey)" @click="play(item, ele)" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="return out"><div class="in"><img src="~/assets/image/activity/invite-user/guide/left.png" /></div></div>
|
|
<div class="return out"><div class="in"><img src="~/assets/image/activity/invite-user/guide/left.png" /></div></div>
|
|
@@ -12,6 +12,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import { fileKeyToUrl } from '@/plugins/file-center.js';
|
|
export default {
|
|
export default {
|
|
name: 'Guide',
|
|
name: 'Guide',
|
|
auth: false,
|
|
auth: false,
|
|
@@ -25,13 +26,20 @@ export default {
|
|
fetch() {
|
|
fetch() {
|
|
this.token = this.$route.query.token;
|
|
this.token = this.$route.query.token;
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ videoURL() {
|
|
|
|
+ return (key) => {
|
|
|
|
+ return fileKeyToUrl + key
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
created() {
|
|
created() {
|
|
this.getActiveInfo()
|
|
this.getActiveInfo()
|
|
this.getAdInfoByAdPlace()
|
|
this.getAdInfoByAdPlace()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
async getActiveInfo() {
|
|
async getActiveInfo() {
|
|
- const res = await this.$axios.$get('http://192.168.31.198:8112/videoCourse/client/list');
|
|
|
|
|
|
+ const res = await this.$axios.$get('/videoCourse/client/list');
|
|
this.videoList = res.data;
|
|
this.videoList = res.data;
|
|
},
|
|
},
|
|
async getAdInfoByAdPlace() {
|
|
async getAdInfoByAdPlace() {
|