webview.vue 650 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <uv-toast ref="toast"></uv-toast>
  3. <view class="">
  4. <navbar title="" :size="48" :backtext="$t('back')" color="#fff"></navbar>
  5. </view>
  6. <view class="app_content">
  7. <web-view :src="weburl" :update-title="false" :webview-styles="wvstyles"></web-view>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. data() {
  13. return {
  14. weburl:"",
  15. usetitle:'',
  16. wvstyles:{
  17. height:"100%",
  18. width:"100%",
  19. top:"10%"
  20. },
  21. }
  22. },
  23. onLoad: function (option) {
  24. this.$nextTick(()=>{
  25. this.weburl = option.weburl,
  26. this.usetitle = option.title
  27. })
  28. },
  29. methods: {
  30. }
  31. }
  32. </script>
  33. <style scoped>
  34. </style>