新增团购券分类
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
<el-dialog title="选择地址" :visible.sync="showLocation" :modal="false" :modal-append-to-body="false">
|
||||
<div class="map_box">
|
||||
<div class="map">
|
||||
<el-amap :center="amapOptions.center">
|
||||
<el-amap ref="map" :center="amapOptions.center">
|
||||
<el-amap-marker :position="amapOptions.center"></el-amap-marker>
|
||||
</el-amap>
|
||||
</div>
|
||||
@@ -86,7 +86,6 @@
|
||||
<el-amap-search-box :search-option="searchOption"
|
||||
:on-search-result="onSearchResult"></el-amap-search-box>
|
||||
</div>
|
||||
|
||||
<div class="search_wrap">
|
||||
<div class="item" v-for="item in locationSearchList" :key="item.id">
|
||||
<div class="left">
|
||||
@@ -231,6 +230,16 @@ export default {
|
||||
this.form.lng = item.lng
|
||||
this.form.lat = item.lat
|
||||
this.showLocation = false
|
||||
|
||||
console.log(this.$refs.map.$$getInstance());
|
||||
|
||||
const position = { lng: item.lng, lat: item.lat };
|
||||
this.$refs.map.geocoder.getAddress(position, (status, result) => {
|
||||
if (status === 'complete' && result.info === 'OK') {
|
||||
// 打印省市区信息
|
||||
console.log(result.regeocode.addressComponent);
|
||||
}
|
||||
})
|
||||
},
|
||||
// 保存
|
||||
submitHandle() {
|
||||
|
||||
Reference in New Issue
Block a user