index.vue 995 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <view class="content">
  3. <web-view :src="src"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. id: null,
  11. title: null,
  12. option: {},
  13. show: false,
  14. page: 1,
  15. limit: 10,
  16. recordList: [],
  17. src: null
  18. }
  19. },
  20. onLoad(options) {
  21. this.id = options.id
  22. this.title = options.title
  23. this.src = `/static/webview/report-wv.html?id=${this.id}`
  24. },
  25. onReady() {
  26. setTimeout(()=>{
  27. uni.setNavigationBarTitle({
  28. title: this.title
  29. });
  30. },500)
  31. },
  32. methods: {
  33. //返回按钮
  34. handelBack() {
  35. uni.switchTab({
  36. url: '/pages/reportForm/index'
  37. });
  38. },
  39. }
  40. }
  41. </script>
  42. <style lang="scss" scoped>
  43. ::v-deep .luckysheet_info_detail_back {
  44. display: none !important;
  45. }
  46. ::v-deep .u-button {
  47. width: 160rpx;
  48. height: 60rpx
  49. }
  50. .btn {
  51. position: absolute;
  52. left: 50%;
  53. bottom: 2%;
  54. margin-left: -80rpx;
  55. }
  56. .uni-td {
  57. width: 600rpx;
  58. overflow: hidden;
  59. text-overflow: ellipsis;
  60. }
  61. </style>