diff --git a/src/api/map.js b/src/api/map.js index 48d852f..8aa8e87 100644 --- a/src/api/map.js +++ b/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" + }) } \ No newline at end of file diff --git a/src/api/video.js b/src/api/video.js index e0487f1..5ef86ca 100644 --- a/src/api/video.js +++ b/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({ diff --git a/src/components/Header.vue b/src/components/Header.vue index 20fd268..181e0e7 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -143,7 +143,7 @@ 学习班 直播 城市课堂 - 资源导航 + @@ -271,9 +271,9 @@ 城市课堂 - + diff --git a/src/router.js b/src/router.js index 8c9a41d..f1ebc1f 100644 --- a/src/router.js +++ b/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, }, diff --git a/src/views/cityclass.vue b/src/views/cityclass.vue index 97b1a05..fa5ff27 100644 --- a/src/views/cityclass.vue +++ b/src/views/cityclass.vue @@ -3,14 +3,22 @@

帆软城市课堂

-
{{statistics.city}} 所城市
-
{{statistics.class}} 场城市课堂
-
{{statistics.student}}名学员
+
+ {{ statistics.city }} 所城市 +
+
+ {{ statistics.class }} 场城市课堂 +
+
+ {{ statistics.student }}名学员 +
    -
  • {{item.date}}
  • +
  • + {{ item.date }} +
@@ -18,22 +26,20 @@
-

城市课堂{{tabLists[currentIndex].date}}活动

+

城市课堂{{ tabLists[currentIndex].date }}活动

-
@@ -42,264 +48,258 @@
- +
- \ No newline at end of file +::v-deep .el-scrollbar__thumb:hover { + background-color: #1b4f8b; +} + diff --git a/src/views/live/live_play.vue b/src/views/live/live_play.vue index f61999d..f026a36 100644 --- a/src/views/live/live_play.vue +++ b/src/views/live/live_play.vue @@ -16,9 +16,10 @@ -
+
- + +
@@ -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, diff --git a/src/views/video/video_course.vue b/src/views/video/video_course.vue index b5b6c15..670d172 100644 --- a/src/views/video/video_course.vue +++ b/src/views/video/video_course.vue @@ -1,15 +1,12 @@