website.vue 438 B

123456789101112131415161718192021222324252627
  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 = url;
  17. this.fnSetPageTitle(title);
  18. }
  19. };
  20. </script>
  21. <style scoped>
  22. .app-page {
  23. width: 100vw;
  24. }
  25. </style>