webview.vue 863 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <view>
  3. <!--#ifdef APP-PLUS-->
  4. <view class="lz-status_bar">
  5. <view class="lz-top_view"></view>
  6. </view>
  7. <!--#endif-->
  8. <!-- #ifndef MP-WEIXIN -->
  9. <view class="kaoshi-head">
  10. <view class="kaoshi-head-top">
  11. <view class="kaoshi-head-left" @tap="$navigateBack">
  12. <view class="iconfont icon-zuojiantou"></view>
  13. </view>
  14. <view class="kaoshi-head-m">{{title}}</view>
  15. </view>
  16. </view>
  17. <!--#endif-->
  18. <web-view :src="url" style="top: 51px;"></web-view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. url: '',
  26. title: '',
  27. }
  28. },
  29. onShow() {
  30. // console.log(uni.getWindowInfo())
  31. },
  32. onLoad(opts) {
  33. if (opts.url) {
  34. this.url = opts.url
  35. if (opts.title == '') {
  36. this.title = '详情'
  37. } else {
  38. this.title = opts.title
  39. }
  40. }
  41. },
  42. }
  43. </script>
  44. <style>
  45. </style>