<template>
   <web-view :src="src" bindload='pageLoad'></web-view>
</template>

<script>
export default {
  name: 'h5Page',
  props: {
    src: {
      type: [String]
    }
  },
  data() {
  },
  methods: {
    pageLoad (){
       wx.hideLoading()
    }
  },
  onHide() {
  },
  onUnload() {
  },
  onShow() {
  },
  onLoad(options) {
     wx.showLoading({
       title: '加载中',
     })
     console.log(options.src)
     this.src = options.src

     setTimeout(function() {
       wx.hideLoading()
     }, 3000);
  }
};
</script>

<style lang="stylus">

</style>
