|
@@ -43,11 +43,11 @@
|
|
</div>
|
|
</div>
|
|
<div class="router-wraps" v-if="dropdownOpen">
|
|
<div class="router-wraps" v-if="dropdownOpen">
|
|
<div style="background-image: linear-gradient(to bottom, #132132, #496fa6) !important; overflow-y: scroll; height: 150px">
|
|
<div style="background-image: linear-gradient(to bottom, #132132, #496fa6) !important; overflow-y: scroll; height: 150px">
|
|
- <div v-for="(item) in dropdownList" :key="item.alias" class="router-item">
|
|
|
|
- <div class="alias" @click="setDropDownItem(item)" :title="item.alias.length > 6 ? item.alias : null">
|
|
|
|
|
|
+ <div v-for="(item) in dropdownList" :key="item.alias" class="router-item" @click="setDropDownItem(item)">
|
|
|
|
+ <div class="alias" :title="item.alias.length > 6 ? item.alias : null">
|
|
{{ item.alias.length > 6 ? item.alias.slice(0, 6) + '...' : item.alias }}
|
|
{{ item.alias.length > 6 ? item.alias.slice(0, 6) + '...' : item.alias }}
|
|
</div>
|
|
</div>
|
|
- <div>{{ item.region.province }}-{{ item.region.city }}-{{ item.region.county }}</div>
|
|
|
|
|
|
+ <div @click="setDropDownItem(item)">{{ item.region.province }}{{ item.region.city }}{{ item.region.county }}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -433,7 +433,7 @@ export default {
|
|
point[0] = point[0] * 1;
|
|
point[0] = point[0] * 1;
|
|
point[1] = point[1] * 1;
|
|
point[1] = point[1] * 1;
|
|
console.log(point)
|
|
console.log(point)
|
|
- this.keywordPoint(point)
|
|
|
|
|
|
+ this.keywordPoint(item.region.cityCode,point)
|
|
},
|
|
},
|
|
handleClear(){
|
|
handleClear(){
|
|
this.dropdownOpen = false
|
|
this.dropdownOpen = false
|
|
@@ -502,11 +502,15 @@ export default {
|
|
//页面初始m, 历史城市数组=接口返回
|
|
//页面初始m, 历史城市数组=接口返回
|
|
this.history.navigation.currentCity = null;
|
|
this.history.navigation.currentCity = null;
|
|
},
|
|
},
|
|
- keywordPoint(points){
|
|
|
|
|
|
+ keywordPoint(brandCode,points){
|
|
|
|
+ const fit = new CTMapOl.extend.FitToRegion(this.mapType === "3D" ? this.map : this.map.map, { duration: 300 },errorMsg => {
|
|
|
|
+ console.log(errorMsg)
|
|
|
|
+ })
|
|
|
|
+ fit.fitView({ adCode: brandCode})
|
|
function monitorIcon() {
|
|
function monitorIcon() {
|
|
return new CTMapOl.style.Style({
|
|
return new CTMapOl.style.Style({
|
|
image: new CTMapOl.style.Icon({
|
|
image: new CTMapOl.style.Icon({
|
|
- src: this.dropIcon,
|
|
|
|
|
|
+ src: '../assets/logo.png',
|
|
}),
|
|
}),
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -2670,5 +2674,6 @@ progress::-webkit-progress-value {
|
|
|
|
|
|
.alias {
|
|
.alias {
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
|
|
+ cursor: pointer;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|