From 33e6a2535324373ee63ec5b3950b328d07762d81 Mon Sep 17 00:00:00 2001 From: peng <peng.com> Date: 星期二, 02 九月 2025 11:53:14 +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