h5.vue 508 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <view>
  3. <web-view :src="url"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. const app = getApp();
  8. export default {
  9. data() {
  10. return {
  11. url: '',
  12. };
  13. },
  14. onLoad: function(e) {
  15. this.url = e.url;
  16. },
  17. methods: {},
  18. /**
  19. * 页面相关事件处理函数--监听用户下拉动作
  20. */
  21. onPullDownRefresh: function() {
  22. setTimeout(() => {
  23. uni.stopPullDownRefresh()
  24. }, 200);
  25. },
  26. };
  27. </script>
  28. <style>
  29. page {
  30. background-color: #fafafa;
  31. font-size: 32rpx;
  32. }
  33. </style>