webView.vue 425 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <view>
  3. <web-view :src="src"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. src: '' //H5页面路径
  11. }
  12. },
  13. onLoad(option) {
  14. // console.log(option,'option')
  15. this.src = option.src
  16. // 开启分享
  17. uni.showShareMenu({
  18. withShareTicket: true,
  19. menus: ['shareAppMessage', 'shareTimeline']
  20. })
  21. },
  22. methods: {
  23. }
  24. }
  25. </script>
  26. <style>
  27. </style>