This commit is contained in:
parent
f4a9b5ce21
commit
eafb575f09
|
@ -42,12 +42,12 @@ import geoJsonJiangyang from "/static/jsonData/jiangyang_geo.js"
|
|||
import geoJsonLongmatan from "/static/jsonData/longmatan_geo.js"
|
||||
import geoJsonNaxi from "/static/jsonData/naxi_geo.js"
|
||||
import geoJsonXuyong from "/static/jsonData/xuyong_geo.js"
|
||||
import { useRouter,useRoute } from "vue-router"
|
||||
import { useRouter, useRoute } from "vue-router"
|
||||
import { areaObj } from "@/store/index.js"
|
||||
import { landListApi } from "@/api.js"
|
||||
import { globalEventBus } from '@/common/eventBus'
|
||||
import { sendMsg } from "@/api.js"
|
||||
const route=useRoute()
|
||||
const route = useRoute()
|
||||
|
||||
const sendFn = (event, data = '') => {
|
||||
sendMsg({ channel: 'user-11', event, data })
|
||||
|
@ -316,8 +316,11 @@ const initAreaMap = async () => {
|
|||
bg.setOption(option);
|
||||
bg.on('click', function (params) {
|
||||
|
||||
console.log(params, 'parmas')
|
||||
|
||||
|
||||
if (isMainScreen) {
|
||||
sendFn('choseTown', { name: params.name })
|
||||
sendFn('choseTown', { name: params?.name||params?.value })
|
||||
} else {
|
||||
areaStore.areaCodeList.forEach(item => {
|
||||
if (item.name == (params.name || params.value)) {
|
||||
|
@ -560,7 +563,7 @@ const initTownMap = async (name) => {
|
|||
}
|
||||
|
||||
watch(() => areaStore.userInfo, (value, oldValue) => {
|
||||
console.log("监听到了",value)
|
||||
console.log("监听到了", value)
|
||||
if (!value.streetCode) {
|
||||
initGeoJson(value.areaCode)
|
||||
getFamrCenter().then(res => {
|
||||
|
@ -575,7 +578,7 @@ watch(() => areaStore.userInfo, (value, oldValue) => {
|
|||
|
||||
)
|
||||
|
||||
const initGeoJson=(code)=>{
|
||||
const initGeoJson = (code) => {
|
||||
switch (code) {
|
||||
case "510521":
|
||||
geoJson = geoJsonLuxian
|
||||
|
@ -606,7 +609,7 @@ const initGeoJson=(code)=>{
|
|||
}
|
||||
}
|
||||
|
||||
if(route.query.areaCode){
|
||||
if (route.query.areaCode) {
|
||||
// initGeoJson(areaCode)
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<leftCenter :data="data" :key="data.land_id"></leftCenter>
|
||||
</div>
|
||||
<div class="top center">
|
||||
<!-- <JessibucaDemo v-if="video_url&&showVideo" :src="video_url"></JessibucaDemo> -->
|
||||
<JessibucaDemo v-if="video_url&&showVideo" :src="video_url"></JessibucaDemo>
|
||||
</div>
|
||||
</div>
|
||||
<div class="center">
|
||||
|
|
Loading…
Reference in New Issue