reportRevolve.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <view class="container reportRevolve-container">
  3. <web-view :src="reportUrl" v-if="reportUrl"> </web-view>
  4. <!-- <cover-view class="clear-view">
  5. <cover-image class="clear-icon" @click="isClearHandler" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/close-icon.png"></cover-image>
  6. </cover-view> -->
  7. </view>
  8. </template>
  9. <script>
  10. import { Report, User, Reports, FreeButton } from "@/config/api.js";
  11. import { reportStrategyUrl } from "@/config/config";
  12. let app = getApp({ allowDefault: true });
  13. export default {
  14. data() {
  15. return {
  16. reportUrl: "",
  17. };
  18. },
  19. computed: {},
  20. methods: {
  21. isClearHandler() {
  22. uni.navigateBack();
  23. },
  24. },
  25. onLoad(option) {
  26. this.reportUrl = option.url + "?token=" + option.user;
  27. console.log(option, this.reportUrl);
  28. },
  29. };
  30. </script>
  31. <style lang="scss" scoped>
  32. .reportRevolve-container {
  33. .clear-view {
  34. position: fixed;
  35. width: 100%;
  36. height: 60rpx;
  37. z-index: 99999;
  38. font-size: 24rpx;
  39. box-sizing: border-box;
  40. left: 80rpx;
  41. top: 16rpx;
  42. .clear-icon {
  43. width: 20rpx;
  44. height: 20rpx;
  45. z-index: 99999;
  46. }
  47. }
  48. // padding-bottom: 200rpx;
  49. // padding-bottom: calc(200rpx + constant(safe-area-inset-bottom));
  50. // padding-bottom: calc(200rpx + env(safe-area-inset-bottom));
  51. }
  52. </style>