Browse Source

update:DP-872

feat:DP-367
pull/2/head
Wangwei 2 years ago
parent
commit
6fd2c961cc
  1. 4
      src/components/Footer.vue
  2. 1115
      src/components/Header.vue
  3. 147
      src/views/live/live_play.vue
  4. 2
      src/views/studypath/fineDataLink.vue
  5. 2
      src/views/studypath/jiandaoyun.vue

4
src/components/Footer.vue

@ -89,7 +89,7 @@
</el-popover> </el-popover>
</div> </div>
<el-dialog title="提交页面反馈" v-model="showFeedback" width="800px"> <el-dialog title="提交页面反馈" v-model="showFeedback" width="800px" custom-class="foot-dialog-feedback">
<div class="flex-1 dia-msg-til"> <div class="flex-1 dia-msg-til">
<span style="color: #FFA940; margin: 3px 6px 0 0;"> <span style="color: #FFA940; margin: 3px 6px 0 0;">
<svg viewBox="64 64 896 896" focusable="false" data-icon="info-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true"> <svg viewBox="64 64 896 896" focusable="false" data-icon="info-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true">
@ -210,7 +210,7 @@ export default {
margin-top: 6px; margin-top: 6px;
color: #333; color: #333;
} }
.el-dialog { .foot-dialog-feedback {
.el-dialog__body { .el-dialog__body {
padding: 0 !important; padding: 0 !important;
} }

1115
src/components/Header.vue

File diff suppressed because it is too large Load Diff

147
src/views/live/live_play.vue

@ -1,5 +1,5 @@
<template> <template>
<div v-wechat-title="'正在直播' +play_title"></div> <div v-wechat-title="play_title + ' - ' + $route.meta.title"></div>
<appHeader /> <appHeader />
<div v-if="!com_user_token"> <div v-if="!com_user_token">
@ -10,97 +10,96 @@
</div> </div>
<div v-else-if="!isAuth"> <div v-else-if="!isAuth">
<el-empty :image-size="200" description=" ">{{msg}}</el-empty> <el-empty :image-size="200" description=" ">{{ msg }}</el-empty>
<div style="text-align: center"> <div style="text-align: center">
<router-link :to="'/live/'+liveid" class="el-btn medium ff18">马上报名</router-link> <router-link :to="'/live/' + liveid" class="el-btn medium ff18">马上报名</router-link>
</div> </div>
</div> </div>
<div class="playbox" v-else> <div class="playbox" v-else>
<iframe scrolling="no" border="0" frameborder='0' allowfullscreen='true' <!-- <iframe scrolling="no" border="0" frameborder="0" allowfullscreen="true" :src="'https://live.vhall.com/webinar/inituser/' + live.webinar_id + '?email=' + live.uid + '@vhall.com&name=' + live.liveUserName + '&k=' + live.livekey" width="100%" height="100%"> </iframe> -->
:src="'https://live.vhall.com/webinar/inituser/'+live.webinar_id+'?email='+live.uid+'@vhall.com&name='+live.liveUserName+'&k='+live.livekey" <iframe id="iframe_live" border="0" frameborder="0" allowfullscreen="true" :src="'https://live.polyv.cn/watch/' + live.webinar_id + '?userid=' + live.uid + '&ts=' + live.ts + '&sign=' + live.sign" width="100%" height="100%"> </iframe>
width="100%" height="100%">
</iframe>
</div> </div>
</template> </template>
<script> <script>
import appHeader from "@/components/Header"; import appHeader from "@/components/Header";
import { useRoute } from 'vue-router' import { useRoute } from "vue-router";
import { livePlay } from "@/api/live"; import { livePlay } from "@/api/live";
import { toRefs, reactive, getCurrentInstance } from 'vue'; import { toRefs, reactive, getCurrentInstance } from "vue";
export default { export default {
name: 'live_play', name: "live_play",
components: { components: {
appHeader, appHeader,
}, },
setup() { setup() {
const { proxy } = getCurrentInstance() const { proxy } = getCurrentInstance();
const route = useRoute() const route = useRoute();
const liveid = route.params.liveid; const liveid = route.params.liveid;
const state = reactive({ const state = reactive({
isAuth: 1, isAuth: 1,
msg: 0, msg: 0,
empty: false, empty: false,
live: {}, live: {},
playcur: 0, playcur: 0,
logid: 0, logid: 0,
videoid: 0, videoid: 0,
play_title: '', play_title: "",
}) });
const reslivePlay = async () => { const reslivePlay = async () => {
const res = await livePlay(liveid); const res = await livePlay(liveid);
if(res.status==-1){ if (res.status == -1) {
state.isAuth=0; state.isAuth = 0;
state.msg=res.message; state.msg = res.message;
}
if (res.code === 200) {
state.live = res.data;
state.play_title = res.data.title;
}
};
if (proxy.$root.com_user_token) {
reslivePlay();
} }
if (res.code === 200) {
state.live = res.data;
return { state.play_title = res.data.title;
...toRefs(state),
liveid,
} }
};
if (proxy.$root.com_user_token) {
reslivePlay();
} }
}
</script>
<style lang="scss" scoped> // setTimeout(function() {
.playbox { // let iframeDocument = document.getElementById("iframe_live").contentWindow;
position: absolute; // console.log("iframeDocument=====", iframeDocument);
top: 118px;
left: 0;
bottom: 0;
right: 0;
background-color: #000;
overflow: hidden;
}
// iframeDocument.body.style.backgroundColor = "blue";
// }, 500);
return {
...toRefs(state),
liveid,
};
},
};
</script>
<style lang="scss" scoped>
.playbox {
position: absolute;
top: 118px;
left: 0;
bottom: 0;
right: 0;
background-color: #000;
overflow: hidden;
}
</style> </style>
<style lang="scss"> <style lang="scss">
/*响应式-移动端*/ /*响应式-移动端*/
@media screen and (max-width: 800px) { @media screen and (max-width: 800px) {
.header,
.header, .edu-nav-box {
.edu-nav-box { display: none;
display: none; }
}
.playbox { .playbox {
top: 0 !important; top: 0 !important;
}
} }
}
</style> </style>

2
src/views/studypath/fineDataLink.vue

@ -66,7 +66,7 @@
<div class="w1200"> <div class="w1200">
<div class="boxtil flex-1"> <div class="boxtil flex-1">
<div class="yinhao"></div> <div class="yinhao"></div>
<div class="txt">FineDatalLink学习路径</div> <div class="txt">FineDataLink学习路径</div>
</div> </div>
<div class="f24 col849 pt10">系统性自学 少走弯路</div> <div class="f24 col849 pt10">系统性自学 少走弯路</div>

2
src/views/studypath/jiandaoyun.vue

@ -116,7 +116,7 @@
</div> </div>
<div class="flex-6" style="margin: 10px 0 8px;"> <div class="flex-6" style="margin: 10px 0 8px;">
<a class="btn-jdy f14 newbtn3" href="/video/387" target="_blank">数据分析</a> <a class="btn-jdy f14 newbtn3" href="/video/442" target="_blank">数据分析</a>
<a class="btn-jdy f14 newbtn3" href="/video/108" target="_blank">智能助手</a> <a class="btn-jdy f14 newbtn3" href="/video/108" target="_blank">智能助手</a>
</div> </div>

Loading…
Cancel
Save