h5.vue 442 B

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