猎豆优选小程序

webView.vue 529B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <view>
  3. <!-- <u-navbar class="navbar-wrap" :is-back="true" :title="title" :background="background" title-color="#ffffff" back-icon-color="#ffffff" /> -->
  4. <web-view :src="url"></web-view>
  5. </view>
  6. </template>
  7. <script>
  8. const app = getApp()
  9. export default {
  10. data() {
  11. return {
  12. background: app.globalData.navbarBackground,
  13. url:'',
  14. title:''
  15. }
  16. },
  17. onLoad(params) {
  18. this.url = decodeURIComponent(params.url)
  19. this.title = params.title;
  20. },
  21. methods: {
  22. }
  23. }
  24. </script>
  25. <style>
  26. </style>