news.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  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="list-box">
  30. <view class="list">
  31. <view class="item">
  32. <view class="item_l">
  33. <view class="day">12月</view>
  34. <view class="month">07</view>
  35. <view class="name">杨海军</view>
  36. </view>
  37. <view class="item_r">
  38. <view class="inner">名称:车辆申请记录</view>
  39. <view class="inner">
  40. <text class="inner_title">申请用车科室:</text>
  41. <text class="inner_content">信息化站</text>
  42. </view>
  43. <view class="inner">
  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">12月</view>
  53. <view class="month">05</view>
  54. <view class="name">杨海军</view>
  55. </view>
  56. <view class="item_r">
  57. <view class="inner">名称:车辆申请记录</view>
  58. <view class="inner">
  59. <text class="inner_title">申请用车科室:</text>
  60. <text class="inner_content">信息化站</text>
  61. </view>
  62. <view class="inner">
  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">11月</view>
  72. <view class="month">05</view>
  73. <view class="name">杨海军</view>
  74. </view>
  75. <view class="item_r">
  76. <view class="inner">名称:机房检查</view>
  77. <view class="inner">
  78. <text class="inner_title">负责人:</text>
  79. <text class="inner_content">马明君</text>
  80. </view>
  81. <view class="icon"></view>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <view v-if="active === 2">
  87. <view class="section">
  88. <view class="section_title">公共:</view>
  89. <view class="section_content">
  90. <view class="list">
  91. <view class="item">
  92. <view class="left">宁东运营</view>
  93. <view class="right">
  94. <view class="name">宁东运营</view>
  95. <view class="inner">
  96. <view class="inner_left">
  97. <view class="inner_icon">
  98. <uni-icons type="star" color="#A2A4A6" size="16"></uni-icons>
  99. </view>
  100. <view class="inner_text">
  101. 在“车辆管理”中“计划派车情况”.....
  102. </view>
  103. </view>
  104. <view class="inner_time">
  105. 33分钟前
  106. </view>
  107. </view>
  108. </view>
  109. <view class="icon_badge">
  110. <uni-badge text="3" type="error" size="small"></uni-badge>
  111. </view>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. <view class="section">
  117. <view class="section_title" style="padding-top: 22rpx;">机关部室:</view>
  118. <view class="section_content">
  119. <view class="list">
  120. <view class="item">
  121. <view class="left">综采三队</view>
  122. <view class="right">
  123. <view class="name">综采三队</view>
  124. <view class="inner">
  125. <view class="inner_left">
  126. <view class="inner_icon">
  127. <uni-icons type="star" color="#A2A4A6" size="16"></uni-icons>
  128. </view>
  129. <view class="inner_text">
  130. 测试内容
  131. </view>
  132. </view>
  133. <view class="inner_time">
  134. 33分钟前
  135. </view>
  136. </view>
  137. </view>
  138. <view class="icon_badge">
  139. <uni-badge text="2" type="error" size="small"></uni-badge>
  140. </view>
  141. </view>
  142. <view class="item">
  143. <view class="left">综采二队</view>
  144. <view class="right">
  145. <view class="name">综采二队</view>
  146. <view class="inner">
  147. <view class="inner_left">
  148. <view class="inner_icon">
  149. <uni-icons type="star" color="#A2A4A6" size="16"></uni-icons>
  150. </view>
  151. <view class="inner_text">
  152. 测试内容
  153. </view>
  154. </view>
  155. <view class="inner_time">
  156. 昨天
  157. </view>
  158. </view>
  159. </view>
  160. <view class="icon_badge">
  161. <uni-badge text="2" type="error" size="small"></uni-badge>
  162. </view>
  163. </view>
  164. </view>
  165. </view>
  166. </view>
  167. </view>
  168. <view v-if="active === 3" class="list-box">
  169. <view class="list">
  170. <view class="item">
  171. <view class="item_l">
  172. <view class="day">06</view>
  173. <view class="month">05月</view>
  174. <view class="name">测试</view>
  175. </view>
  176. <view class="item_r">
  177. <view class="inner">名称:车辆审批记录</view>
  178. <view class="inner">
  179. <text class="inner_title">是否有车:</text>
  180. <text class="inner_content">有</text>
  181. </view>
  182. <view class="icon"></view>
  183. </view>
  184. </view>
  185. <view class="item">
  186. <view class="item_l">
  187. <view class="day">06</view>
  188. <view class="month">05月</view>
  189. <view class="name">测试</view>
  190. </view>
  191. <view class="item_r">
  192. <view class="inner">名称:管理日报</view>
  193. <view class="inner">
  194. <text class="inner_title">状态:</text>
  195. <text class="inner_content">正常</text>
  196. </view>
  197. <view class="icon"></view>
  198. </view>
  199. </view>
  200. </view>
  201. </view>
  202. </view>
  203. </template>
  204. <script>
  205. export default {
  206. data() {
  207. return {
  208. active:1,
  209. };
  210. },
  211. methods:{
  212. clickTab(active){
  213. this.active = active
  214. }
  215. }
  216. }
  217. </script>
  218. <style lang="scss">
  219. .tab_box{
  220. height: 219rpx;
  221. .tab_list{
  222. padding-top: 33rpx;
  223. display: flex;
  224. justify-content: space-between;
  225. .item{
  226. width: 230rpx;
  227. text-align: center;
  228. .icon{
  229. image{
  230. transition: 1s;
  231. width: 70rpx;
  232. height: 70rpx;
  233. }
  234. }
  235. .title{
  236. transition: 1s;
  237. height: 34rpx;
  238. font-size: 25rpx;
  239. font-family: PingFangSC-Medium, PingFang SC;
  240. font-weight: 500;
  241. color: #BDC3C7;
  242. line-height: 34rpx;
  243. }
  244. .tips{
  245. transition: 1s;
  246. height: 29rpx;
  247. font-size: 21rpx;
  248. font-family: PingFangSC-Regular, PingFang SC;
  249. font-weight: 400;
  250. color: #A2A4A6;
  251. line-height: 29rpx;
  252. }
  253. }
  254. .active{
  255. .icon{
  256. image{
  257. width: 90rpx;
  258. height: 90rpx;
  259. }
  260. }
  261. .title{
  262. height: 42rpx;
  263. font-size: 29rpx;
  264. font-family: PingFangSC-Medium, PingFang SC;
  265. font-weight: 500;
  266. color: #2C3E50;
  267. line-height: 42rpx;
  268. }
  269. .tips{
  270. height: 34rpx;
  271. font-size: 25rpx;
  272. font-family: PingFangSC-Regular, PingFang SC;
  273. font-weight: 400;
  274. color: #A2A4A6;
  275. line-height: 34rpx;
  276. }
  277. }
  278. }
  279. }
  280. .line{
  281. width: 100%;
  282. height: 22rpx;
  283. background-color: #f0f0f0;
  284. }
  285. .list-box{
  286. background-color: #f6f6f6;
  287. box-sizing: border-box;
  288. padding-top: 19rpx;
  289. padding-left: 24rpx;
  290. padding-right: 24rpx;
  291. .list{
  292. .item{
  293. margin-bottom: 21rpx;
  294. background-color: #fff;
  295. display: flex;
  296. height: 175rpx;
  297. border-radius: 10rpx;
  298. .item_l{
  299. box-sizing: border-box;
  300. padding-top: 10rpx;
  301. padding-left: 22rpx;
  302. padding-right: 12rpx;
  303. width: 171rpx;
  304. height: 175rpx;
  305. background: #3498DB;
  306. border-radius: 10rpx;
  307. .day{
  308. height: 68rpx;
  309. font-size: 48rpx;
  310. font-family: PingFangSC-Medium, PingFang SC;
  311. font-weight: 500;
  312. color: #FFFFFF;
  313. line-height: 68rpx;
  314. }
  315. .month{
  316. text-align: right;
  317. height: 44rpx;
  318. font-size: 31rpx;
  319. font-family: PingFangSC-Medium, PingFang SC;
  320. font-weight: 500;
  321. color: #FFFFFF;
  322. line-height: 44rpx;
  323. }
  324. .name{
  325. text-align: center;
  326. height: 47rpx;
  327. font-size: 33rpx;
  328. font-family: PingFangSC-Medium, PingFang SC;
  329. font-weight: 500;
  330. color: #FFFFFF;
  331. line-height: 47rpx;
  332. }
  333. }
  334. .item_r{
  335. position: relative;
  336. width: 531rpx;
  337. box-sizing: border-box;
  338. padding-top: 14rpx;
  339. margin-left: 12rpx;
  340. display: flex;
  341. align-items: center;
  342. flex-wrap: wrap;
  343. .inner{
  344. width: 500rpx;
  345. margin-bottom: 12rpx;
  346. height: 42rpx;
  347. font-size: 29rpx;
  348. font-family: PingFangSC-Regular, PingFang SC;
  349. font-weight: 400;
  350. color: #2C3E50;
  351. line-height: 42rpx;
  352. .inner_title{
  353. }
  354. .inner_content{
  355. color: #E74C3C;
  356. }
  357. }
  358. .inner:last-child{
  359. margin-bottom: 0;
  360. background-color: red;
  361. }
  362. .icon{
  363. position: absolute;
  364. top: 0;
  365. right: 24rpx;
  366. width: 40rpx;
  367. height: 51rpx;
  368. background-image: url(icon/list1.png);
  369. background-size: cover;
  370. background-repeat: no-repeat;
  371. }
  372. }
  373. }
  374. }
  375. }
  376. .section{
  377. .section_title{
  378. background-color: #f0f0f0;
  379. padding-bottom: 22rpx;
  380. padding-left: 24rpx;
  381. padding-right: 24rpx;
  382. font-size: 29rpx;
  383. font-family: PingFangSC-Regular, PingFang SC;
  384. font-weight: 400;
  385. color: #A2A4A6;
  386. }
  387. .section_content{
  388. box-sizing: border-box;
  389. padding: 25rpx 0rpx;
  390. .list{
  391. padding-left: 25rpx;
  392. padding-right: 25rpx;
  393. .item{
  394. margin-bottom: 20rpx;
  395. width: 700rpx;
  396. border: 1rpx solid #f3f3f3;
  397. border-radius: 10rpx;
  398. box-sizing: border-box;
  399. padding: 15rpx 20rpx;
  400. box-shadow: rgba(62,57,107,0.3) 0px 6rpx 16rpx 0px;
  401. display: flex;
  402. align-items: center;
  403. position: relative;
  404. border-right: 14rpx solid #009fe8;
  405. .left{
  406. width: 100rpx;
  407. height: 100rpx;
  408. border-radius: 50%;
  409. background-color: #009fe8;
  410. font-size: 29rpx;
  411. font-family: PingFangSC-Regular, PingFang SC;
  412. font-weight: 400;
  413. color: #fff;
  414. box-sizing: border-box;
  415. padding: 20rpx;
  416. display: flex;
  417. justify-content: center;
  418. align-items: center;
  419. }
  420. .right{
  421. width: 520rpx;
  422. margin-left: 20rpx;
  423. .name{
  424. width: 500rpx;
  425. font-size: 29rpx;
  426. font-family: PingFangSC-Regular, PingFang SC;
  427. font-weight: 600;
  428. color: #333;
  429. }
  430. .inner{
  431. margin-top: 5rpx;
  432. display: flex;
  433. align-items: center;
  434. justify-content: space-between;
  435. .inner_left{
  436. width: 400rpx;
  437. display: flex;
  438. align-items: center;
  439. .inner_icon{
  440. width: 40rpx;
  441. height: 40rpx;
  442. line-height: 40rpx;
  443. }
  444. .inner_text{
  445. margin-left: 4rpx;
  446. margin-top: 4rpx;
  447. height: 40rpx;
  448. line-height: 40rpx;
  449. font-size: 24rpx;
  450. font-family: PingFangSC-Regular, PingFang SC;
  451. color: #A2A4A6;
  452. overflow: hidden;
  453. text-overflow:ellipsis;
  454. white-space: nowrap;
  455. }
  456. }
  457. .inner_time{
  458. width: 120rpx;
  459. height: 40rpx;
  460. line-height: 40rpx;
  461. text-align: right;
  462. font-size: 18rpx;
  463. font-family: PingFangSC-Regular, PingFang SC;
  464. color: #A2A4A6;
  465. }
  466. }
  467. }
  468. .icon_badge{
  469. position: absolute;
  470. top: 20rpx;
  471. right: 20rpx;
  472. }
  473. }
  474. }
  475. }
  476. }
  477. </style>