|
|
@@ -2,14 +2,7 @@
|
|
|
Page({
|
|
|
data: {
|
|
|
shareImageUrl: '',
|
|
|
- markers: [{
|
|
|
- id: 999,
|
|
|
- latitude: '32.001233',
|
|
|
- longitude: '120.5475',
|
|
|
- iconPath: "https://6875-huihenduo-2gx127w7f837b584-1255802371.tcb.qcloud.la/miniapp-static/red-circle.png?sign=6d208881376358fb4111aa6d7f1a7846&t=1647934972",
|
|
|
- height: 20,
|
|
|
- width: 20
|
|
|
- }],
|
|
|
+ markers: [],
|
|
|
logoUrl: 'https://6875-huihenduo-2gx127w7f837b584-1255802371.tcb.qcloud.la/miniapp-static/%E6%B1%87%E5%BE%88%E5%A4%9Alogo-%E5%B7%A6%E5%8F%B3.png'
|
|
|
},
|
|
|
onLoad: function (options) {
|
|
|
@@ -17,13 +10,21 @@ Page({
|
|
|
latitude,
|
|
|
longitude
|
|
|
} = options
|
|
|
- this.data.markers[0].latitude = latitude
|
|
|
- this.data.markers[0].longitude = longitude
|
|
|
+ let markers = [{
|
|
|
+ id: 999,
|
|
|
+ latitude: '32.001233',
|
|
|
+ longitude: '120.5475',
|
|
|
+ iconPath: "https://6875-huihenduo-2gx127w7f837b584-1255802371.tcb.qcloud.la/miniapp-static/red-circle.png?sign=6d208881376358fb4111aa6d7f1a7846&t=1647934972",
|
|
|
+ height: 20,
|
|
|
+ width: 20
|
|
|
+ }]
|
|
|
+ markers[0].latitude = latitude
|
|
|
+ markers[0].longitude = longitude
|
|
|
|
|
|
|
|
|
|
|
|
this.setData({
|
|
|
- markers: this.data.markers,
|
|
|
+ markers,
|
|
|
shareImageUrl: (options.shareImageUrl.replace(/qwerdfb000mmmccc/g, '?')).replace(/mmmcccqwerdfb/g, '=')
|
|
|
})
|
|
|
}
|