index.vue 477 B

1234567891011121314151617181920212223242526272829
  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. </script>
  26. <style lang="scss" scoped>
  27. </style>