t-o-news-tab-1.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. <template>
  2. <view>
  3. <view class="tab">
  4. <view class="item" @click="change_active(1)">
  5. <view class="text" :class="active == 1?'active':''">安全管理</view>
  6. <view class="line" v-if="active == 1"></view>
  7. </view>
  8. <view class="item" @click="change_active(2)">
  9. <view class="text" :class="active == 2?'active':''">巡检维护</view>
  10. <view class="line" v-if="active == 2"></view>
  11. </view>
  12. <view class="item" @click="change_active(3)">
  13. <view class="text" :class="active == 3?'active':''">党建经营</view>
  14. <view class="line" v-if="active == 3"></view>
  15. </view>
  16. <view class="item" @click="change_active(4)">
  17. <view class="text" :class="active == 4?'active':''">其他</view>
  18. <view class="line" v-if="active == 4"></view>
  19. </view>
  20. </view>
  21. <view class="list">
  22. <view class="item" v-for="item in 2">
  23. <view class="title">五定表</view>
  24. <scroll-view scroll-x>
  25. <view class="inner">
  26. <view class="line">
  27. <view class="box">
  28. <view class="text text_1">序号</view>
  29. </view>
  30. <view class="box">
  31. <view class="text text_2">检查时间</view>
  32. </view>
  33. <view class="box">
  34. <view class="text text_3">检查地点</view>
  35. </view>
  36. <view class="box">
  37. <view class="text text_4">检查人</view>
  38. </view>
  39. <view class="box">
  40. <view class="text text_5">问题类型</view>
  41. </view>
  42. <view class="box">
  43. <view class="text text_6">问题或隐患描述</view>
  44. </view>
  45. <view class="box">
  46. <view class="text text_7">整改措施</view>
  47. </view>
  48. <view class="box">
  49. <view class="text text_8">完成日期</view>
  50. </view>
  51. <view class="box">
  52. <view class="text text_9">详情</view>
  53. </view>
  54. </view>
  55. <view class="line" v-for="item in 5">
  56. <view class="icon">
  57. <image src="./icon/new.png" mode=""></image>
  58. </view>
  59. <view class="box">
  60. <view class="text text_1">{{item}}</view>
  61. </view>
  62. <view class="box">
  63. <view class="text text_2">2021-12-25</view>
  64. </view>
  65. <view class="box">
  66. <view class="text text_3">红柳机房</view>
  67. </view>
  68. <view class="box">
  69. <view class="text text_4">李建中、牛之星、李雅婷</view>
  70. </view>
  71. <view class="box">
  72. <view class="text text_5">标准化</view>
  73. </view>
  74. <view class="box">
  75. <view class="text text_6">问题或隐患描述问题或隐患描述问题或隐患描述问题或隐患描述问题或隐患描述问题或隐患描述问题或隐患描述问题或隐患描述
  76. </view>
  77. </view>
  78. <view class="box">
  79. <view class="text text_7">整改措施整改措施整改措施整改措施整改措施整改措施</view>
  80. </view>
  81. <view class="box">
  82. <view class="text text_8">2021-12-31</view>
  83. </view>
  84. <view class="box">
  85. <view class="text text_9">查看</view>
  86. </view>
  87. </view>
  88. </view>
  89. </scroll-view>
  90. <view class="btn">
  91. <view class="icon">
  92. <image src="./icon/btn.png" mode=""></image>
  93. </view>
  94. <view class="btn_text" @click="go_all_list()">点击查看全部信息</view>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. </template>
  100. <script>
  101. export default {
  102. name: "t-o-news-tab-1",
  103. data() {
  104. return {
  105. active: 1
  106. };
  107. },
  108. methods: {
  109. change_active(item) {
  110. this.active = item
  111. },
  112. go_all_list(){
  113. uni.navigateTo({
  114. url:"../../origanization/news/tab_1/all_list/all_list"
  115. })
  116. }
  117. }
  118. }
  119. </script>
  120. <style lang="scss">
  121. .tab {
  122. display: flex;
  123. justify-content: space-around;
  124. align-items: center;
  125. background-color: #FFFFFF;
  126. margin-bottom: 20rpx;
  127. height: 90rpx;
  128. .item {
  129. position: relative;
  130. .text {
  131. font-size: 30rpx;
  132. color: #666666;
  133. }
  134. .active {
  135. font-weight: 700;
  136. color: #000000;
  137. }
  138. .line {
  139. position: absolute;
  140. bottom: -15rpx;
  141. left: 50%;
  142. transform: translateX(-30rpx);
  143. width: 60rpx;
  144. height: 4rpx;
  145. background-color: #009FE8;
  146. }
  147. }
  148. }
  149. .list {
  150. box-sizing: border-box;
  151. padding: 0 25rpx;
  152. .item {
  153. margin-bottom: 20rpx;
  154. width: 700rpx;
  155. background-color: #FFFFFF;
  156. border-radius: 20rpx;
  157. box-sizing: border-box;
  158. padding: 0 25rpx;
  159. padding-bottom: 20rpx;
  160. .title {
  161. text-align: center;
  162. height: 120rpx;
  163. line-height: 120rpx;
  164. font-size: 40rpx;
  165. font-weight: 700;
  166. }
  167. .inner {
  168. .line {
  169. display: flex;
  170. align-items: center;
  171. position: relative;
  172. .icon{
  173. position: absolute;
  174. top: -10rpx;
  175. right: 0;
  176. image{
  177. width: 33rpx;
  178. height: 18rpx;
  179. }
  180. }
  181. .box {
  182. display: flex;
  183. align-items: center;
  184. height: 90rpx;
  185. box-sizing: border-box;
  186. border: 1rpx solid #D9D9D9;
  187. .text {
  188. font-size: 26rpx;
  189. color: #333333;
  190. text-align: center;
  191. text-overflow: -o-ellipsis-lastline;
  192. overflow: hidden;
  193. text-overflow: ellipsis;
  194. display: -webkit-box;
  195. -webkit-line-clamp: 2;
  196. line-clamp: 2;
  197. -webkit-box-orient: vertical;
  198. }
  199. .text_1 {
  200. width: 80rpx;
  201. }
  202. .text_2 {
  203. width: 220rpx;
  204. }
  205. .text_3 {
  206. width: 200rpx;
  207. }
  208. .text_4 {
  209. width: 400rpx;
  210. }
  211. .text_5 {
  212. width: 200rpx;
  213. }
  214. .text_6 {
  215. width: 500rpx;
  216. }
  217. .text_7 {
  218. width: 500rpx;
  219. }
  220. .text_8 {
  221. width: 200rpx;
  222. }
  223. .text_9 {
  224. width: 200rpx;
  225. }
  226. }
  227. }
  228. .line:nth-child(1) {
  229. .box {
  230. height: 80rpx;
  231. background-color: #D8D8D8;
  232. .text {
  233. font-size: 28rpx;
  234. color: #000000;
  235. }
  236. }
  237. }
  238. }
  239. .btn {
  240. margin: 20rpx auto;
  241. width: 400rpx;
  242. height: 50rpx;
  243. background-color: #69BBFA;
  244. border-radius: 50rpx;
  245. display: flex;
  246. align-items: center;
  247. justify-content: center;
  248. .icon {
  249. image {
  250. width: 23rpx;
  251. height: 24rpx;
  252. display: block;
  253. }
  254. }
  255. .btn_text {
  256. margin-left: 10rpx;
  257. font-size: 28rpx;
  258. color: #FFFFFF;
  259. }
  260. }
  261. }
  262. }
  263. </style>