index.vue 414 B

12345678910111213141516171819202122232425262728293031
  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. },
  22. methods: {
  23. },
  24. };
  25. </script>
  26. <style lang="scss" scoped>
  27. </style>