From 1629d48c881f9fd138e6902f9c0185afa8f7ea4d Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期一, 14 七月 2025 09:01:20 +0800
Subject: [PATCH] 新增活动视频富文本
---
pages/tabbar/index/home.vue | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/pages/tabbar/index/home.vue b/pages/tabbar/index/home.vue
index b353bdd..d9d53cd 100644
--- a/pages/tabbar/index/home.vue
+++ b/pages/tabbar/index/home.vue
@@ -120,13 +120,15 @@
<!-- 瑙嗛淇℃伅灞� -->
<view class="video-info" :style="{bottom: marginBottom + 20 + 'px'}">
- <view>
- <text class="video-author" @click="jumpToSearch">@{{item.authorName}}</text>
+ <view style="width: 100%; position: relative;">
+ <text class="video-author">@{{item.authorName}}</text>
+ <text class="iconfont" @click="jumpToSearch" style="position: absolute;right: 45px;"></text>
</view>
<view style="width: 100%;word-wrap: break-word;white-space: normal;overflow-wrap: break-word;">
<text class="video-title">{{item.title}}</text>
<text class="video-tag" v-for="(tag, index) in item.tagList" :key="tag.id">#{{tag.tagName}}</text>
</view>
+
</view>
<!-- 鍙充晶浜掑姩鎸夐挳 -->
@@ -365,6 +367,9 @@
// } else {
// this.loadVideos();
// }
+ if (this.videoList.length < 1) {
+ this.loadVideos();
+ }
// 濡傛灉瑙嗛鎸変笅鏆傚仠鍚庡垏鎹㈤〉闈㈠啀鍥炲埌椤甸潰鏃讹紝鍙畻鏆傚仠鏃堕棿锛堝洜涓烘殏鍋滄椂闂村拰绂诲紑椤甸潰鏃堕棿鏄噸澶嶇殑锛屽彧绠椾竴涓級
if(this.startHidenTime !== 0 && this.currentVideoIsPlaying) {
const duration = Date.now() - this.startHidenTime
@@ -1116,7 +1121,7 @@
}
.video-info {
- width: 70%;
+ width: 100%;
position: absolute;
bottom: 20px;
left: 20px;
--
Gitblit v1.8.0