data: {
},
getCenterLocation: function() {
this.mapCtx.getCenterLocation({
success: function(res) {
console.log(res.longitude)
console.log(res.latitude)
}
})
},
/**
- 生命周期函数--监听页面加载 */ onLoad: function(options) { this.getCenterLocation(); },