website.vue 493 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <view class="app-page">
  3. <web-view :src="webUrl"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. title: '',
  11. webUrl: ''
  12. };
  13. },
  14. onLoad(e) {
  15. const {title, url} = JSON.parse(e.query.data);
  16. this.webUrl = decodeURIComponent(url);
  17. if (title) {
  18. this.fnSetPageTitle(title);
  19. }
  20. }
  21. };
  22. </script>
  23. <style scoped>
  24. .app-page {
  25. width: 100vw;
  26. }
  27. </style>