web_view.vue 665 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <view>
  3. <use-tabbar :tabbar="false"></use-tabbar>
  4. <web-view :src="url" :webview-styles="webviewStyles" @message="callback" style="margin-top:44px;"></web-view>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. url: '',
  12. title : '',
  13. webviewStyles: {
  14. progress: {
  15. color: '#FF3333'
  16. }
  17. }
  18. };
  19. },
  20. onLoad: function(option) {
  21. if (option && option.name) {
  22. uni.setNavigationBarTitle({
  23. title:option.name
  24. });
  25. }
  26. this.url = this.Dever.data('web_view');
  27. this.title = this.Dever.data('web_view_title');
  28. },
  29. onShow: function() {},
  30. methods: {
  31. callback(e) {
  32. },
  33. }
  34. };
  35. </script>
  36. <style>
  37. </style>