Compare commits
No commits in common. "aedb30e74454e7d57ce2fa8ec2d5943d4e5fe34b" and "6caa02508a4ee9d913d5223631d3dcc619ee8f30" have entirely different histories.
aedb30e744
...
6caa02508a
|
@ -83,11 +83,7 @@
|
||||||
},
|
},
|
||||||
"h5" : {
|
"h5" : {
|
||||||
"sdkConfigs" : {
|
"sdkConfigs" : {
|
||||||
"maps" : {
|
"maps" : {}
|
||||||
"qqmap" : {
|
|
||||||
"key" : "TMWBZ-XA3CD-HA74Y-PNUS4-SAV6Q-X7FXH"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"devServer" : {
|
"devServer" : {
|
||||||
"https" : false,
|
"https" : false,
|
||||||
|
|
|
@ -342,15 +342,6 @@
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
,{
|
|
||||||
"path" : "map/map",
|
|
||||||
"style" :
|
|
||||||
{
|
|
||||||
"navigationBarTitleText": "",
|
|
||||||
"enablePullDownRefresh": false
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
<template>
|
|
||||||
<view>
|
|
||||||
<map :latitude="30.656693" :longitude="104.136425"></map>
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
|
|
||||||
</style>
|
|
|
@ -76,22 +76,13 @@
|
||||||
const latitude = res.latitude;
|
const latitude = res.latitude;
|
||||||
const longitude = res.longitude;
|
const longitude = res.longitude;
|
||||||
console.log(latitude,longitude,78);
|
console.log(latitude,longitude,78);
|
||||||
uni.chooseLocation({
|
uni.openLocation({
|
||||||
success: function (res) {
|
latitude: latitude,
|
||||||
console.log(res,81);
|
longitude: longitude,
|
||||||
console.log('位置名称:' + res.name);
|
success: function () {
|
||||||
console.log('详细地址:' + res.address);
|
console.log('success');
|
||||||
console.log('纬度:' + res.latitude);
|
|
||||||
console.log('经度:' + res.longitude);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// uni.openLocation({
|
|
||||||
// latitude: latitude,
|
|
||||||
// longitude: longitude,
|
|
||||||
// success: function () {
|
|
||||||
// console.log('success');
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue