|
@@ -1,17 +1,19 @@
|
|
|
<template>
|
|
|
<view class="siteInspection-wrap">
|
|
|
- <!-- 搜索框 -->
|
|
|
- <view class="search-con">
|
|
|
- <u-search placeholder="查找全部门店" v-model="queryValue" @custom="searchHandle(1)" @search="searchHandle(1)" bg-color="#fff" :action-style="{background: '#2979ff',color: '#fff', borderRadius: '6upx',padding: '6upx 0', fontSize: '26upx'}"></u-search>
|
|
|
- </view>
|
|
|
- <!-- 定位 -->
|
|
|
- <view class="location-con">
|
|
|
- <text class="location-tit">当前位置:</text>
|
|
|
- <view class="location-main" @click="getLocation">
|
|
|
- <text class="location-addr">{{location}}</text>
|
|
|
- <u-icon name="map" color="#2979ff" size="34" class="location-icon"></u-icon>
|
|
|
+ <!-- <u-sticky> -->
|
|
|
+ <!-- 搜索框 -->
|
|
|
+ <view class="search-con">
|
|
|
+ <u-search placeholder="查找全部门店" v-model="queryValue" @custom="searchHandle(1)" @search="searchHandle(1)" bg-color="#fff" :action-style="{background: '#2979ff',color: '#fff', borderRadius: '6upx',padding: '6upx 0', fontSize: '26upx'}"></u-search>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ <!-- 定位 -->
|
|
|
+ <view class="location-con">
|
|
|
+ <text class="location-tit">当前位置:</text>
|
|
|
+ <view class="location-main" @click="getLocation">
|
|
|
+ <text class="location-addr">{{location}}</text>
|
|
|
+ <u-icon name="map" color="#2979ff" size="34" class="location-icon"></u-icon>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <!-- </u-sticky> -->
|
|
|
<!-- 附近的门店 -->
|
|
|
<view class="store-con">
|
|
|
<text class="store-tit">附近的门店:</text>
|
|
@@ -49,6 +51,14 @@
|
|
|
{name: '兰州通达街店'},
|
|
|
{name: '科技西路店'},
|
|
|
{name: '常青二路店'},
|
|
|
+ {name: '常青二路店'},
|
|
|
+ {name: '兰州通达街店'},
|
|
|
+ {name: '科技西路店'},
|
|
|
+ {name: '常青二路店'},
|
|
|
+ {name: '常青二路店'},
|
|
|
+ {name: '兰州通达街店'},
|
|
|
+ {name: '科技西路店'},
|
|
|
+ {name: '常青二路店'},
|
|
|
], // 列表数据
|
|
|
pageNo: 1, // 当前页码
|
|
|
pageSize: 10, // 每页条数
|
|
@@ -73,6 +83,7 @@
|
|
|
console.log(res)
|
|
|
_this.location = res.address.province + res.address.city + res.address.district + res.address.street + res.address.streetNum +'靠近' + res.address.poiName
|
|
|
console.log(_this.location, '城市编码 ', res.address.cityCode)
|
|
|
+ _this.searchHandle(res)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -125,10 +136,12 @@
|
|
|
background-color: #f8f8f8;
|
|
|
.search-con{
|
|
|
padding: 30upx 30upx;
|
|
|
+ // background-color: #fff;
|
|
|
}
|
|
|
// 定位
|
|
|
.location-con{
|
|
|
padding: 0 30upx;
|
|
|
+ background-color: #fff;
|
|
|
.location-main{
|
|
|
margin-top: 14upx;
|
|
|
padding: 20upx;
|