54 lines
1.2 KiB
JavaScript
54 lines
1.2 KiB
JavaScript
// index.js
|
|
// 获取应用实例
|
|
const app = getApp()
|
|
import im from "../../utils/im.js"
|
|
Page({
|
|
data: {
|
|
longitude: "117.85",
|
|
latitude: "36.3950",
|
|
map: '',
|
|
markes: [{
|
|
id: 1,
|
|
longitude: "117.85",
|
|
latitude: "36.3950",
|
|
iconPath: "../../images/定位.png",
|
|
width:50,
|
|
height: 50
|
|
|
|
},
|
|
{
|
|
id: 1,
|
|
longitude: "117.86",
|
|
latitude: "36.3950",
|
|
iconPath: "../../images/定位.png",
|
|
width:50,
|
|
height: 50,
|
|
callout:{
|
|
content:"添加好友",
|
|
color: "#fff",
|
|
bgColor: "#f00",
|
|
padding:5,
|
|
display: 'ALWAYS'
|
|
}
|
|
|
|
},
|
|
{
|
|
id: 1,
|
|
longitude: "117.85",
|
|
latitude: "36.3850",
|
|
iconPath: "../../images/定位.png",
|
|
width:50,
|
|
height: 50
|
|
|
|
}]
|
|
},
|
|
onLoad() {
|
|
// console.log("load")
|
|
// this.setData({
|
|
// map: wx.createMapContext('map')
|
|
// })
|
|
console.log(im)
|
|
// console.log(this.data.map)
|
|
}
|
|
})
|