|
|
@@ -0,0 +1,31 @@
|
|
|
+// pages/share/share.js
|
|
|
+Page({
|
|
|
+ data: {
|
|
|
+ shareImageUrl: '',
|
|
|
+ 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) {
|
|
|
+ let {
|
|
|
+ latitude,
|
|
|
+ longitude
|
|
|
+ } = options
|
|
|
+ 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,
|
|
|
+ shareImageUrl: (options.shareImageUrl.replace(/qwerdfb000mmmccc/g, '?')).replace(/mmmcccqwerdfb/g, '=')
|
|
|
+ })
|
|
|
+ }
|
|
|
+})
|