Merge pull request '邓洁:删除首页及地图上方搜索框' (#36) from djj into master
Reviewed-on: http://git.feashow.cn/odjbin/city-store-transfer/pulls/36
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="input-and-swiper-root">
|
<view class="input-and-swiper-root">
|
||||||
<view class="search-box">
|
<view class="search-box" v-if="type!=='0'">
|
||||||
<view class="search-box-input">
|
<view class="search-box-input">
|
||||||
<u-input placeholder="热门搜索" placeholder-style="color: #969696" prefixIcon="search"
|
<u-input placeholder="热门搜索" placeholder-style="color: #969696" prefixIcon="search"
|
||||||
prefixIconStyle="font-size: 24px;color: #909399;" border="true">
|
prefixIconStyle="font-size: 24px;color: #909399;" border="true">
|
||||||
@@ -31,6 +31,10 @@
|
|||||||
"https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg"
|
"https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
type: {
|
||||||
|
type: String,
|
||||||
|
default: '1'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@@ -42,7 +46,6 @@
|
|||||||
styleIsolation: 'shared', // 解除样式隔离
|
styleIsolation: 'shared', // 解除样式隔离
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
console.log('createsd');
|
|
||||||
this.open()
|
this.open()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -63,11 +66,11 @@
|
|||||||
},
|
},
|
||||||
success: (re) => {
|
success: (re) => {
|
||||||
console.log("解析地址成功", re);
|
console.log("解析地址成功", re);
|
||||||
console.log(re.result.ad_info.city,);
|
console.log(re.result.ad_info.city, );
|
||||||
console.log(re.result.ad_info.district, );
|
console.log(re.result.ad_info.district, );
|
||||||
let city=re.result.ad_info.city
|
let city = re.result.ad_info.city
|
||||||
let district=re.result.ad_info.district
|
let district = re.result.ad_info.district
|
||||||
that.position = city.slice(0,2) + district.slice(0,2)
|
that.position = city.slice(0, 2) + district.slice(0, 2)
|
||||||
},
|
},
|
||||||
fail: (re) => {
|
fail: (re) => {
|
||||||
console.log(re, '失败信息');
|
console.log(re, '失败信息');
|
||||||
@@ -137,6 +140,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-box {
|
.search-box {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|||||||
@@ -1,13 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="home-base-bg">
|
<view class="home-base-bg">
|
||||||
<InputAndSwiper></InputAndSwiper>
|
<InputAndSwiper type='0'></InputAndSwiper>
|
||||||
<view class="home-content">
|
<view class="home-content">
|
||||||
<view class="service">
|
|
||||||
<u-image src="/static/statistics/sy_icon_lxkf.png" width="108rpx" height="108rpx"/>
|
|
||||||
</view>
|
|
||||||
<HomeNavCard></HomeNavCard>
|
<HomeNavCard></HomeNavCard>
|
||||||
<HomeNoticeBar :text="notice"/>
|
<HomeNoticeBar :text="notice" />
|
||||||
<Statistics :data="statisticsNum"/>
|
<Statistics :data="statisticsNum" />
|
||||||
<view class="show-and-search">
|
<view class="show-and-search">
|
||||||
<view class="show-tab list-tab" :class="{ 'tab-activate': chooseIndex === 0 }" @click="this.chooseIndex=0">
|
<view class="show-tab list-tab" :class="{ 'tab-activate': chooseIndex === 0 }" @click="this.chooseIndex=0">
|
||||||
<text>店铺列表</text>
|
<text>店铺列表</text>
|
||||||
@@ -16,7 +13,8 @@
|
|||||||
<text>找店列表</text>
|
<text>找店列表</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<SearchShopList v-if="chooseIndex"/><ShowShopList v-else/>
|
<SearchShopList v-if="chooseIndex" />
|
||||||
|
<ShowShopList v-else />
|
||||||
</view>
|
</view>
|
||||||
<TabBar :current-page="0"></TabBar>
|
<TabBar :current-page="0"></TabBar>
|
||||||
</view>
|
</view>
|
||||||
@@ -55,17 +53,14 @@
|
|||||||
.home-base-bg {
|
.home-base-bg {
|
||||||
background-color: $uni-bg-color-grey;
|
background-color: $uni-bg-color-grey;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
.home-content {
|
.home-content {
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
.service {
|
|
||||||
position: fixed;
|
|
||||||
right: 17rpx;
|
|
||||||
top: 1109rpx;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.show-and-search{
|
|
||||||
|
.show-and-search {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
.list-tab {
|
.list-tab {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
width: 259rpx;
|
width: 259rpx;
|
||||||
@@ -80,12 +75,14 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-tab {
|
.search-tab {
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
transform: translateX(-61rpx);
|
transform: translateX(-61rpx);
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-activate {
|
.tab-activate {
|
||||||
background: linear-gradient(#E86262,#CC3333);
|
background: linear-gradient(#E86262, #CC3333);
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<view class="search-box">
|
<!-- <view class="search-box">
|
||||||
<view class="search-box-input">
|
<view class="search-box-input">
|
||||||
<u-input placeholder="热门店铺" placeholder-style="color: #888888" prefixIcon="search"
|
<u-input placeholder="热门店铺" placeholder-style="color: #888888" prefixIcon="search"
|
||||||
prefixIconStyle="font-size: 24px;color: #888888;" border="true">
|
prefixIconStyle="font-size: 24px;color: #888888;" border="true">
|
||||||
</u-input>
|
</u-input>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<map id="map" @markertap="markerClick" :markers="marker" :show-location="true" :latitude="lat"
|
<map id="map" @markertap="markerClick" :markers="marker" :show-location="true" :latitude="lat" :longitude="lng"
|
||||||
:longitude="lng"></map>
|
:show-scale="true"></map>
|
||||||
</view>
|
</view>
|
||||||
<view class="down-shop">
|
<!-- <view class="down-shop">
|
||||||
<ShowShopListItem :shopInfo="shopList" :is-adshow="true" :show-style="0"></ShowShopListItem>
|
<ShowShopListItem :shopInfo="shopList" :is-adshow="true" :show-style="0"></ShowShopListItem>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user