reportingByFarmers.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <template>
  2. <view class="container">
  3. <!-- 空状态图标区域 -->
  4. <view class="empty-icon">
  5. <view class="file-icon">
  6. <view class="file-corner"></view>
  7. <view class="file-line"></view>
  8. <view class="file-line"></view>
  9. </view>
  10. <view class="warn-icon">
  11. <text>!</text>
  12. </view>
  13. </view>
  14. <!-- 提示文字 -->
  15. <view class="tip-text">还未上报延包摸底数据</view>
  16. <!-- 操作按钮 -->
  17. <view class="btn-wrap">
  18. <button class="submit-btn" @click="goToReport">去上报</button>
  19. </view>
  20. </view>
  21. </template>
  22. <script setup lang="ts">
  23. import { onLoad } from '@dcloudio/uni-app';
  24. import { ref } from 'vue';
  25. const getCbfbmjump = ref([]);
  26. // 导入后即可正常使用 onLoad
  27. onLoad((options) => {
  28. getCbfbmjump.value = JSON.parse(decodeURIComponent(options.groupInfo));
  29. console.log(222, getCbfbmjump.value)
  30. });
  31. const goToReport = () => {
  32. console.log(1123,getCbfbmjump.value)
  33. // 跳转到上报页面,根据实际路由修改
  34. uni.navigateTo({
  35. url: `/pages/Escalation/index?groupInfo=${encodeURIComponent(JSON.stringify(getCbfbmjump.value))}`
  36. })
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. .container {
  41. display: flex;
  42. flex-direction: column;
  43. align-items: center;
  44. justify-content: center;
  45. min-height: 100vh;
  46. background-color: #fff;
  47. padding: 0 60rpx;
  48. }
  49. .empty-icon {
  50. position: relative;
  51. width: 200rpx;
  52. height: 200rpx;
  53. margin-bottom: 60rpx;
  54. .file-icon {
  55. width: 160rpx;
  56. height: 200rpx;
  57. background-color: #e5e5e5;
  58. border-radius: 8rpx;
  59. position: relative;
  60. .file-corner {
  61. position: absolute;
  62. top: 0;
  63. right: 0;
  64. width: 40rpx;
  65. height: 40rpx;
  66. background-color: #fff;
  67. clip-path: polygon(100% 0, 0 0, 100% 100%);
  68. }
  69. .file-line {
  70. width: 100rpx;
  71. height: 16rpx;
  72. background-color: #d5d5d5;
  73. border-radius: 8rpx;
  74. position: absolute;
  75. left: 30rpx;
  76. &:first-child {
  77. top: 60rpx;
  78. }
  79. &:last-child {
  80. top: 100rpx;
  81. }
  82. }
  83. }
  84. .warn-icon {
  85. width: 80rpx;
  86. height: 80rpx;
  87. background-color: #e5e5e5;
  88. border-radius: 50%;
  89. display: flex;
  90. align-items: center;
  91. justify-content: center;
  92. position: absolute;
  93. right: 0;
  94. bottom: 0;
  95. text {
  96. font-size: 40rpx;
  97. color: #fff;
  98. font-weight: bold;
  99. line-height: 80rpx;
  100. }
  101. }
  102. }
  103. .tip-text {
  104. font-size: 36rpx;
  105. color: #333;
  106. margin-bottom: 120rpx;
  107. }
  108. .btn-wrap {
  109. width: 100%;
  110. }
  111. .submit-btn {
  112. width: 100%;
  113. height: 88rpx;
  114. background-color: #007aff;
  115. color: #fff;
  116. border-radius: 44rpx;
  117. font-size: 32rpx;
  118. line-height: 88rpx;
  119. text-align: center;
  120. border: none;
  121. }
  122. </style>