diff --git a/api/api.js b/api/api.js index 4034d32..5fce3df 100644 --- a/api/api.js +++ b/api/api.js @@ -68,7 +68,8 @@ export const villages = (data) => http.get('/common/geo/villages', data) export const groups = (data) => http.get('/common/geo/groups', data) //视频推流 export const videoPush = (data) => http.get('/video', data) - +//上传视频封面 +export const videoCover = (data) => http.post('api/upload/uploadVideoCover', data) // http: //127.0.0.1:8001/video/17378971117/lihai_lot_walnutpi_dev_1 \ No newline at end of file diff --git a/pages/Login/login.vue b/pages/Login/login.vue index 9f319c2..8e8a5b5 100644 --- a/pages/Login/login.vue +++ b/pages/Login/login.vue @@ -11,7 +11,6 @@ - 您好! diff --git a/pages/index/massif.vue b/pages/index/massif.vue index 123bd69..12cdf5f 100644 --- a/pages/index/massif.vue +++ b/pages/index/massif.vue @@ -171,65 +171,8 @@ - - - - - - - - - @@ -238,18 +181,7 @@ @close="show = false" @select="confirm"> - - @@ -396,7 +328,7 @@ }) - const videoCover = uni.getStorageSync('SY_VIDEO_POSTS') || "/static/main/index/videoCover.png" + const videoCover = ref('') const dataobj = reactive({}) const tdId = ref('') @@ -528,6 +460,8 @@ userInfo.value = res.data video_url.value = res.data.video_url testUser() + videoCover.value = userInfo.value.videoCover || "/static/main/index/videoCover.png" + uni.getStorageSync('SY_VIDEO_POSTS') || "/static/main/index/videoCover.png" threshold = res.data?.monitor?.threshold || "" if (Object.keys(res.data).length > 0) { getlist3(res.data.id) @@ -569,7 +503,6 @@ // thresholdFn(environmentList[6], threshold.ambient_air_pressure_min, threshold.ambient_air_pressure_max) } } - } }) diff --git a/pages/live/live.vue b/pages/live/live.vue index 17730c9..4342d9b 100644 --- a/pages/live/live.vue +++ b/pages/live/live.vue @@ -1,8 +1,8 @@ - - - - \ No newline at end of file diff --git a/pages/live/live2.vue b/pages/live/live2.vue deleted file mode 100644 index 890fa6a..0000000 --- a/pages/live/live2.vue +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/pages/live/live3.vue b/pages/live/live3.vue deleted file mode 100644 index 8c25789..0000000 --- a/pages/live/live3.vue +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - \ No newline at end of file