t-o-news-tab-2.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <template>
  2. <view>
  3. <view class="list">
  4. <view class="item" v-for="item in 2">
  5. <view class="title">
  6. <view class="text">车辆管理</view>
  7. <view class="tip">24</view>
  8. </view>
  9. <view class="inner">
  10. <view class="left">
  11. <view class="user">
  12. <image
  13. src="https://cdn.colorhub.me/OLRn1jRkVXSyDzRLt-5hqPSEhOiCBanlo1pfEgG44dE/rs:fill:280:280:0/g:sm/bG9jYWw6Ly8vM2Iv/NTAvMTliNzNiMDY5/MjQ0YThlMDgyMzE0/MzcyMjg1ZWMxYTJh/YzRiM2I1MC5qcGVn.jpg"
  14. mode="aspectFill"></image>
  15. </view>
  16. </view>
  17. <view class="right">
  18. <view class="name">李建中<text>信息化站</text></view>
  19. <view class="text">
  20. 在“车辆管理”中“司机出车记录”内新增内容。
  21. </view>
  22. <view class="img_box">
  23. <view class="img" v-for="item in 4">
  24. <image
  25. src="https://cdn.colorhub.me/nxoruPZz2k8PIvdAOR7RPo_kI_o87nj9CEksLl_KUSE/rs:fill:280:280:0/g:sm/bG9jYWw6Ly8vNzIv/YWQvZmY2NzYzNWNh/ZGU3NTM1NTA5MzI0/MzAwYmI0M2QzZmNm/MDNkNzJhZC5qcGVn.jpg"
  26. mode="aspectFill"></image>
  27. </view>
  28. </view>
  29. <view class="time">2021-12-14 08:32:56</view>
  30. <view class="btn">
  31. <view class="icon">
  32. <image src="./icon/btn.png" mode=""></image>
  33. </view>
  34. <view class="btn_text" @click="go_all_list()">点击查看全部信息</view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </template>
  42. <script>
  43. export default {
  44. name: "t-o-news-tab-2",
  45. data() {
  46. return {
  47. };
  48. },
  49. methods:{
  50. go_all_list(){
  51. uni.navigateTo({
  52. url:"../../origanization/news/tab_2/all_list/all_list"
  53. })
  54. }
  55. }
  56. }
  57. </script>
  58. <style lang="scss">
  59. .list {
  60. box-sizing: border-box;
  61. padding: 0 25rpx;
  62. .item {
  63. margin-bottom: 20rpx;
  64. width: 700rpx;
  65. background-color: #FFFFFF;
  66. border-radius: 20rpx;
  67. box-sizing: border-box;
  68. padding: 0 25rpx;
  69. .title {
  70. display: flex;
  71. justify-content: center;
  72. align-items: center;
  73. .text {
  74. text-align: center;
  75. height: 120rpx;
  76. line-height: 120rpx;
  77. font-size: 40rpx;
  78. font-weight: 700;
  79. }
  80. .tip {
  81. margin-left: 10rpx;
  82. width: 64rpx;
  83. height: 30rpx;
  84. color: red;
  85. text-align: right;
  86. font-size: 24rpx;
  87. background-image: url(./icon/new.png);
  88. background-size: 43rpx 30rpx;
  89. background-repeat: no-repeat;
  90. }
  91. }
  92. .inner {
  93. width: 650rpx;
  94. display: flex;
  95. .left {
  96. .user {
  97. image {
  98. width: 90rpx;
  99. height: 90rpx;
  100. border-radius: 50%;
  101. }
  102. }
  103. }
  104. .right {
  105. margin-left: 20rpx;
  106. width: 600rpx;
  107. .name {
  108. margin-top: 5rpx;
  109. font-size: 32rpx;
  110. text {
  111. margin-left: 20rpx;
  112. font-size: 26rpx;
  113. color: #3a3a3a;
  114. }
  115. }
  116. .text {
  117. width: 550rpx;
  118. margin-top: 10rpx;
  119. font-size: 28rpx;
  120. }
  121. .img_box {
  122. margin-top: 20rpx;
  123. width: 550rpx;
  124. overflow: hidden;
  125. .img {
  126. margin-bottom: 10rpx;
  127. float: left;
  128. margin-right: 20rpx;
  129. image {
  130. width: 170rpx;
  131. height: 170rpx;
  132. border-radius: 10rpx;
  133. }
  134. }
  135. .img:nth-child(3n) {
  136. margin-right: 0;
  137. }
  138. }
  139. .time {
  140. font-size: 24rpx;
  141. color: #999999;
  142. }
  143. .btn {
  144. margin: 20rpx auto;
  145. width: 400rpx;
  146. height: 50rpx;
  147. background-color: #69BBFA;
  148. border-radius: 50rpx;
  149. display: flex;
  150. align-items: center;
  151. justify-content: center;
  152. .icon {
  153. image {
  154. width: 23rpx;
  155. height: 24rpx;
  156. display: block;
  157. }
  158. }
  159. .btn_text {
  160. margin-left: 10rpx;
  161. font-size: 28rpx;
  162. color: #FFFFFF;
  163. }
  164. }
  165. }
  166. }
  167. }
  168. }
  169. </style>