From 78cc8810c870900c42d712270373df59de9dfa6c Mon Sep 17 00:00:00 2001 From: lishenfeng Date: Wed, 20 Nov 2024 17:16:09 +0800 Subject: [PATCH] =?UTF-8?q?feat():=20=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/zhjs/subnvue/index.nvue | 54 +++++++++++++++++++--------------- static/tabs/shenliu1.png | Bin 0 -> 216 bytes static/tabs/shenliu1.svg | 6 ++++ static/tabs/shenliu2.svg | 6 ++++ 4 files changed, 43 insertions(+), 23 deletions(-) create mode 100644 static/tabs/shenliu1.png create mode 100644 static/tabs/shenliu1.svg create mode 100644 static/tabs/shenliu2.svg diff --git a/pages/zhjs/subnvue/index.nvue b/pages/zhjs/subnvue/index.nvue index c7e303c..a5c05c5 100644 --- a/pages/zhjs/subnvue/index.nvue +++ b/pages/zhjs/subnvue/index.nvue @@ -9,8 +9,11 @@ top: '-' + statusBarHeight + 'px' }" id="map" ref="map" :latitude="latitude" :longitude="longitude" :markers="marker" :show-location="true" scale="16.5" :enable-satellite="enableSatellite" theme="satellite" @markertap="markertap"> - - + + + + 图层 + @@ -26,19 +29,12 @@ { latitude: 31.4954, longitude: 114.7693, - iconPath: '/static/tabs/add.png', - width: "25", - height: "25", + iconPath: '/static/tabs/shenliu1.png', + width: "20", + height: "20", id:1, + title:"渗流监测" }, - { - latitude: 31.4951, - longitude: 114.767, - iconPath: '/static/tabs/add.png', - width: "25", - height: "25", - id:2, - } ], dingwei: '../../static/tabs/dingwei.png', map:null, @@ -73,18 +69,18 @@ if(item.id === e.detail.markerId){ item.height=55; item.width=55; - item.label={ - content:"测试", - color:"#57a7f0", - bgColor:"transparent" - } + // item.label={ + // content:"测试", + // color:"#57a7f0", + // bgColor:"transparent" + // } }else{ item.height=25; item.width=25; - item.label={ - content:" ", - bgColor:"transparent" - } + // item.label={ + // content:" ", + // bgColor:"transparent" + // } } })); console.log("newMarker",newMarker); @@ -104,9 +100,21 @@ position: absolute; width: 35px; height:35px; - bottom: 130px; + bottom: 50px; left:10px; background-color: #fff; padding: 5px; } + .tc-style{ + display: flex; + align-items: center; + position: absolute; + font-size: 12px; + padding: 5px; + top: 200px; + right:10px; + background-color: #fff; + + // padding: 5px; + } \ No newline at end of file diff --git a/static/tabs/shenliu1.png b/static/tabs/shenliu1.png new file mode 100644 index 0000000000000000000000000000000000000000..9c036a86b508acb2849d4b47c859bf82d87f8d06 GIT binary patch literal 216 zcmeAS@N?(olHy`uVBq!ia0vp^JV4CN!2%>7RxY^$q?nSt-CY>|xA&jf59Cesba4!k zkYqh*sK?B};BYbgswc1S8=>7Z)*Lw^%X3%Nr{t=!Nm%)Y?;O+E*bM|TRi=9M+^=R} z_@E@sz_9I)Cj*0wSJLs`V)1pdI}gPOG53ds&8ykH<@M>kTN5%;QZl5g`FQ4ZZ8Z1x zUVrSJit+rW<^gaeU Oj=|H_&t;ucLK6VqzD%S5 literal 0 HcmV?d00001 diff --git a/static/tabs/shenliu1.svg b/static/tabs/shenliu1.svg new file mode 100644 index 0000000..968452a --- /dev/null +++ b/static/tabs/shenliu1.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/static/tabs/shenliu2.svg b/static/tabs/shenliu2.svg new file mode 100644 index 0000000..7e69837 --- /dev/null +++ b/static/tabs/shenliu2.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file