You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
388 B
23 lines
388 B
<template>
|
|
<view class="map">
|
|
<web-view :src="url"></web-view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
url: ""
|
|
};
|
|
},
|
|
onLoad(o){
|
|
console.log(o);
|
|
this.url = `https://uri.amap.com/navigation?from=${o.start},${o.startName}&to=${o.end},${o.endName}&mode=car&policy=1&src=mypage&callnative=0`
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
|
|
</style>
|
|
|