...
|
...
|
@@ -9,23 +9,6 @@ |
|
|
<!-- 返回按钮 -->
|
|
|
<view :class="[backBtnColor ? 'backBtnWhite' : 'backBtnBlack']" v-if="backBtn" @click="backDefault">
|
|
|
</view>
|
|
|
<!-- 定位 -->
|
|
|
<view class="address" v-if="bottomBtn" @click="toAddress">
|
|
|
<view class="addressText">
|
|
|
{{address}}
|
|
|
</view>
|
|
|
<view class="bottomBtn"></view>
|
|
|
</view>
|
|
|
<!-- 首页搜索框 -->
|
|
|
<view class="search" :style="{height: ellipse + 'px'}" v-if="search" @click="toNewPage">
|
|
|
<image class="searchImg" src="/static/mine/ic_search.png" mode="widthFix"></image>
|
|
|
<input type="text" :focus="true" placeholder="搜索" placeholder-class="placeholder" />
|
|
|
</view>
|
|
|
<!-- 地址搜索框 -->
|
|
|
<view class="searchTwo" :style="{height: ellipse + 'px'}" v-if="addressSearch" @click="toNewPage">
|
|
|
<image class="searchImg" src="/static/mine/ic_search.png" mode="widthFix"></image>
|
|
|
<input class="overdian" type="text" :value="searchContent" :placeholder="placeholder" placeholder-class="placeholderTwo" @input="iptContent"/>
|
|
|
</view>
|
|
|
<!-- 顶部标题 -->
|
|
|
<view class="title" v-if="showTitle">
|
|
|
{{title}}
|
...
|
...
|
@@ -63,18 +46,6 @@ |
|
|
backBtn: Boolean, // 按钮显隐
|
|
|
howBack: Boolean, //返回方式 默认返回上一页 true为自定义返回页面
|
|
|
customURL: String, //自定义返回路径 绝对路径
|
|
|
// 搜索框
|
|
|
search: Boolean, //首页搜索框显隐
|
|
|
addressSearch: Boolean, //普通搜索框显隐
|
|
|
searchContent: String, // 搜索值
|
|
|
placeholder: String, //输入框提示信息
|
|
|
toNewUrl: String, //点击跳转页面路径
|
|
|
// 地址
|
|
|
bottomBtn: Boolean, //显隐
|
|
|
address: String, //地址信息
|
|
|
newAddress: String, //地址跳转
|
|
|
// 定位搜索
|
|
|
showSearhcInput: Boolean
|
|
|
|
|
|
},
|
|
|
mounted() {
|
...
|
...
|
@@ -118,12 +89,6 @@ |
|
|
})
|
|
|
}
|
|
|
},
|
|
|
// 搜索框点击
|
|
|
toNewPage() {
|
|
|
uni.navigateTo({
|
|
|
url: this.toNewUrl
|
|
|
})
|
|
|
},
|
|
|
//地址跳转
|
|
|
toAddress() {
|
|
|
let that = this
|
...
|
...
|
|