rectificationNotice.vue 1.7 KB

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