skipone.vue 643 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <view class="">
  3. <web-view v-if="url1" :src="url1"></web-view>
  4. <!-- <iframe :src="url1"></iframe> -->
  5. <!-- <iframe :src="url" frameborder="0" style="width: 100%; height: 100vh;"></iframe> -->
  6. </view>
  7. </template>
  8. <script>
  9. var wv; //计划创建的webview
  10. export default {
  11. data() {
  12. return {
  13. url1: '',
  14. canBack: false,
  15. };
  16. },
  17. onLoad(options) {
  18. // console.log(options);
  19. this.url1 = decodeURIComponent(options.url);
  20. }
  21. }
  22. </script>
  23. <style lang="scss">
  24. .custom-back-button {
  25. position: fixed;
  26. top: 20px;
  27. left: 20px;
  28. background-color: #ffffff;
  29. padding: 10px;
  30. border-radius: 5px;
  31. }
  32. </style>