From e84e336d3a026b02e397883569fd8a06f1fea434 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Wed, 15 Jun 2022 15:26:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A5=BF=E6=B5=B7=E5=B2=B8=E9=95=9C=E5=83=8F?= =?UTF-8?q?=20=E6=B7=BB=E5=8A=A0=E5=A4=B4=E9=83=A8=E8=B7=AF=E7=94=B1=20=20?= =?UTF-8?q?=20=E7=BA=BF=E5=A4=B4=E5=8F=8C=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/assets/home/box_bg2.png | Bin 0 -> 1972 bytes front/src/assets/home/zx2.png | Bin 0 -> 1569 bytes front/src/views/home/components/header.vue | 8 +++- front/src/views/home/mapTest/index.vue | 51 +++++++++++++++++++-- 4 files changed, 55 insertions(+), 4 deletions(-) create mode 100644 front/src/assets/home/box_bg2.png create mode 100644 front/src/assets/home/zx2.png diff --git a/front/src/assets/home/box_bg2.png b/front/src/assets/home/box_bg2.png new file mode 100644 index 0000000000000000000000000000000000000000..ba2d788ad1a48e3a99145384dfe41abee7405b81 GIT binary patch literal 1972 zcmb7FYd9NN8a~RnwNX<~J9UZs)S!&oY7F95lp5MW2}UT>s;!_jNDvm&>Y~av3`!_v zNQi1hk%TIuRg@s=T4P(A1PPK*K__sX@8i2G606u<_ zNHzdyGXOXt09gG3z*o@)!M!d3$XU5LIrt<_Eze$v{MROwu{ON<7z$H9aojAx3SU^w zsrD^1LXTFT7wZYlE;-s8my=@NUiNZ&U~bQxn4<>f*E~lQ-1WBbAkDtGr-q(tVb%mu z&eqm*lssg89_hJ%Q*rAeL&WQNp{Rc$lA-W%QJ=@kC6sC4j`3`UVWMv*Qit+NxYZ@^ z8bd~({2Y~JusiwAfBwk&lp#R;R9wNm9oF#x$+KHZ8Wc_>cM=8-l4EyCZ&1C0*i&ni z6@N7LVvoB_h~dm@b`@c@Wq6b;e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Thv&To*64*5o8+_BY9336>{TJH@lFs}qp<#4{R~y}YM=m!`H)ax6sW#WP?cIU z!#ElO%NZ4dz!F$dVa?Z?xz_Nd(|i+H5Lf~$Dy*5FW4VRX7@C|0fhDk_!YTt+1Fhy1 z`+3OQq6)0h0V^3-R4YZ-%`4Q7Z|9-k6fLlFA69<8PqhO-2&heWaASP?!=G1R&isbf9kq)Y8GtBgv6FtH8<)Sn+97SqGG8OWlnO*XRI& zB}IXyDz>mvX`WJ!gWB=ijSL7ZY0$W4Rl^gdfDhV07=surR505(j%xTpI}lh>R9NM4 zSZWj}upHKaz>=cEdXhM+l;uMGCJqpB!w!KZu)wFp(`;~->o#ClV+}#B%_*=(9<1@Y z?`{R{0(JmhjWxM9r@$Inu;SCos8X5<%CIZUa1B6UNl{?kSyl)+pf%^i+Z$mEENM`g z^uVW<5^_Ro5Li-FSpPb;l-v6%2rMZItouG*L|{qxf_2wZO9hscEvx}gEfrW&Hn8q_ zYUyZz^@x{XiCpgC%P9(!Bk4l+-|f`WoQJh+t4k&nugm2g-ZJp>K&O`GdVdc9<9frB T?8OYu00000NkvXXu0mjfb!O3o literal 0 HcmV?d00001 diff --git a/front/src/views/home/components/header.vue b/front/src/views/home/components/header.vue index 9aedcaff..5365de8b 100644 --- a/front/src/views/home/components/header.vue +++ b/front/src/views/home/components/header.vue @@ -104,6 +104,7 @@ { name: '开发指南', key: 'developmentGuide' }, { name: '需求中心', key: 'demandCenter' }, { name: '个人中心', key: 'personalCenter' }, + { name: '区市站点', key: 'mapTest' }, { name: '后台管理', key: 'houtaiguanli' }, { name: '赋能案例', key: 'assignCase' }, ]) @@ -164,6 +165,11 @@ path: '/demandCenter', }) break + case '区市站点': + router.push({ + path: '/mapTest', + }) + break case '后台管理': window.open(window.SITE_CONFIG.backUrl + '/#/bscatalogue-bscatalogue') window.reload('http://15.2.21.238:9797') @@ -264,7 +270,7 @@ display: flex; justify-content: center; align-items: center; - padding: 0 1.9rem; + padding: 0 1rem; background-color: rgba(0, 0, 25, 0.7); position: fixed; z-index: 1000; diff --git a/front/src/views/home/mapTest/index.vue b/front/src/views/home/mapTest/index.vue index 3cdb204a..8099ebcb 100644 --- a/front/src/views/home/mapTest/index.vue +++ b/front/src/views/home/mapTest/index.vue @@ -331,6 +331,26 @@ } return res } + const convertData2 = function (data) { + let res = [] + for (let i = 0; i < data.length; i++) { + let dataItem = data[i] + let fromCoord = [120.364482, 36.065671] + let toCoord = geoCoordMap[dataItem.name] + if (fromCoord && toCoord) { + res.push([ + { + coord: fromCoord, + value: dataItem.value, + }, + { + coord: toCoord, + }, + ]) + } + } + return res + } ;[['市南区', areaMenuList.value]].forEach(function (item) { option.series.push( { @@ -352,6 +372,25 @@ }, data: convertData(item[1]), }, + { + type: 'lines', + zlevel: 2, + effect: { + show: true, + period: 4, //箭头指向速度,值越小速度越快 + trailLength: 0.02, //特效尾迹长度[0,1]值越大,尾迹越长重 + symbol: 'arrow', //箭头图标 + symbolSize: 5, //图标大小 + }, + lineStyle: { + normal: { + width: 1, //尾迹线条宽度 + opacity: 1, //尾迹线条透明度 + curveness: -0.3, //尾迹线条曲直度 + }, + }, + data: convertData2(item[1]), + }, { type: 'effectScatter', coordinateSystem: 'geo', @@ -427,7 +466,7 @@ symbolOffset: [0, -25], data: [ { - name: item[0], + name: '', value: geoCoordMap[item[0]].concat([10]), }, ], @@ -608,12 +647,18 @@ background-size: 100%; position: relative; top: -0.9rem; - left: -1.88rem; + left: -1.84rem; } } .xha { top: 5.45rem; - left: 9.6rem; + left: 3.5rem; + background: url('~@/assets/home/box_bg2.png') no-repeat; + .zx { + background: url('~@/assets/home/zx2.png') no-repeat; + top: -0.9rem; + left: 2.82rem; + } } .lsq { top: 3.7rem;