Browse Source

update:video

pull/2/head
Wangwei 2 years ago
parent
commit
80d5ccbfec
  1. 10
      src/api/map.js
  2. 8
      src/api/video.js
  3. 6
      src/components/Header.vue
  4. 2
      src/router.js
  5. 885
      src/views/cityclass.vue
  6. 12
      src/views/live/live_play.vue
  7. 2884
      src/views/video/video_course.vue

10
src/api/map.js

@ -24,4 +24,14 @@ export function geoCoding(v,city) {
url:`https://bird.ioliu.cn/${v}?url=https://api.map.baidu.com/geocoding/v3/?address=${city}&output=json&ak=FvIYykqgB0i9dbTXWGf79nlyKT996zmj`,
method: "get"
})
}
/**
* 获取首页统计
*/
export function getCityCount() {
return request({
url:"/v1/edu/cityclass/count/",
method: "get"
})
}

8
src/api/video.js

@ -10,6 +10,14 @@ import request from "@/utils/request";
import {requestGet} from "@/utils/newrequest";
// 视频课附件下载埋点
export function downloadLog(fileId) {
return request({
url: `/v1/edu/video/attachment/download/log/${fileId}`,
method: "get",
})
}
// 埋点每次进入和离开时间
export function updateVideoCountLog(params) {
return request({

6
src/components/Header.vue

@ -143,7 +143,7 @@
<router-link to="/class" :class="$route.meta.active == 'class' ? 'active' : ''">学习班</router-link>
<router-link to="/live" :class="$route.meta.active == 'live' ? 'active' : ''">直播</router-link>
<router-link to="/cityclass" :class="$route.meta.active == 'cityclass' ? 'active' : ''">城市课堂</router-link>
<router-link to="/more" :class="$route.meta.active == 'more' ? 'active' : ''">资源导航</router-link>
<!-- <router-link to="/more" :class="$route.meta.active == 'more' ? 'active' : ''">资源导航</router-link> -->
</div>
</div>
</div>
@ -271,9 +271,9 @@
<el-menu-item>
<router-link to="/cityclass" @click="drawer = false" class="lfnav-item" :class="$route.meta.active == 'cityclass' ? 'active' : ''"> 城市课堂</router-link>
</el-menu-item>
<el-menu-item>
<!-- <el-menu-item>
<router-link to="/more" @click="drawer = false" class="lfnav-item" :class="$route.meta.active == 'more' ? 'active' : ''">资源导航 </router-link>
</el-menu-item>
</el-menu-item> -->
</el-menu-item-group>
</el-submenu>

2
src/router.js

@ -326,7 +326,7 @@ const routes = [
name: 'live_play',
component: () => import('@/views/live/live_play.vue'),
meta: {
title: '进入直播 - 直播',
title: '直播 - 帆软学院',
active: 'live',
isMobile: 1,
},

885
src/views/cityclass.vue

File diff suppressed because it is too large Load Diff

12
src/views/live/live_play.vue

@ -16,9 +16,10 @@
</div>
</div>
<div class="playbox" v-else>
<div style="margin-top: -2.5rem;" class="playbox" v-else>
<!-- <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> -->
<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>
<!-- <iframe 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> -->
<iframe border="0" frameborder="0" allowfullscreen="true" :src="live.directAuthUrl" width="100%" height="100%"> </iframe>
</div>
</template>
@ -64,13 +65,6 @@ export default {
reslivePlay();
}
// setTimeout(function() {
// let iframeDocument = document.getElementById("iframe_live").contentWindow;
// console.log("iframeDocument=====", iframeDocument);
// iframeDocument.body.style.backgroundColor = "blue";
// }, 500);
return {
...toRefs(state),
liveid,

2884
src/views/video/video_course.vue

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save