detail.vue 702 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <web-view :src="src" bindload='pageLoad'></web-view>
  3. </template>
  4. <script>
  5. export default {
  6. name: 'checkReport',
  7. data() {
  8. return {
  9. src: ''
  10. }
  11. },
  12. methods: {
  13. pageLoad (){
  14. uni.hideLoading()
  15. }
  16. },
  17. onLoad(options) {
  18. console.log(options)
  19. uni.showLoading({
  20. title: '加载中',
  21. })
  22. const baseUrl = getApp().globalData.baseUrl.replace('beauty-customer/','')
  23. const url = baseUrl.indexOf('.test.')>=0 ? 'https://md.test.baibaibai.net/' : 'https://md.baibaibai.net/'
  24. this.src = url+"checkReport/index/mini/"+options.id
  25. setTimeout(function() {
  26. uni.hideLoading()
  27. }, 5000);
  28. }
  29. };
  30. </script>
  31. <style lang="stylus">
  32. </style>