Index.vue 494 B

1234567891011121314151617181920212223242526272829303132
  1. <template>
  2. <view>
  3. <web-view :src="externalUrl"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. var that;
  8. export default {
  9. data() {
  10. return {
  11. externalUrl: '',
  12. lat: '',
  13. lon: ''
  14. }
  15. },
  16. onLoad(options) {
  17. that = this;
  18. that.externalUrl = decodeURIComponent(options.externalUrl);
  19. that.lat = options.lat;
  20. that.lon = options.lon;
  21. that.externalUrl = that.externalUrl + '?lat=' + that.lat + '&lon=' + that.lon;
  22. },
  23. methods: {
  24. }
  25. }
  26. </script>
  27. <style>
  28. </style>