修改搜索显示问题
parent
c1fcbfe068
commit
9c1cabe8c7
|
|
@ -1013,8 +1013,8 @@ export const time_stamp = (time, date_style = 'horizontal', date_type) => {
|
||||||
export const video_get_top_left_padding = () => {
|
export const video_get_top_left_padding = () => {
|
||||||
var pages = getCurrentPages();
|
var pages = getCurrentPages();
|
||||||
if (pages.length > 1) {
|
if (pages.length > 1) {
|
||||||
return 'padding-left: 30rpx;box-sizing: border-box;';
|
return 'padding-left: 16rpx;box-sizing: border-box;padding-right: 50rpx;';
|
||||||
} else {
|
} else {
|
||||||
return 'padding-left: 140rpx;box-sizing: border-box;';
|
return 'padding-left: 100rpx;box-sizing: border-box;padding-right: 50rpx;';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -79,6 +79,7 @@ export default {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 16rpx 0;
|
padding: 16rpx 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
background: transparent;
|
||||||
}
|
}
|
||||||
.search-line {
|
.search-line {
|
||||||
width: 2rpx;
|
width: 2rpx;
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,11 @@
|
||||||
</view>
|
</view>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
<view class="wh-auto ht-auto" :style="header_padding_left">
|
<view class="wh-auto ht-auto" :style="header_padding_left">
|
||||||
<search-component :propIsDisabled="true" @disabled_search="handle_search" />
|
<search-component :propIsDisabled="true" @disabledSearch="handle_search" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<swiper class="swiper-container" :key="'top-or-buttom-' + swiper_key" :style="swiperStyle" :vertical="true" :circular="close_circular ? false : true" :current="current_index" easing-function="easeInOutCubic" @change="handle_swiper_change">
|
<swiper class="swiper-container" :key="'top-or-buttom-' + swiper_key" :style="swiperStyle" :vertical="true" :circular="close_circular ? false : true" :skip-hidden-item-layout="true" :current="current_index" easing-function="linear" @change="handle_swiper_change">
|
||||||
<swiper-item v-for="(video_item, index) in display_video_list" :key="video_item.id">
|
<swiper-item v-for="(video_item, index) in display_video_list" :key="video_item.id">
|
||||||
<view class="video-container pr" @tap.stop="toggle_play_pause">
|
<view class="video-container pr" @tap.stop="toggle_play_pause">
|
||||||
<view class="video-bg" :style="!isEmpty(video_item.poster_url) ? 'background-image: url(' + video_item.poster_url + ')' : ''"></view>
|
<view class="video-bg" :style="!isEmpty(video_item.poster_url) ? 'background-image: url(' + video_item.poster_url + ')' : ''"></view>
|
||||||
|
|
@ -135,7 +135,7 @@
|
||||||
// 状态栏高度
|
// 状态栏高度
|
||||||
var bar_height = parseInt(app.globalData.get_system_info('statusBarHeight', 0));
|
var bar_height = parseInt(app.globalData.get_system_info('statusBarHeight', 0));
|
||||||
// #ifdef MP-TOUTIAO || H5
|
// #ifdef MP-TOUTIAO || H5
|
||||||
bar_height = 7;
|
bar_height = 0;
|
||||||
// #endif
|
// #endif
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -147,7 +147,16 @@
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
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;',
|
top_content_style: 'padding-top:' + bar_height + 'px;padding-bottom:10px;',
|
||||||
|
// #endif
|
||||||
videoData: videoList,
|
videoData: videoList,
|
||||||
display_video_list: [],
|
display_video_list: [],
|
||||||
current_index: 0,
|
current_index: 0,
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ const app = getApp();
|
||||||
// 状态栏高度
|
// 状态栏高度
|
||||||
var bar_height = parseInt(app.globalData.get_system_info('statusBarHeight', 0));
|
var bar_height = parseInt(app.globalData.get_system_info('statusBarHeight', 0));
|
||||||
// #ifdef MP-TOUTIAO || H5
|
// #ifdef MP-TOUTIAO || H5
|
||||||
bar_height = 7;
|
bar_height = 0;
|
||||||
// #endif
|
// #endif
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -65,7 +65,16 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
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;',
|
top_content_style: 'padding-top:' + bar_height + 'px;padding-bottom:10px;',
|
||||||
|
// #endif
|
||||||
search_query: '',
|
search_query: '',
|
||||||
tabs: ['推荐', 'DIV装修', '商城管理', '多商户', '多门店', '客服','多门店', '客服'],
|
tabs: ['推荐', 'DIV装修', '商城管理', '多商户', '多门店', '客服','多门店', '客服'],
|
||||||
currentTab: 0,
|
currentTab: 0,
|
||||||
|
|
|
||||||
|
|
@ -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));
|
var bar_height = parseInt(app.globalData.get_system_info('statusBarHeight', 0));
|
||||||
// #ifdef MP-TOUTIAO || H5
|
// #ifdef MP-TOUTIAO || H5
|
||||||
bar_height = 7;
|
bar_height = 0;
|
||||||
// #endif
|
// #endif
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -73,7 +73,16 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
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;',
|
top_content_style: 'padding-top:' + bar_height + 'px;padding-bottom:10px;',
|
||||||
|
// #endif
|
||||||
search_query: '',
|
search_query: '',
|
||||||
search_history: [
|
search_history: [
|
||||||
{ text: '软件升级规则' },
|
{ text: '软件升级规则' },
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ const app = getApp();
|
||||||
// 状态栏高度
|
// 状态栏高度
|
||||||
var bar_height = parseInt(app.globalData.get_system_info('statusBarHeight', 0));
|
var bar_height = parseInt(app.globalData.get_system_info('statusBarHeight', 0));
|
||||||
// #ifdef MP-TOUTIAO || H5
|
// #ifdef MP-TOUTIAO || H5
|
||||||
bar_height = 7;
|
bar_height = 0;
|
||||||
// #endif
|
// #endif
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -95,7 +95,16 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
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;',
|
top_content_style: 'padding-top:' + bar_height + 'px;padding-bottom:10px;',
|
||||||
|
// #endif
|
||||||
search_query: '',
|
search_query: '',
|
||||||
tabs: ['推荐', 'DIV装修', '商城管理', '多商户', '多门店', '客服','多门店', '客服'],
|
tabs: ['推荐', 'DIV装修', '商城管理', '多商户', '多门店', '客服','多门店', '客服'],
|
||||||
currentTab: 0,
|
currentTab: 0,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue