reportDetail.vue 498 B

123456789101112131415161718192021
  1. <template>
  2. <web-view :src="url"></web-view>
  3. </template>
  4. <script>
  5. import {h5BaseUrl} from '@/utils/config'
  6. export default {
  7. data () {
  8. return {
  9. url:''
  10. }
  11. },
  12. onLoad(options) {
  13. let reportId=options.reportId
  14. const timestamp=new Date().getTime()
  15. const token=this.$store.state.user.token
  16. this.url=`${h5BaseUrl}/hzyb/report/detail?reportId=${reportId}&token=${token}&timestamp=${timestamp}#wechat_redirect`
  17. },
  18. }
  19. </script>