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

<script>
export default {
  name: 'checkReport',
  data() {
  	return {
  		src: ''
  	}
  },
  methods: {
    pageLoad (){
       uni.hideLoading()
    }
  },
  onLoad(options) {
	 console.log(options)
     uni.showLoading({
       title: '加载中',
     })
	 const baseUrl = getApp().globalData.baseUrl.replace('beauty-customer/','')
	 const url = baseUrl.indexOf('.test.')>=0 ? 'https://md.test.baibaibai.net/' : 'https://md.baibaibai.net/'
     this.src = url+"checkReport/index/mini/"+options.id
     setTimeout(function() {
       uni.hideLoading()
     }, 5000);
  }
};
</script>

<style lang="stylus">

</style>
