flinfo/dc-App/pages/index/web.vue
2025-03-01 10:26:49 +08:00

34 lines
693 B
Vue

<template>
<view class="">
<web-view :src="mapUrl+'/#/pages/index/navigation?startPoint=' + startPoint + '&endPoint='+ endPoint"></web-view>
</view>
</template>
<script>
import config from '@/config'
export default {
data() {
return {
startPoint: [],
endPoint: [],
mapUrl:config.mapUrl
};
},
onLoad(option) {
uni.showLoading({
title: 'Loading...'
});
setTimeout(() => {
uni.hideLoading()
}, 2000);
this.startPoint = option.startPoint
this.endPoint = option.endPoint
console.log(this.mapUrl+'/#/pages/index/navigation?startPoint=' + this.startPoint + '&endPoint='+ this.endPoint);
},
methods: {
}
};
</script>