h5.vue 438 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. this.url=uni.getStorageSync('url');
  15. console.log(this.url)
  16. }
  17. }
  18. </script>
  19. <style scoped lang="scss">
  20. page{
  21. height: 100%;
  22. }
  23. .content{
  24. width: 100%;
  25. height: 100%;
  26. display: flex;
  27. align-items: center;
  28. justify-content: center;
  29. }
  30. </style>