index.vue 438 B

1234567891011121314151617181920212223242526272829303132
  1. <template>
  2. <view class="webview">
  3. <web-view :webview-styles="webviewStyles" :src="url"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. components: {},
  9. data() {
  10. return {
  11. url:'',
  12. webviewStyles: {
  13. progress: {
  14. color: '#007AFF'
  15. }
  16. }
  17. };
  18. },
  19. onLoad(option) {
  20. this.url = decodeURIComponent(option.url);
  21. console.log(this.url)
  22. },
  23. methods: {
  24. },
  25. };
  26. </script>
  27. <style lang="scss" scoped>
  28. </style>