web.vue 536 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <view class="content">
  3. <web-view :src="url"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. url:"",
  11. }
  12. },
  13. onLoad(val) {
  14. // 待解析的完整 URL
  15. // const fullUrl = uni.getStorageSync('url');
  16. // this.url=this.utils.getUrl(fullUrl);
  17. this.url=uni.getStorageSync('url');
  18. }
  19. }
  20. </script>
  21. <style scoped lang="scss">
  22. page{
  23. height: 100%;
  24. }
  25. .content{
  26. width: 100%;
  27. height: 100%;
  28. display: flex;
  29. align-items: center;
  30. justify-content: center;
  31. }
  32. </style>