From 9c1cabe8c776aa237279c8d00ec3d0dae6fbc0f8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Wed, 24 Sep 2025 16:04:42 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=90=9C=E7=B4=A2=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/js/common/common.js | 4 ++--
pages/plugins/video/components/search.vue | 1 +
pages/plugins/video/detail/detail.vue | 15 ++++++++++++---
pages/plugins/video/index/index.vue | 11 ++++++++++-
pages/plugins/video/search/search-record.vue | 11 ++++++++++-
pages/plugins/video/search/search.vue | 11 ++++++++++-
6 files changed, 45 insertions(+), 8 deletions(-)
diff --git a/common/js/common/common.js b/common/js/common/common.js
index a3c6e982..9692e6b6 100644
--- a/common/js/common/common.js
+++ b/common/js/common/common.js
@@ -1013,8 +1013,8 @@ export const time_stamp = (time, date_style = 'horizontal', date_type) => {
export const video_get_top_left_padding = () => {
var pages = getCurrentPages();
if (pages.length > 1) {
- return 'padding-left: 30rpx;box-sizing: border-box;';
+ return 'padding-left: 16rpx;box-sizing: border-box;padding-right: 50rpx;';
} else {
- return 'padding-left: 140rpx;box-sizing: border-box;';
+ return 'padding-left: 100rpx;box-sizing: border-box;padding-right: 50rpx;';
}
}
\ No newline at end of file
diff --git a/pages/plugins/video/components/search.vue b/pages/plugins/video/components/search.vue
index 07f8304d..3b509afd 100644
--- a/pages/plugins/video/components/search.vue
+++ b/pages/plugins/video/components/search.vue
@@ -79,6 +79,7 @@ export default {
height: 100%;
padding: 16rpx 0;
box-sizing: border-box;
+ background: transparent;
}
.search-line {
width: 2rpx;
diff --git a/pages/plugins/video/detail/detail.vue b/pages/plugins/video/detail/detail.vue
index 7e8e3aea..ba292c09 100644
--- a/pages/plugins/video/detail/detail.vue
+++ b/pages/plugins/video/detail/detail.vue
@@ -10,11 +10,11 @@
-
+
-
+
@@ -135,7 +135,7 @@
// 状态栏高度
var bar_height = parseInt(app.globalData.get_system_info('statusBarHeight', 0));
// #ifdef MP-TOUTIAO || H5
- bar_height = 7;
+ bar_height = 0;
// #endif
export default {
components: {
@@ -147,7 +147,16 @@
},
data() {
return {
+ // 5,7,0 是误差,, 10 是下边距,66是高度,bar_height是不同小程序下的导航栏距离顶部的高度
+ // #ifdef MP
+ top_content_style: 'padding-top:' + (bar_height + 5) + 'px;padding-bottom:10px;',
+ // #endif
+ // #ifdef H5 || MP-TOUTIAO
+ top_content_style: 'padding-top:' + (bar_height + 7) + 'px;padding-bottom:10px;',
+ // #endif
+ // #ifdef APP
top_content_style: 'padding-top:' + bar_height + 'px;padding-bottom:10px;',
+ // #endif
videoData: videoList,
display_video_list: [],
current_index: 0,
diff --git a/pages/plugins/video/index/index.vue b/pages/plugins/video/index/index.vue
index e04bf761..c74c1043 100644
--- a/pages/plugins/video/index/index.vue
+++ b/pages/plugins/video/index/index.vue
@@ -56,7 +56,7 @@ const app = getApp();
// 状态栏高度
var bar_height = parseInt(app.globalData.get_system_info('statusBarHeight', 0));
// #ifdef MP-TOUTIAO || H5
-bar_height = 7;
+bar_height = 0;
// #endif
export default {
components: {
@@ -65,7 +65,16 @@ export default {
},
data() {
return {
+ // 5,7,0 是误差,, 10 是下边距,66是高度,bar_height是不同小程序下的导航栏距离顶部的高度
+ // #ifdef MP
+ top_content_style: 'padding-top:' + (bar_height + 5) + 'px;padding-bottom:10px;',
+ // #endif
+ // #ifdef H5 || MP-TOUTIAO
+ top_content_style: 'padding-top:' + (bar_height + 7) + 'px;padding-bottom:10px;',
+ // #endif
+ // #ifdef APP
top_content_style: 'padding-top:' + bar_height + 'px;padding-bottom:10px;',
+ // #endif
search_query: '',
tabs: ['推荐', 'DIV装修', '商城管理', '多商户', '多门店', '客服','多门店', '客服'],
currentTab: 0,
diff --git a/pages/plugins/video/search/search-record.vue b/pages/plugins/video/search/search-record.vue
index 46bfe8e1..2e99d96c 100644
--- a/pages/plugins/video/search/search-record.vue
+++ b/pages/plugins/video/search/search-record.vue
@@ -64,7 +64,7 @@ var system = app.globalData.get_system_info(null, null, true);
// 状态栏高度
var bar_height = parseInt(app.globalData.get_system_info('statusBarHeight', 0));
// #ifdef MP-TOUTIAO || H5
-bar_height = 7;
+bar_height = 0;
// #endif
export default {
components: {
@@ -73,7 +73,16 @@ export default {
},
data() {
return {
+ // 5,7,0 是误差,, 10 是下边距,66是高度,bar_height是不同小程序下的导航栏距离顶部的高度
+ // #ifdef MP
+ top_content_style: 'padding-top:' + (bar_height + 5) + 'px;padding-bottom:10px;',
+ // #endif
+ // #ifdef H5 || MP-TOUTIAO
+ top_content_style: 'padding-top:' + (bar_height + 7) + 'px;padding-bottom:10px;',
+ // #endif
+ // #ifdef APP
top_content_style: 'padding-top:' + bar_height + 'px;padding-bottom:10px;',
+ // #endif
search_query: '',
search_history: [
{ text: '软件升级规则' },
diff --git a/pages/plugins/video/search/search.vue b/pages/plugins/video/search/search.vue
index 637f0728..cf6e9222 100644
--- a/pages/plugins/video/search/search.vue
+++ b/pages/plugins/video/search/search.vue
@@ -84,7 +84,7 @@ const app = getApp();
// 状态栏高度
var bar_height = parseInt(app.globalData.get_system_info('statusBarHeight', 0));
// #ifdef MP-TOUTIAO || H5
-bar_height = 7;
+bar_height = 0;
// #endif
export default {
components: {
@@ -95,7 +95,16 @@ export default {
},
data() {
return {
+ // 5,7,0 是误差,, 10 是下边距,66是高度,bar_height是不同小程序下的导航栏距离顶部的高度
+ // #ifdef MP
+ top_content_style: 'padding-top:' + (bar_height + 5) + 'px;padding-bottom:10px;',
+ // #endif
+ // #ifdef H5 || MP-TOUTIAO
+ top_content_style: 'padding-top:' + (bar_height + 7) + 'px;padding-bottom:10px;',
+ // #endif
+ // #ifdef APP
top_content_style: 'padding-top:' + bar_height + 'px;padding-bottom:10px;',
+ // #endif
search_query: '',
tabs: ['推荐', 'DIV装修', '商城管理', '多商户', '多门店', '客服','多门店', '客服'],
currentTab: 0,