邓洁:删除首页及地图上方搜索框

This commit is contained in:
邓洁
2023-11-12 00:33:37 +08:00
parent 79655e3474
commit 55b0af8713
3 changed files with 28 additions and 27 deletions

View File

@@ -1,13 +1,10 @@
<template>
<view class="home-base-bg">
<InputAndSwiper></InputAndSwiper>
<InputAndSwiper type='0'></InputAndSwiper>
<view class="home-content">
<view class="service">
<u-image src="/static/statistics/sy_icon_lxkf.png" width="108rpx" height="108rpx"/>
</view>
<HomeNavCard></HomeNavCard>
<HomeNoticeBar :text="notice"/>
<Statistics :data="statisticsNum"/>
<HomeNoticeBar :text="notice" />
<Statistics :data="statisticsNum" />
<view class="show-and-search">
<view class="show-tab list-tab" :class="{ 'tab-activate': chooseIndex === 0 }" @click="this.chooseIndex=0">
<text>店铺列表</text>
@@ -16,7 +13,8 @@
<text>找店列表</text>
</view>
</view>
<SearchShopList v-if="chooseIndex"/><ShowShopList v-else/>
<SearchShopList v-if="chooseIndex" />
<ShowShopList v-else />
</view>
<TabBar :current-page="0"></TabBar>
</view>
@@ -55,17 +53,14 @@
.home-base-bg {
background-color: $uni-bg-color-grey;
width: 100%;
.home-content {
margin: 0 10px;
.service {
position: fixed;
right: 17rpx;
top: 1109rpx;
z-index: 1;
}
}
.show-and-search{
.show-and-search {
display: flex;
.list-tab {
z-index: 2;
width: 259rpx;
@@ -80,12 +75,14 @@
align-items: center;
justify-content: center;
}
.search-tab {
z-index: 1;
transform: translateX(-61rpx);
}
.tab-activate {
background: linear-gradient(#E86262,#CC3333);
background: linear-gradient(#E86262, #CC3333);
z-index: 3;
}
}

View File

@@ -1,19 +1,19 @@
<template>
<view>
<view class="search-box">
<!-- <view class="search-box">
<view class="search-box-input">
<u-input placeholder="热门店铺" placeholder-style="color: #888888" prefixIcon="search"
prefixIconStyle="font-size: 24px;color: #888888;" border="true">
</u-input>
</view>
</view>
</view> -->
<view class="content">
<map id="map" @markertap="markerClick" :markers="marker" :show-location="true" :latitude="lat"
:longitude="lng"></map>
<map id="map" @markertap="markerClick" :markers="marker" :show-location="true" :latitude="lat" :longitude="lng"
:show-scale="true"></map>
</view>
<view class="down-shop">
<!-- <view class="down-shop">
<ShowShopListItem :shopInfo="shopList" :is-adshow="true" :show-style="0"></ShowShopListItem>
</view>
</view> -->
</view>
</template>