webview.vue 747 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <view>
  3. <web-view :webview-styles="webviewStyles" :src="urls"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. webviewStyles: {
  11. progress: {
  12. color: '#FF3333'
  13. }
  14. },
  15. urls:''
  16. }
  17. },
  18. onLoad(option) {
  19. // console.log(option.url)
  20. let that = this;
  21. that.urls = decodeURIComponent(unescape(option.url));
  22. // console.log(this.url);
  23. // var url = that.$tools.getCurrentPageUrlWithArgs() //当前页面url
  24. // that.setShareInfo({
  25. // query: {
  26. // path:url,
  27. // url:this.url
  28. // },
  29. // title: '网页',
  30. // image: '',
  31. // });
  32. },
  33. methods: {
  34. }
  35. }
  36. </script>
  37. <style>
  38. </style>