rectificationNotice.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <view class="rectification_notice" v-if="data!=null">
  3. <uni-title type="h1" title="整改通知" align="center" class="rectification_notice_title"></uni-title>
  4. <view class="rectification_notice_content">
  5. <view v-for="(item,index) in noticeList" class="rectification_notice_content_text">
  6. {{(index+1)+". "+item}}
  7. </view>
  8. </view>
  9. <view class="rectification_notice_bottom">
  10. <view class="rectification_notice_deadline">
  11. 整改截止日期: {{props.data.endTime}}
  12. </view>
  13. <view class="rectification_notice_date">
  14. {{props.data.createTime}}
  15. </view>
  16. <view class="rectification_notice_button">
  17. <button class="button" @click="know">我知道了</button>
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script setup>
  23. import { onShow } from "@dcloudio/uni-app";
  24. import { computed } from "vue";
  25. const props=defineProps({
  26. know:Function,
  27. data:Object
  28. })
  29. const noticeList=computed(()=>{
  30. return props.data.rectificationItems.slice(0,-1).split("^^")
  31. })
  32. </script>
  33. <style lang="scss" scoped>
  34. .rectification_notice{
  35. height: 800rpx;
  36. width: 600rpx;
  37. background-image: url('../../../../static/rectification_notice.png');
  38. background-size: cover;
  39. background-repeat: no-repeat;
  40. background-attachment: fixed;
  41. border-radius: 10rpx;
  42. .rectification_notice_title{
  43. padding-top: 110rpx;
  44. }
  45. .rectification_notice_content{
  46. padding: 10rpx 50rpx;
  47. height: 200rpx;
  48. overflow-y: auto;
  49. .rectification_notice_content_text{
  50. font-size: 16px;
  51. font-weight: 400;
  52. text-align: left;
  53. word-break:break-all;
  54. }
  55. }
  56. .rectification_notice_bottom{
  57. .rectification_notice_deadline{
  58. padding: 80rpx 50rpx 40rpx;
  59. font-size: 12px;
  60. }
  61. .rectification_notice_date{
  62. padding-right: 60rpx;
  63. font-size: 12px;
  64. text-align: right;
  65. }
  66. .rectification_notice_button{
  67. padding: 20rpx 50rpx;
  68. .button{
  69. margin-top: 10rpx;
  70. border-radius: 5px;
  71. color: rgba(255, 255, 255, 1);
  72. background: linear-gradient(90deg, rgba(190, 163, 117, 1) 0%, rgba(190, 163, 117, 0.8) 100%);
  73. }
  74. }
  75. }
  76. }
  77. </style>