Browse Source

地图页样式

master
liujiangyong 2 years ago
parent
commit
012d021b6c
  1. 17
      weapp/images/gis.svg
  2. BIN
      weapp/images/tunnel.png
  3. 10
      weapp/pages/index/index.js

17
weapp/images/gis.svg

@ -0,0 +1,17 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 29 44" class="design-iconfont">
<defs>
<linearGradient x1="50%" y1="50%" x2="50%" y2="92.9655566%" id="hl0jxniqt__fsejvl61fa">
<stop stop-color="#FFF" offset="0%"/>
<stop stop-color="#A3C6FF" offset="100%"/>
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="hl0jxniqt__dt6f0yk6ab">
<stop stop-color="#006BE3" offset="0%"/>
<stop stop-color="#4E87FF" offset="100%"/>
</linearGradient>
</defs>
<g fill="none" fill-rule="evenodd">
<path stroke="#2177EF" stroke-width="1.2" fill="url(#hl0jxniqt__fsejvl61fa)" d="M14.5 3.6344826999999995A10.9408163 11.2344828 0 1 0 14.5 26.1034483A10.9408163 11.2344828 0 1 0 14.5 3.6344826999999995Z"/>
<path d="M8.87665911,12 L8.87665911,5.0902424 C8.87665911,2.896493 7.10695914,1.11810774 4.9239236,1.11810774 C2.74088806,1.11810774 0.971188087,2.896493 0.971188087,5.0902424 L0.971188087,12 L0,12 L0,4.89830469 C0.0690098256,2.17311995 2.28724663,0 5,0 C7.71275337,0 9.93099017,2.17311995 10,4.89830469 L10,12 L8.87665911,12 Z M5.05017805,1.49872998 C7.9184202,1.46945134 8.50760764,4.58599926 8.50760764,4.58599926 L8.50760764,12 L8.38135319,12 L6.28358692,8.17100532 L6.28358692,4.70962016 C6.19810404,4.10531524 5.65480533,3.67542146 5.05017805,3.7336657 C4.42484793,3.69679205 3.85861437,4.10322955 3.69051473,4.70962016 L3.69051473,8.17100532 L1.53771447,12 L1.34671415,12 L1.34671415,4.58925244 C1.34671415,4.58925244 1.83878278,1.53451497 5.05017805,1.49872998 L5.05017805,1.49872998 Z M6.11524765,8.17100532 L8.25833603,12 L1.67044351,12 L3.81353189,8.17100532 L6.11524765,8.17100532 Z" transform="translate(9.765306 9.013793)" fill="#0D70E8" fill-rule="nonzero"/>
<path fill="url(#hl0jxniqt__dt6f0yk6ab)" transform="matrix(1 0 0 -1 0 74.648276)" d="M14.5 30.6482759L22.4897959 44 14.5 40.3586207 6.51020408 44z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
weapp/images/tunnel.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

10
weapp/pages/index/index.js

@ -26,13 +26,15 @@ Page({
latitude: p.latitude,
longitude: p.longitude,
name: p.name,
iconPath: '/images/tunnel.png',
width: 18,
height: 18,
iconPath: '/images/gis.svg',
width: 29,
height: 44,
callout: {
content: `${p.name}\n今日巡检:${todayCount}`,
padding: 10,
display: this.data.isShowCallout ? 'ALWAYS' : 'BYCLICK',
display: this.data.isShowCallout ? 'ALWAYS' : 'ALWAYS',
borderColor: '#1684FF',
borderWidth: 1,
},
}
})

Loading…
Cancel
Save