From d0c0bffbc46e173497bfe1be1ea53aaab8374d67 Mon Sep 17 00:00:00 2001 From: lxz Date: Mon, 8 Jan 2024 16:49:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=B6=E6=9E=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api.js | 3 +- pages/Login/login.vue | 1 - pages/index/massif.vue | 73 ++----------------------------- pages/live/live.vue | 75 +++++++++++++++++++++++++------- pages/live/live1.vue | 98 ----------------------------------------- pages/live/live2.vue | 95 ---------------------------------------- pages/live/live3.vue | 99 ------------------------------------------ 7 files changed, 65 insertions(+), 379 deletions(-) delete mode 100644 pages/live/live1.vue delete mode 100644 pages/live/live2.vue delete mode 100644 pages/live/live3.vue 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