news_old.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. <template>
  2. <view>
  3. <view class="tab_box">
  4. <view class="tab_list">
  5. <view class="item" :class="active===1?'active':''" @click="clickTab(1)">
  6. <view class="icon">
  7. <image src="./icon/icon_1.png" mode=""></image>
  8. </view>
  9. <view class="title">闭环管理</view>
  10. <view class="tips">项目进度管理</view>
  11. </view>
  12. <view class="item" :class="active===2?'active':''" @click="clickTab(2)">
  13. <view class="icon">
  14. <image src="./icon/icon_2.png" mode=""></image>
  15. </view>
  16. <view class="title">记录合集</view>
  17. <view class="tips">全部消息一览</view>
  18. </view>
  19. <view class="item" :class="active===3?'active':''" @click="clickTab(3)">
  20. <view class="icon">
  21. <image src="./icon/icon_3.png" mode=""></image>
  22. </view>
  23. <view class="title">我的记录</view>
  24. <view class="tips">记录日志一览</view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="line"></view>
  29. <view v-if="active === 1" class="list1">
  30. <view class="list">
  31. <view class="item">
  32. <view class="item_l">
  33. <view class="day">06</view>
  34. <view class="month">05月</view>
  35. <view class="name">杨海军</view>
  36. </view>
  37. <view class="item_r">
  38. <view class="inner1">名称:车辆申请记录</view>
  39. <view class="inner2">
  40. <text class="inner_title">申请用车科室:</text>
  41. <text class="inner_content">信息化站</text>
  42. </view>
  43. <view class="inner3">
  44. <text class="inner_title">申请车辆:</text>
  45. <text class="inner_content">福特-宁AJT326</text>
  46. </view>
  47. <view class="icon"></view>
  48. </view>
  49. </view>
  50. <view class="item">
  51. <view class="item_l" style="background-color: #E74C3C;">
  52. <view class="day">06</view>
  53. <view class="month">05月</view>
  54. <view class="name">杨海军</view>
  55. </view>
  56. <view class="item_r">
  57. <view class="inner1">名称:车辆申请记录</view>
  58. <view class="inner2">
  59. <text class="inner_title">申请用车科室:</text>
  60. <text class="inner_content">信息化站</text>
  61. </view>
  62. <view class="inner3">
  63. <text class="inner_title">申请车辆:</text>
  64. <text class="inner_content">福特-宁AJT326</text>
  65. </view>
  66. <view class="icon"></view>
  67. </view>
  68. </view>
  69. <view class="item">
  70. <view class="item_l">
  71. <view class="day">06</view>
  72. <view class="month">05月</view>
  73. <view class="name">杨海军</view>
  74. </view>
  75. <view class="item_r">
  76. <view class="inner1">名称:车辆申请记录</view>
  77. <view class="inner2">
  78. <text class="inner_title">申请用车科室:</text>
  79. <text class="inner_content">信息化站</text>
  80. </view>
  81. <view class="inner3">
  82. <text class="inner_title">申请车辆:</text>
  83. <text class="inner_content">福特-宁AJT326</text>
  84. </view>
  85. <view class="icon"></view>
  86. </view>
  87. </view>
  88. </view>
  89. </view>
  90. <view v-if="active === 2" class="list2">
  91. 记录合集
  92. <view class="list_box">
  93. <view class="list_title">
  94. </view>
  95. <view class="list_inner"></view>
  96. </view>
  97. <view class="list_box"></view>
  98. </view>
  99. <view v-if="active === 3" class="list3">我的记录</view>
  100. </view>
  101. </template>
  102. <script>
  103. export default {
  104. data() {
  105. return {
  106. active:1,
  107. };
  108. },
  109. methods:{
  110. clickTab(active){
  111. this.active = active
  112. }
  113. }
  114. }
  115. </script>
  116. <style lang="scss">
  117. .tab_box{
  118. height: 219rpx;
  119. .tab_list{
  120. padding-top: 33rpx;
  121. display: flex;
  122. justify-content: space-between;
  123. .item{
  124. width: 230rpx;
  125. text-align: center;
  126. .icon{
  127. image{
  128. transition: 1s;
  129. width: 70rpx;
  130. height: 70rpx;
  131. }
  132. }
  133. .title{
  134. transition: 1s;
  135. height: 34rpx;
  136. font-size: 25rpx;
  137. font-family: PingFangSC-Medium, PingFang SC;
  138. font-weight: 500;
  139. color: #BDC3C7;
  140. line-height: 34rpx;
  141. }
  142. .tips{
  143. transition: 1s;
  144. height: 29rpx;
  145. font-size: 21rpx;
  146. font-family: PingFangSC-Regular, PingFang SC;
  147. font-weight: 400;
  148. color: #A2A4A6;
  149. line-height: 29rpx;
  150. }
  151. }
  152. .active{
  153. .icon{
  154. image{
  155. width: 90rpx;
  156. height: 90rpx;
  157. }
  158. }
  159. .title{
  160. height: 42rpx;
  161. font-size: 29rpx;
  162. font-family: PingFangSC-Medium, PingFang SC;
  163. font-weight: 500;
  164. color: #2C3E50;
  165. line-height: 42rpx;
  166. }
  167. .tips{
  168. height: 34rpx;
  169. font-size: 25rpx;
  170. font-family: PingFangSC-Regular, PingFang SC;
  171. font-weight: 400;
  172. color: #A2A4A6;
  173. line-height: 34rpx;
  174. }
  175. }
  176. }
  177. }
  178. .line{
  179. width: 100%;
  180. height: 22rpx;
  181. background-color: #f0f0f0;
  182. }
  183. .list1{
  184. background-color: #f6f6f6;
  185. box-sizing: border-box;
  186. padding-top: 19rpx;
  187. padding-left: 24rpx;
  188. padding-right: 24rpx;
  189. .list{
  190. .item{
  191. margin-bottom: 21rpx;
  192. background-color: #fff;
  193. display: flex;
  194. height: 175rpx;
  195. border-radius: 10rpx;
  196. .item_l{
  197. box-sizing: border-box;
  198. padding-top: 10rpx;
  199. padding-left: 22rpx;
  200. padding-right: 12rpx;
  201. width: 171rpx;
  202. height: 175rpx;
  203. background: #3498DB;
  204. border-radius: 10rpx;
  205. .day{
  206. height: 68rpx;
  207. font-size: 48rpx;
  208. font-family: PingFangSC-Medium, PingFang SC;
  209. font-weight: 500;
  210. color: #FFFFFF;
  211. line-height: 68rpx;
  212. }
  213. .month{
  214. text-align: right;
  215. height: 44rpx;
  216. font-size: 31rpx;
  217. font-family: PingFangSC-Medium, PingFang SC;
  218. font-weight: 500;
  219. color: #FFFFFF;
  220. line-height: 44rpx;
  221. }
  222. .name{
  223. text-align: center;
  224. height: 47rpx;
  225. font-size: 33rpx;
  226. font-family: PingFangSC-Medium, PingFang SC;
  227. font-weight: 500;
  228. color: #FFFFFF;
  229. line-height: 47rpx;
  230. }
  231. }
  232. .item_r{
  233. position: relative;
  234. width: 531rpx;
  235. box-sizing: border-box;
  236. padding-top: 14rpx;
  237. margin-left: 12rpx;
  238. .inner1{
  239. margin-bottom: 12rpx;
  240. height: 42rpx;
  241. font-size: 29rpx;
  242. font-family: PingFangSC-Regular, PingFang SC;
  243. font-weight: 400;
  244. color: #2C3E50;
  245. line-height: 42rpx;
  246. }
  247. .inner2{
  248. margin-bottom: 12rpx;
  249. height: 42rpx;
  250. font-size: 29rpx;
  251. font-family: PingFangSC-Regular, PingFang SC;
  252. font-weight: 400;
  253. color: #2C3E50;
  254. line-height: 42rpx;
  255. .inner_title{
  256. }
  257. .inner_content{
  258. color: #E74C3C;
  259. }
  260. }
  261. .inner3{
  262. height: 42rpx;
  263. font-size: 29rpx;
  264. font-family: PingFangSC-Regular, PingFang SC;
  265. font-weight: 400;
  266. color: #2C3E50;
  267. line-height: 42rpx;
  268. .inner_title{
  269. }
  270. .inner_content{
  271. color: #E74C3C;
  272. }
  273. }
  274. .icon{
  275. position: absolute;
  276. top: 0;
  277. right: 24rpx;
  278. width: 40rpx;
  279. height: 51rpx;
  280. background-image: url(icon/list1.png);
  281. background-size: cover;
  282. background-repeat: no-repeat;
  283. }
  284. }
  285. }
  286. }
  287. }
  288. </style>