webView.vue 569 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <web-view :src="webViewUrl"></web-view>
  3. </template>
  4. <script>
  5. import { mapState, mapMutations } from 'vuex';
  6. export default {
  7. data() {
  8. return {
  9. };
  10. },
  11. //第一次加载
  12. onLoad(e) {
  13. },
  14. //页面显示
  15. onShow() {},
  16. computed: {
  17. ...mapState(['webViewUrl'])
  18. },
  19. //方法
  20. methods: {},
  21. //页面隐藏
  22. onHide() {},
  23. //页面卸载
  24. onUnload() {},
  25. //页面下来刷新
  26. onPullDownRefresh() {},
  27. //页面上拉触底
  28. onReachBottom() {},
  29. //用户点击分享
  30. onShareAppMessage(e) {
  31. return this.wxShare();
  32. }
  33. };
  34. </script>
  35. <style scoped>
  36. </style>