diff --git a/src/components/webContact/index.vue b/src/components/webContact/index.vue index 5d9c2b1..a56504d 100644 --- a/src/components/webContact/index.vue +++ b/src/components/webContact/index.vue @@ -92,6 +92,10 @@ function submitForm() { } \ No newline at end of file diff --git a/src/views/website/index/comp/index4.vue b/src/views/website/index/comp/index4.vue index 68f67ca..b0f69af 100644 --- a/src/views/website/index/comp/index4.vue +++ b/src/views/website/index/comp/index4.vue @@ -128,9 +128,9 @@ const state = reactive({ isShowTips: false,//是否显示下载提示 }); -onMounted(async () => { +onMounted(() => { // 数据接口 - await laboratory().then(res => { + laboratory().then(res => { if (200 == res.code) { treeData = res.data; snapTree.value = res.data; @@ -156,21 +156,23 @@ onMounted(async () => { state.echartsMap = echarts.init(dom); state.echartsMap.on('click', echartsMapClick); - state.map = new AMap.Map('container', { - resizeEnable: true, - center: [116.30946, 39.937629], - zoom: 3 - }); - state.opts = { - subdistrict: 1, //返回下一级行政区 - showbiz: false //最后一级返回街道信息 - }; - state.district = new AMap.DistrictSearch(state.opts);//注意:需要使用插件同步下发功能才能这样直接使用 - state.district.search('中国', (status, result) => { - if (status == 'complete') { - getData(result.districtList[0], '', 100000); - } - }); + setTimeout(() => { + state.map = new AMap.Map('container', { + resizeEnable: true, + center: [116.30946, 39.937629], + zoom: 3 + }); + state.opts = { + subdistrict: 1, //返回下一级行政区 + showbiz: false //最后一级返回街道信息 + }; + state.district = new AMap.DistrictSearch(state.opts);//注意:需要使用插件同步下发功能才能这样直接使用 + state.district.search('中国', (status, result) => { + if (status == 'complete') { + getData(result.districtList[0], '', 100000); + } + }); + }, 2000) }); diff --git a/src/views/website/index/comp/index5.vue b/src/views/website/index/comp/index5.vue index 66d695d..a0ebb8c 100644 --- a/src/views/website/index/comp/index5.vue +++ b/src/views/website/index/comp/index5.vue @@ -128,9 +128,9 @@ const state = reactive({ isShowTips: false,//是否显示下载提示 }); -onMounted(async () => { +onMounted(() => { // 数据接口 - await achievement().then(res => { + achievement().then(res => { if (200 == res.code) { treeData = res.data; snapTree.value = res.data; @@ -156,21 +156,23 @@ onMounted(async () => { state.echartsMap = echarts.init(dom); state.echartsMap.on('click', echartsMapClick); - state.map = new AMap.Map('container', { - resizeEnable: true, - center: [116.30946, 39.937629], - zoom: 3 - }); - state.opts = { - subdistrict: 1, //返回下一级行政区 - showbiz: false //最后一级返回街道信息 - }; - state.district = new AMap.DistrictSearch(state.opts);//注意:需要使用插件同步下发功能才能这样直接使用 - state.district.search('中国', (status, result) => { - if (status == 'complete') { - getData(result.districtList[0], '', 100000); - } - }); + setTimeout(() => { + state.map = new AMap.Map('container', { + resizeEnable: true, + center: [116.30946, 39.937629], + zoom: 3 + }); + state.opts = { + subdistrict: 1, //返回下一级行政区 + showbiz: false //最后一级返回街道信息 + }; + state.district = new AMap.DistrictSearch(state.opts);//注意:需要使用插件同步下发功能才能这样直接使用 + state.district.search('中国', (status, result) => { + if (status == 'complete') { + getData(result.districtList[0], '', 100000); + } + }); + }, 3000) }); diff --git a/src/views/website/index/comp/index6.vue b/src/views/website/index/comp/index6.vue index 04ff8f6..bed7cb6 100644 --- a/src/views/website/index/comp/index6.vue +++ b/src/views/website/index/comp/index6.vue @@ -128,9 +128,9 @@ const state = reactive({ isShowTips: false,//是否显示下载提示 }); -onMounted(async () => { +onMounted(() => { // 数据接口 - await demand().then(res => { + demand().then(res => { if (200 == res.code) { treeData = res.data; snapTree.value = res.data; @@ -156,21 +156,23 @@ onMounted(async () => { state.echartsMap = echarts.init(dom); state.echartsMap.on('click', echartsMapClick); - state.map = new AMap.Map('container', { - resizeEnable: true, - center: [116.30946, 39.937629], - zoom: 3 - }); - state.opts = { - subdistrict: 1, //返回下一级行政区 - showbiz: false //最后一级返回街道信息 - }; - state.district = new AMap.DistrictSearch(state.opts);//注意:需要使用插件同步下发功能才能这样直接使用 - state.district.search('中国', (status, result) => { - if (status == 'complete') { - getData(result.districtList[0], '', 100000); - } - }); + setTimeout(() => { + state.map = new AMap.Map('container', { + resizeEnable: true, + center: [116.30946, 39.937629], + zoom: 3 + }); + state.opts = { + subdistrict: 1, //返回下一级行政区 + showbiz: false //最后一级返回街道信息 + }; + state.district = new AMap.DistrictSearch(state.opts);//注意:需要使用插件同步下发功能才能这样直接使用 + state.district.search('中国', (status, result) => { + if (status == 'complete') { + getData(result.districtList[0], '', 100000); + } + }); + }, 4000) }); diff --git a/src/views/website/index/comp/index7.vue b/src/views/website/index/comp/index7.vue index 4e8e47a..dbd9618 100644 --- a/src/views/website/index/comp/index7.vue +++ b/src/views/website/index/comp/index7.vue @@ -128,9 +128,9 @@ const state = reactive({ isShowTips: false,//是否显示下载提示 }); -onMounted(async () => { +onMounted(() => { // 数据接口 - await company().then(res => { + company().then(res => { if (200 == res.code) { treeData = res.data; snapTree.value = res.data; @@ -156,21 +156,23 @@ onMounted(async () => { state.echartsMap = echarts.init(dom); state.echartsMap.on('click', echartsMapClick); - state.map = new AMap.Map('container', { - resizeEnable: true, - center: [116.30946, 39.937629], - zoom: 3 - }); - state.opts = { - subdistrict: 1, //返回下一级行政区 - showbiz: false //最后一级返回街道信息 - }; - state.district = new AMap.DistrictSearch(state.opts);//注意:需要使用插件同步下发功能才能这样直接使用 - state.district.search('中国', (status, result) => { - if (status == 'complete') { - getData(result.districtList[0], '', 100000); - } - }); + setTimeout(() => { + state.map = new AMap.Map('container', { + resizeEnable: true, + center: [116.30946, 39.937629], + zoom: 3 + }); + state.opts = { + subdistrict: 1, //返回下一级行政区 + showbiz: false //最后一级返回街道信息 + }; + state.district = new AMap.DistrictSearch(state.opts);//注意:需要使用插件同步下发功能才能这样直接使用 + state.district.search('中国', (status, result) => { + if (status == 'complete') { + getData(result.districtList[0], '', 100000); + } + }); + }, 5000) }); diff --git a/src/views/website/index/index.vue b/src/views/website/index/index.vue index 4963791..f9575a5 100644 --- a/src/views/website/index/index.vue +++ b/src/views/website/index/index.vue @@ -1,5 +1,5 @@ @@ -62,6 +62,7 @@ + + \ No newline at end of file diff --git a/src/views/website/searchList/index4.vue b/src/views/website/searchList/index4.vue new file mode 100644 index 0000000..3920e25 --- /dev/null +++ b/src/views/website/searchList/index4.vue @@ -0,0 +1,157 @@ + + + + + \ No newline at end of file diff --git a/src/views/website/searchList/index4Detail.vue b/src/views/website/searchList/index4Detail.vue new file mode 100644 index 0000000..5d9553c --- /dev/null +++ b/src/views/website/searchList/index4Detail.vue @@ -0,0 +1,594 @@ + + + + + \ No newline at end of file