From f0bab19bd54335a38860f49946d5465e637abb4f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Thu, 12 Mar 2026 17:13:46 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9nvue=E4=B8=BAcss=E7=BB=93?=
=?UTF-8?q?=E6=9E=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/bottom-line/bottom-line.vue | 2 +
components/no-data/no-data.vue | 5 +
components/user-base/user-base.vue | 7 +
.../plugins/video/components/comment-info.vue | 10 +-
pages/plugins/video/components/loading.vue | 4 +-
pages/plugins/video/detail/detail-nvue.css | 11 +-
pages/plugins/video/detail/detail.nvue | 175 ++++++------------
7 files changed, 81 insertions(+), 133 deletions(-)
diff --git a/components/bottom-line/bottom-line.vue b/components/bottom-line/bottom-line.vue
index a32a647f..ea82b7bb 100644
--- a/components/bottom-line/bottom-line.vue
+++ b/components/bottom-line/bottom-line.vue
@@ -42,9 +42,11 @@
padding: 40rpx;
overflow: hidden;
}
+ /* #ifndef APP-NVUE */
.data-bottom-line .bottom-exclude {
padding-bottom: env(safe-area-inset-bottom);
}
+ /* #endif */
.data-bottom-line .line-item {
width: 33.3%;
}
diff --git a/components/no-data/no-data.vue b/components/no-data/no-data.vue
index 372bf3da..2c80edd0 100644
--- a/components/no-data/no-data.vue
+++ b/components/no-data/no-data.vue
@@ -296,7 +296,12 @@
position: absolute;
width: 140rpx;
height: 140rpx;
+ /* #ifndef APP-NVUE */
left: calc(50% - 70rpx);
+ /* #endif */
+ /* #ifdef APP-NVUE */
+ left: 0;
+ /* #endif */
top: 0;
border-radius: 50%;
overflow: hidden;
diff --git a/components/user-base/user-base.vue b/components/user-base/user-base.vue
index f7ec36f3..898e3b34 100644
--- a/components/user-base/user-base.vue
+++ b/components/user-base/user-base.vue
@@ -448,10 +448,12 @@
line-height: 70rpx;
margin-bottom: 0;
}
+ /* #ifndef APP-NVUE */
.user-base-popup .user-nickname-container,
.user-base-popup .user-mobile-container {
width: calc(100% - 120rpx);
}
+ /* #endif */
.form-container .form-gorup {
padding: 24rpx 0;
border-radius: 0;
@@ -464,7 +466,12 @@
height: 84rpx;
line-height: 84rpx;
padding: 0;
+ /* #ifndef APP-NVUE */
display: inline-flex;
+ /* #endif */
+ /* #ifdef APP-NVUE */
+ display: flex;
+ /* #endif */
align-items: center;
justify-content: center;
border-radius: 12rpx;
diff --git a/pages/plugins/video/components/comment-info.vue b/pages/plugins/video/components/comment-info.vue
index ef782876..508faa24 100644
--- a/pages/plugins/video/components/comment-info.vue
+++ b/pages/plugins/video/components/comment-info.vue
@@ -127,10 +127,13 @@
if (!app.globalData.is_single_page_check()) {
return false;
}
- var user= app.globalData.get_user_info(this, 'comment_like', e);
+ var user= app.globalData.get_user_info(this, 'comment_like', e);
if (user != false) {
this.$emit('comment_like', this.propId, e);
}
+ //#ifdef APP-NVUE
+ e.stopPropagation();
+ //#endif
},
// 上传图片预览
upload_show_event(e) {
@@ -217,7 +220,7 @@
line-height: 34rpx;
}
.comment-reply {
- font-weight: blod;
+ font-weight: 700;
font-size: 24rpx;
color: #666666;
line-height: 34rpx;
@@ -258,7 +261,7 @@
cursor: pointer;
transition: all 0.2s ease;
position: relative;
-
+ /* #ifndef APP-NVUE */
&:not(.dropdown-item-divided):active {
background-color: #f5f5f5;
}
@@ -272,6 +275,7 @@
height: 1rpx;
background-color: #f0f0f0;
}
+ /* #endif */
&:first-child {
border-radius: 8rpx 8rpx 0 0;
diff --git a/pages/plugins/video/components/loading.vue b/pages/plugins/video/components/loading.vue
index 75d4853d..9858ea68 100644
--- a/pages/plugins/video/components/loading.vue
+++ b/pages/plugins/video/components/loading.vue
@@ -4,7 +4,7 @@
- {{ propContent || $t('common.loading_in_text') }}
+ {{ propContent || $t('common.loading_in_text') }}
@@ -34,6 +34,7 @@
line-height: 40rpx;
margin-top: 20rpx;
}
+/* #ifndef APP-NVUE */
.more-history-btn-icon {
animation: rotate 1s linear infinite;
}
@@ -45,4 +46,5 @@
transform: rotate(360deg);
}
}
+/* #endif */
\ No newline at end of file
diff --git a/pages/plugins/video/detail/detail-nvue.css b/pages/plugins/video/detail/detail-nvue.css
index b25ead5f..718b23c3 100644
--- a/pages/plugins/video/detail/detail-nvue.css
+++ b/pages/plugins/video/detail/detail-nvue.css
@@ -9,7 +9,6 @@
position: absolute;
top: 0;
left: 0;
- pointer-events: none;
}
.play-icon-bg {
@@ -99,9 +98,7 @@
font-size: 36rpx;
font-weight: bold;
}
-::v-deep .uni-video-container {
- background: transparent;
-}
+
.video-bg {
position: absolute;
top: 0;
@@ -128,7 +125,6 @@
}
.video-content {
- display: block;
font-size: 30rpx;
margin-top: 16rpx;
max-width: 70%;
@@ -315,11 +311,6 @@
left: 0;
z-index: 9;
}
-.header-top ::v-deep .search-bar {
- background:#D8D8D8;
- opacity: 0.27;
- border-color: transparent;
-}
.keyboard-input {
position: fixed;
diff --git a/pages/plugins/video/detail/detail.nvue b/pages/plugins/video/detail/detail.nvue
index 022e2c07..252c7e40 100644
--- a/pages/plugins/video/detail/detail.nvue
+++ b/pages/plugins/video/detail/detail.nvue
@@ -1,10 +1,10 @@
-
+
-
-
-
+
+
+
@@ -64,8 +64,8 @@
-
-
+
+