1
0

noticeFile.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <template>
  2. <scroll-view>
  3. <view class="detail content">
  4. <view class="title">通知公告</view>
  5. <u-line length="95%" margin="auto" color="#000"/>
  6. <scroll-view scroll-y="true" style="padding: 30rpx 60rpx;box-sizing: border-box;height: calc(100vh - 900rpx);">
  7. <view v-for="(it,idx) in info" class="detailItem">
  8. <view>{{it.subTitle}}</view>
  9. <view>{{it.time}}</view>
  10. </view>
  11. </scroll-view>
  12. </view>
  13. <view class="overview content">
  14. <view class="title">已发布文件</view>
  15. <view class="cardList">
  16. <view v-for="(it,idx) in cardList" :key="idx" :style="{'background-color':it.color}" class="card">
  17. <view :style="{'background': it.iconColor}">
  18. <image :src="it.icon"></image>
  19. </view>
  20. <view>{{it.text}}</view>
  21. </view>
  22. </view>
  23. </view>
  24. </scroll-view>
  25. </template>
  26. <script setup>
  27. import {ref} from "vue";
  28. const info = ref([
  29. {
  30. "subTitle": "深化政治监督 提升履职能力",
  31. "time": "2026-50-10"
  32. },
  33. {
  34. "subTitle": "关于8月份宣传报道情况的通报及 9月份宣传重点安排",
  35. "time": "2026-50-10"
  36. }
  37. ])
  38. const cardList = ref([
  39. {
  40. icon: "../../static/notice/u31.svg",
  41. iconColor: "linear-gradient(to bottom, rgb(0,196,213), rgb(0,218,151))",
  42. text: "党建工作",
  43. color: "rgb(200,245,225)"
  44. },
  45. {
  46. icon: "../../static/notice/u32.svg",
  47. iconColor: "linear-gradient(to bottom, rgb(53,153,253), rgb(137,100,244))",
  48. text: "委发文件",
  49. color: "rgb(255,219,224)"
  50. },
  51. {
  52. icon: "../../static/notice/u33.svg",
  53. iconColor: "linear-gradient(to bottom, rgb(0,136,255), rgb(0,181,255))",
  54. text: "行政工作",
  55. color: "rgb(207,232,245)"
  56. },
  57. {
  58. icon: "../../static/notice/u34.svg",
  59. iconColor: "linear-gradient(to bottom, rgb(226,76,246), rgb(254,86,224))",
  60. text: "相关知识",
  61. color: "rgb(255,236,207)"
  62. }
  63. ])
  64. </script>
  65. <style lang="scss" scoped>
  66. body{
  67. background-color: #0063d0;
  68. }
  69. .content{
  70. margin: 50rpx;
  71. background-color: #fff;
  72. border-radius: 20rpx;
  73. width: calc(100vw - 100rpx);
  74. }
  75. .title{
  76. padding: 30rpx 60rpx;
  77. font-size: 50rpx;
  78. font-weight: 600;
  79. }
  80. .detail{
  81. height: calc(100vh - 750rpx);
  82. .detailItem{
  83. display: flex;
  84. justify-content: space-between;
  85. font-size: 40rpx;
  86. >uni-view{
  87. margin: 20rpx 0;
  88. }
  89. }
  90. }
  91. .overview{
  92. height: 500rpx;
  93. .cardList{
  94. height: 50%;
  95. border-radius: 10rpx;
  96. display: flex;
  97. justify-content: space-around;
  98. .card{
  99. width: 23%;
  100. display: flex;
  101. justify-content: center;
  102. align-items: center;
  103. font-weight: 500;
  104. border-radius: 10rpx;
  105. >uni-view:nth-of-type(1){
  106. width: 150rpx;
  107. height: 150rpx;
  108. margin-right: 100rpx;
  109. border-radius: 20rpx;
  110. display: flex;
  111. justify-content: center;
  112. align-items: center;
  113. }
  114. uni-image{
  115. width: 70rpx;
  116. height: 70rpx;
  117. }
  118. }
  119. }
  120. }
  121. </style>