邓洁:删除首页及地图上方搜索框
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="input-and-swiper-root">
|
||||
<view class="search-box">
|
||||
<view class="search-box" v-if="type!=='0'">
|
||||
<view class="search-box-input">
|
||||
<u-input placeholder="热门搜索" placeholder-style="color: #969696" prefixIcon="search"
|
||||
prefixIconStyle="font-size: 24px;color: #909399;" border="true">
|
||||
@@ -31,6 +31,10 @@
|
||||
"https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg"
|
||||
]
|
||||
}
|
||||
},
|
||||
type: {
|
||||
type: String,
|
||||
default: '1'
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -42,7 +46,6 @@
|
||||
styleIsolation: 'shared', // 解除样式隔离
|
||||
},
|
||||
created() {
|
||||
console.log('createsd');
|
||||
this.open()
|
||||
},
|
||||
methods: {
|
||||
@@ -63,11 +66,11 @@
|
||||
},
|
||||
success: (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, );
|
||||
let city=re.result.ad_info.city
|
||||
let district=re.result.ad_info.district
|
||||
that.position = city.slice(0,2) + district.slice(0,2)
|
||||
let city = re.result.ad_info.city
|
||||
let district = re.result.ad_info.district
|
||||
that.position = city.slice(0, 2) + district.slice(0, 2)
|
||||
},
|
||||
fail: (re) => {
|
||||
console.log(re, '失败信息');
|
||||
@@ -137,6 +140,7 @@
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.search-box {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
|
||||
Reference in New Issue
Block a user