|
|
@@ -17,6 +17,8 @@ Page({
|
|
|
})
|
|
|
this.getFollowType()
|
|
|
this.init();
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
/* 跟进初始化 */
|
|
|
init() {
|
|
|
@@ -50,6 +52,25 @@ Page({
|
|
|
time: res.data.createdate,
|
|
|
deleteItem: true,
|
|
|
});
|
|
|
+ wx.getLocation({
|
|
|
+ type: 'wgs84',
|
|
|
+ altitude: true,
|
|
|
+ isHighAccuracy: true,
|
|
|
+ success({
|
|
|
+ latitude,
|
|
|
+ longitude
|
|
|
+ }) {
|
|
|
+ console.log("获取经纬度", latitude,
|
|
|
+ longitude)
|
|
|
+ this.setData({
|
|
|
+ "content.latitude": latitude,
|
|
|
+ "content.longitude": longitude
|
|
|
+ })
|
|
|
+ },
|
|
|
+ fail(err) {
|
|
|
+ console.log(err)
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
},
|