去除高德定位
This commit is contained in:
@@ -26,8 +26,8 @@
|
||||
<view style="display:flex;">
|
||||
<uni-easyinput :clearable="false" type="textarea" autoHeight v-model="formData.address"
|
||||
placeholder="请输入位置信息" />
|
||||
<uni-icons type="location" color="#007aff" size="26" class="ml20"
|
||||
@click="chooseLocation"></uni-icons>
|
||||
<!-- <uni-icons type="location" color="#007aff" size="26" class="ml20"
|
||||
@click="chooseLocation"></uni-icons> -->
|
||||
</view>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item label="拓扑图">
|
||||
@@ -97,17 +97,17 @@ export default {
|
||||
register () {
|
||||
this.type = 2
|
||||
},
|
||||
chooseLocation () {
|
||||
uni.chooseLocation({
|
||||
success: function (res) {
|
||||
this.address = res.name
|
||||
console.log('位置名称:' + res.name);
|
||||
console.log('详细地址:' + res.address);
|
||||
console.log('纬度:' + res.latitude);
|
||||
console.log('经度:' + res.longitude);
|
||||
}
|
||||
});
|
||||
},
|
||||
// chooseLocation () {
|
||||
// uni.chooseLocation({
|
||||
// success: function (res) {
|
||||
// this.address = res.name
|
||||
// console.log('位置名称:' + res.name);
|
||||
// console.log('详细地址:' + res.address);
|
||||
// console.log('纬度:' + res.latitude);
|
||||
// console.log('经度:' + res.longitude);
|
||||
// }
|
||||
// });
|
||||
// },
|
||||
submit () {
|
||||
this.$util.toast('提交成功')
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user