取消首页搜索
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view style="padding-bottom: 20rpx;">
|
<view style="padding-bottom: 20rpx;">
|
||||||
|
|
||||||
|
<template v-if="showSearch">
|
||||||
<!-- 自定义导航栏(带搜索) -->
|
<!-- 自定义导航栏(带搜索) -->
|
||||||
<!-- #ifdef H5 -->
|
<!-- #ifdef H5 -->
|
||||||
<u-navbar :background="background" height="60" :is-back="false" :title="title" :border-bottom="false">
|
<u-navbar :background="background" height="60" :is-back="false" :title="title" :border-bottom="false">
|
||||||
@@ -16,7 +17,8 @@
|
|||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
<view class="nvavBar-box" :style="{height:barHeight>0?barHeight+'px':'70rpx'}">
|
<view class="nvavBar-box" :style="{height:barHeight>0?barHeight+'px':'70rpx'}">
|
||||||
<!-- #ifdef H5 || APP -->
|
<!-- #ifdef H5 || APP -->
|
||||||
<view @click.stop="goSearch" class="nvavBar-boxs flex align-center" style="width: 100%;">
|
<view @click.stop="goSearch" class="nvavBar-boxs flex align-center"
|
||||||
|
style="width: 100%;">
|
||||||
<u-search placeholder-color="#cccccc" disabled search-icon-color="#ff7581"
|
<u-search placeholder-color="#cccccc" disabled search-icon-color="#ff7581"
|
||||||
:show-action="false" placeholder="今日正在热播" v-model="keyword"></u-search>
|
:show-action="false" placeholder="今日正在热播" v-model="keyword"></u-search>
|
||||||
</view>
|
</view>
|
||||||
@@ -32,7 +34,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</u-navbar>
|
</u-navbar>
|
||||||
<view class="bgColorTop">
|
</template>
|
||||||
|
<view class="bgColorTop " :class="{'top-zhanwei':!showSearch}">
|
||||||
<!-- <view v-if="homeTypeSel != '否'" class="topTabs flex align-center justify-center">
|
<!-- <view v-if="homeTypeSel != '否'" class="topTabs flex align-center justify-center">
|
||||||
<view class="topTabs-box">
|
<view class="topTabs-box">
|
||||||
<scroll-view class="topTabs-box-H" scroll-x="true">
|
<scroll-view class="topTabs-box-H" scroll-x="true">
|
||||||
@@ -46,8 +49,8 @@
|
|||||||
<!-- 轮播图 -->
|
<!-- 轮播图 -->
|
||||||
<view v-if="TabCur == 0" class="swipers flex align-center justify-center">
|
<view v-if="TabCur == 0" class="swipers flex align-center justify-center">
|
||||||
<view class="swipers-box">
|
<view class="swipers-box">
|
||||||
<swiper class="swipers-box" :indicator-dots="false" :autoplay="true" interval="5000"
|
<swiper class="swipers-box" :indicator-dots="false" :autoplay="true" interval="5000" duration="500"
|
||||||
duration="500" :circular="true">
|
:circular="true">
|
||||||
<swiper-item class="swipers-box" v-for="(item,index) in swiperList" :key='index'
|
<swiper-item class="swipers-box" v-for="(item,index) in swiperList" :key='index'
|
||||||
@tap="goPage(item)">
|
@tap="goPage(item)">
|
||||||
<image :src="item.imageUrl" mode="aspectFill" style="width: 100%;height:100%;"></image>
|
<image :src="item.imageUrl" mode="aspectFill" style="width: 100%;height:100%;"></image>
|
||||||
@@ -61,8 +64,8 @@
|
|||||||
<view class="gg flex align-center justify-center" v-if="noticeList.length>0">
|
<view class="gg flex align-center justify-center" v-if="noticeList.length>0">
|
||||||
<view class="gg-box flex align-center justify-between">
|
<view class="gg-box flex align-center justify-between">
|
||||||
<image src="../../static/images/index/ggIcon.png" mode=""></image>
|
<image src="../../static/images/index/ggIcon.png" mode=""></image>
|
||||||
<swiper :autoplay="true" :vertical="true" :interval="4000" :circular="true"
|
<swiper :autoplay="true" :vertical="true" :interval="4000" :circular="true" :indicator-dots="false"
|
||||||
:indicator-dots="false" class="gg-box-swiper">
|
class="gg-box-swiper">
|
||||||
<block v-for="(item, index) in noticeList">
|
<block v-for="(item, index) in noticeList">
|
||||||
<swiper-item @tap='goMsg(item.url)'>
|
<swiper-item @tap='goMsg(item.url)'>
|
||||||
<view class="gg-box-swiper-t">{{item.title}}</view>
|
<view class="gg-box-swiper-t">{{item.title}}</view>
|
||||||
@@ -75,12 +78,12 @@
|
|||||||
<view class="centers">
|
<view class="centers">
|
||||||
<view class="centers-cistrict flex align-center justify-center" v-if="gridList.length > 0">
|
<view class="centers-cistrict flex align-center justify-center" v-if="gridList.length > 0">
|
||||||
<view class="centers-cistrict-box">
|
<view class="centers-cistrict-box">
|
||||||
<swiper :indicator-dots="false" class="centers-cistrict-boxs" :autoplay="false"
|
<swiper :indicator-dots="false" class="centers-cistrict-boxs" :autoplay="false" :interval="3000"
|
||||||
:interval="3000" :duration="300">
|
:duration="300">
|
||||||
<swiper-item v-for="(item,index) in gridList" :key="index">
|
<swiper-item v-for="(item,index) in gridList" :key="index">
|
||||||
<view class="swiper-item flex align-center justify-between">
|
<view class="swiper-item flex align-center justify-between">
|
||||||
<view class="swiper-item-s" @click="goGridList(ite)"
|
<view class="swiper-item-s" @click="goGridList(ite)" v-for="(ite,ind) in item.child"
|
||||||
v-for="(ite,ind) in item.child" :key="ind">
|
:key="ind">
|
||||||
<view class="swiper-item-s-img">
|
<view class="swiper-item-s-img">
|
||||||
<image :src="ite.imageUrl" mode="aspectFill"></image>
|
<image :src="ite.imageUrl" mode="aspectFill"></image>
|
||||||
</view>
|
</view>
|
||||||
@@ -213,6 +216,7 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
showSearch: false,
|
||||||
showzls: true,
|
showzls: true,
|
||||||
shodrags: true,
|
shodrags: true,
|
||||||
shodrag: false, //是否显示拖拽悬浮
|
shodrag: false, //是否显示拖拽悬浮
|
||||||
@@ -335,7 +339,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
let u = navigator?navigator.userAgent:'';
|
let u = navigator ? navigator.userAgent : '';
|
||||||
|
|
||||||
if (u.toLowerCase().indexOf('micromessenger') !== -1) {
|
if (u.toLowerCase().indexOf('micromessenger') !== -1) {
|
||||||
this.isWeixin = true
|
this.isWeixin = true
|
||||||
@@ -1195,6 +1199,14 @@
|
|||||||
text-align: justify;
|
text-align: justify;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
}
|
}
|
||||||
|
.top-zhanwei{
|
||||||
|
/* #ifdef H5 */
|
||||||
|
padding-top: 32rpx;
|
||||||
|
/* #endif */
|
||||||
|
/* #ifndef H5 */
|
||||||
|
padding-top: 44px;
|
||||||
|
/* #endif */
|
||||||
|
}
|
||||||
|
|
||||||
.contentview .des .link {
|
.contentview .des .link {
|
||||||
color: #5074FF;
|
color: #5074FF;
|
||||||
|
|||||||
Reference in New Issue
Block a user