From 0270abc763a1a2ca1162f2fd49b1734d6c5652b2 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期三, 15 十月 2025 00:42:24 +0800
Subject: [PATCH] 首页视频优化
---
pages/health/healthVideo.vue | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/pages/health/healthVideo.vue b/pages/health/healthVideo.vue
index 610d5c8..4b17775 100644
--- a/pages/health/healthVideo.vue
+++ b/pages/health/healthVideo.vue
@@ -337,6 +337,7 @@
},
loading: false, // 鏄惁姝e湪鍔犺浇
videoQuery: {
+ source:'system',
pageNumber: 1,
pageSize: 10,
videoFrom: 'recommend'
@@ -384,10 +385,13 @@
// 瑙f瀽URL涓殑鏌ヨ鍙傛暟
const params = this.parseUrlParams(decodedUrl);
const shareType = params.shareType;
- const videoId = params.videoId;
+ const videoId = params.videoId;
+ const source = params.source
+
queryParam.videoId = videoId
queryParam.shareType = shareType
- console.log('瑙f瀽鍙傛暟:', { shareType, videoId });
+ queryParam.source = source
+ console.log('瑙f瀽鍙傛暟:', { shareType, videoId,source });
}
const token = storage.getAccessToken();
if (! token) {
@@ -781,7 +785,10 @@
this.loading = true;
if(param){
+ console.log("浜岀淮鐮佹壂鐮佹暟鎹墽琛屽湪姝ゅ1")
+ console.log(this.videoQuery)
getHealthRecommendVideos(this.videoQuery).then(res => {
+ console.log(res)
// 鏂板涓�涓瓧娈电敤浜庡惊鐜椂鐨刱ey
const data = res.data.data.map(item => {
return {
@@ -808,7 +815,10 @@
})
}else{
+ console.log("浜岀淮鐮佹壂鐮佹暟鎹墽琛屽湪姝ゅ2")
+ console.log(this.videoQuery)
getHealthRecommendVideos(this.videoQuery).then(res => {
+ console.log(res)
// 鏂板涓�涓瓧娈电敤浜庡惊鐜椂鐨刱ey
const data = res.data.data.map(item => {
return {
--
Gitblit v1.8.0