From 8176871fcff2f8c56d596aa69ab9792e6f87e06f Mon Sep 17 00:00:00 2001 From: hh <292475944@qq.com> Date: Thu, 27 Jan 2022 13:33:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=BE=E4=B8=93=E5=AE=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/webContact/index.vue | 4 + src/components/webHead/index.vue | 5 +- src/router/index.js | 12 + src/views/website/index/comp/index3.vue | 49 +- src/views/website/index/comp/index4.vue | 36 +- src/views/website/index/comp/index5.vue | 36 +- src/views/website/index/comp/index6.vue | 36 +- src/views/website/index/comp/index7.vue | 36 +- src/views/website/index/index.vue | 52 +- src/views/website/innovate/detail.vue | 1 - .../searchList/components/expertItem.vue | 162 +++++ .../searchList/components/loadMore.vue | 76 +++ .../searchList/components/searchContainer.vue | 2 +- src/views/website/searchList/index0.vue | 3 +- src/views/website/searchList/index0Detail.vue | 4 +- src/views/website/searchList/index1.vue | 241 +++++++ src/views/website/searchList/index4.vue | 157 +++++ src/views/website/searchList/index4Detail.vue | 594 ++++++++++++++++++ 18 files changed, 1385 insertions(+), 121 deletions(-) create mode 100644 src/views/website/searchList/components/expertItem.vue create mode 100644 src/views/website/searchList/components/loadMore.vue create mode 100644 src/views/website/searchList/index1.vue create mode 100644 src/views/website/searchList/index4.vue create mode 100644 src/views/website/searchList/index4Detail.vue 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