index - 宁煤新首页UI备份.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566
  1. <template>
  2. <view>
  3. <view class="status_bar"></view>
  4. <view class="container">
  5. <view class="top"></view>
  6. <view class="content">
  7. <!-- 查询 -->
  8. <view class="search">
  9. <view class="icon">
  10. <image src="./icon/search.png" mode=""></image>
  11. </view>
  12. <view class="text">查询</view>
  13. </view>
  14. <!-- 日期天气 -->
  15. <view class="date">
  16. <view class="text">2022年6月11日 星期六</view>
  17. <view class="icon">
  18. <image src="./icon/weather.png" mode=""></image>
  19. </view>
  20. </view>
  21. <!-- 值班 -->
  22. <view class="notice">
  23. <view class="left">
  24. <uni-notice-bar scrollable="true" :speed="20" background-color="#ffffff00" color="#fff"
  25. single="true" text="今日总值班:田禄禄 吕凤圆 雍兴成 郑宗儒 矿领导:翟文"></uni-notice-bar>
  26. </view>
  27. <view class="right">
  28. <view class="icon">
  29. <uni-icons type="more-filled" size="20" color="#fff"></uni-icons>
  30. </view>
  31. </view>
  32. </view>
  33. <!-- 轮播 -->
  34. <view class="banner">
  35. <swiper class="box" autoplay circular>
  36. <swiper-item v-for="(item,index) in 2" :key="index">
  37. <view class="item">
  38. <view class="img">
  39. <image src="https://cdn.colorhub.me/0JcNa7IL8ym_3xaeDLY5DXc27xr_rC9ByusCJi3XQDU/rs:auto:280:0:0/g:ce/bG9jYWw6Ly8vY2Ev/ZDEvZTRlNzU0Yzdl/MTljMDA3YjQ3NmRj/ZDk4ZjIwOTExNWE2/NDViY2FkMS5qcGVn.jpg" mode="aspectFill"></image>
  40. </view>
  41. <view class="title">
  42. <view class="text">标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题</view>
  43. <view class="num">
  44. <text>{{index+1}} / {{2}}</text>
  45. </view>
  46. </view>
  47. </view>
  48. </swiper-item>
  49. </swiper>
  50. </view>
  51. <!-- 七块体系建设 -->
  52. <view class="fixed_system">
  53. <view class="line">
  54. <view class="item" v-for="(item,index) in 3" :key="index">
  55. <view class="icon">
  56. <image src="./icon/icon.png" mode=""></image>
  57. </view>
  58. <view class="text">思想建设</view>
  59. </view>
  60. </view>
  61. <view class="line">
  62. <view class="item" v-for="(item,index) in 4" :key="index">
  63. <view class="icon">
  64. <image src="./icon/icon.png" mode=""></image>
  65. </view>
  66. <view class="text">思想建设</view>
  67. </view>
  68. </view>
  69. </view>
  70. <!-- 待办事项 -->
  71. <view class="todo">
  72. <view class="left">
  73. <view class="title">
  74. <view class="icon"></view>
  75. <view class="text">待办事项</view>
  76. </view>
  77. </view>
  78. <view class="right">
  79. <view class="tip">您有 <text style="color: #FF0000;">5</text> 项待办</view>
  80. <view class="detail">
  81. 详情 <uni-icons type="right" size="12" color="#B5B5B5"></uni-icons>
  82. </view>
  83. </view>
  84. </view>
  85. <!-- 实操应用 -->
  86. <!-- 数据平台 -->
  87. <!-- 学习资料 -->
  88. <view class="nav">
  89. <view class="section" v-for="(item,index) in 3" :key="index">
  90. <view class="title">
  91. <view class="icon"></view>
  92. <view class="text">实操应用</view>
  93. </view>
  94. <view class="list">
  95. <view class="item" v-for="(item,index) in 10" :key="index">
  96. <view class="icon">
  97. <image src="./icon/icon_1.png" mode=""></image>
  98. </view>
  99. <view class="text">标准化考核</view>
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. <!-- 动态信息 -->
  105. <view class="news">
  106. <view class="title_box">
  107. <view class="left">
  108. <view class="title">
  109. <view class="icon"></view>
  110. <view class="text">动态信息</view>
  111. </view>
  112. </view>
  113. <view class="right">
  114. <view class="detail">
  115. 查看全部 <uni-icons type="right" size="12" color="#B5B5B5"></uni-icons>
  116. </view>
  117. </view>
  118. </view>
  119. <view class="list">
  120. <view class="item" v-for="(item,index) in 3" :key="index">
  121. <view class="icon"></view>
  122. <view class="inner">
  123. <view class="new_title">宁煤公司学习贯彻习近平总书记在中青班开班式上重要讲话精神</view>
  124. <view class="tip">
  125. <view class="time">2022-06-11</view>
  126. <view class="detail">
  127. 详情<image src="./icon/new_detail.png" mode=""></image>
  128. </view>
  129. </view>
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. </view>
  135. </view>
  136. </view>
  137. </template>
  138. <script>
  139. export default {
  140. data() {
  141. return {
  142. data: {}
  143. }
  144. },
  145. onPullDownRefresh() {
  146. uni.reLaunch({
  147. url: "./index"
  148. })
  149. setTimeout(function() {
  150. uni.stopPullDownRefresh();
  151. }, 1000);
  152. },
  153. onLoad() {
  154. },
  155. methods: {
  156. }
  157. }
  158. </script>
  159. <style lang="scss">
  160. .status_bar {
  161. background-color: #00A0E8;
  162. }
  163. .container{
  164. position: relative;
  165. }
  166. .top {
  167. position: fixed;
  168. top: 0;
  169. left: 0;
  170. width: 750rpx;
  171. height: 665rpx;
  172. background-image: linear-gradient(to top, #FFFFFF 0%, #00A0E8 100%);
  173. }
  174. .content {
  175. position: absolute;
  176. top: 0rpx;
  177. box-sizing: border-box;
  178. padding: 25rpx;
  179. .search {
  180. width: 700rpx;
  181. height: 64rpx;
  182. box-sizing: border-box;
  183. border: 2rpx solid #FFFFFF;
  184. border-radius: 30rpx;
  185. opacity: 0.5;
  186. display: flex;
  187. align-items: center;
  188. padding: 0 30rpx;
  189. .icon {
  190. margin-right: 10rpx;
  191. image {
  192. width: 35rpx;
  193. height: 27rpx;
  194. }
  195. }
  196. .text {
  197. color: #DDF4FF;
  198. font-size: 27rpx;
  199. }
  200. }
  201. .date {
  202. height: 98rpx;
  203. display: flex;
  204. align-items: center;
  205. justify-content: space-between;
  206. .text {
  207. font-size: 34rpx;
  208. font-weight: 400;
  209. color: #FFFFFF;
  210. font-weight: 700;
  211. }
  212. .icon {
  213. image{
  214. width: 38rpx;
  215. height: 29rpx;
  216. }
  217. }
  218. }
  219. .notice {
  220. background: #FFFFFF40;
  221. border-radius: 21rpx;
  222. box-sizing: border-box;
  223. padding: 25rpx;
  224. height: 124rpx;
  225. display: flex;
  226. justify-content: space-between;
  227. align-items: center;
  228. .left {
  229. width: 580rpx;
  230. /deep/.uni-noticebar {
  231. margin-bottom: 0;
  232. }
  233. }
  234. .right {
  235. width: 50rpx;
  236. height: 72rpx;
  237. display: flex;
  238. align-items: center;
  239. .icon {
  240. transform: rotate(90deg);
  241. }
  242. }
  243. }
  244. .banner {
  245. margin-top: 30rpx;
  246. .box {
  247. width: 700rpx;
  248. height: 430rpx;
  249. .item {
  250. width: 700rpx;
  251. position: relative;
  252. .img {
  253. text-align: center;
  254. image {
  255. width: 700rpx;
  256. height: 400rpx;
  257. border-radius: 20rpx;
  258. }
  259. }
  260. .title {
  261. position: absolute;
  262. left: 0;
  263. bottom: 10rpx;
  264. box-sizing: border-box;
  265. padding: 15rpx 20rpx;
  266. width: 700rpx;
  267. font-size: 30rpx;
  268. display: flex;
  269. justify-content: space-between;
  270. .text {
  271. width: 520rpx;
  272. color: #FFFFFF;
  273. overflow: hidden;
  274. text-overflow: ellipsis;
  275. white-space: nowrap;
  276. }
  277. .num {
  278. color: #FFFFFF;
  279. text {
  280. color: #FFFFFF;
  281. }
  282. }
  283. }
  284. }
  285. }
  286. }
  287. .fixed_system{
  288. margin: -10rpx -25rpx 0;
  289. box-sizing: border-box;
  290. padding: 25rpx 0;
  291. width: 750rpx;
  292. height: 436rpx;
  293. background-image: url(./icon/section.png);
  294. background-size: 100% 100%;
  295. background-repeat: no-repeat;
  296. .line{
  297. box-sizing: border-box;
  298. padding: 25rpx;
  299. display: flex;
  300. justify-content: center;
  301. .item{
  302. margin-right: 54rpx;
  303. .icon{
  304. image{
  305. width: 109rpx;
  306. height: 109rpx;
  307. display: block;
  308. }
  309. }
  310. .text{
  311. font-size: 25rpx;
  312. color: #171717;
  313. }
  314. }
  315. }
  316. .line:first-child{
  317. .item:nth-child(3){
  318. margin-right: 0;
  319. }
  320. }
  321. .line:last-child{
  322. .item:nth-child(4){
  323. margin-right: 0;
  324. }
  325. }
  326. }
  327. .todo{
  328. padding: 20rpx 0;
  329. display: flex;
  330. justify-content: space-between;
  331. align-items: center;
  332. .left{
  333. .title{
  334. display: flex;
  335. align-items: center;
  336. .icon{
  337. width: 9rpx;
  338. height: 34rpx;
  339. background-color: #04A0E8;
  340. border-radius: 5rpx;
  341. }
  342. .text{
  343. margin-left: 10rpx;
  344. color: #6A6A6A;
  345. font-size: 33rpx;
  346. font-weight: 700;
  347. }
  348. }
  349. }
  350. .right{
  351. display: flex;
  352. align-items: baseline;
  353. .tip{
  354. font-size: 25rpx;
  355. color: #6A6A6A;
  356. }
  357. .detail{
  358. margin-left: 24rpx;
  359. font-size: 25rpx;
  360. color: #B5B5B5;
  361. }
  362. }
  363. }
  364. .nav{
  365. background-color: #F7F9F7;
  366. margin: 0 -25rpx;
  367. width: 750rpx;
  368. padding-top: 20rpx;
  369. .section{
  370. margin-bottom: 20rpx;
  371. background-color: #FFFFFF;
  372. box-sizing: border-box;
  373. padding: 25rpx;
  374. .title{
  375. padding: 20rpx 0;
  376. display: flex;
  377. align-items: center;
  378. .icon{
  379. width: 9rpx;
  380. height: 34rpx;
  381. background-color: #04A0E8;
  382. border-radius: 5rpx;
  383. }
  384. .text{
  385. margin-left: 10rpx;
  386. color: #6A6A6A;
  387. font-size: 33rpx;
  388. font-weight: 700;
  389. }
  390. }
  391. .list{
  392. width: 700rpx;
  393. overflow: hidden;
  394. .item{
  395. margin-top: 20rpx;
  396. float: left;
  397. margin-right: 20rpx;
  398. width: 120rpx;
  399. text-align: center;
  400. .icon{
  401. image{
  402. width: 73rpx;
  403. height: 73rpx;
  404. }
  405. }
  406. .text{
  407. color: #171717;
  408. font-size: 24rpx;
  409. white-space: nowrap;
  410. overflow: hidden;
  411. text-overflow: ellipsis;
  412. }
  413. }
  414. .item:nth-child(5n){
  415. margin-right: 0;
  416. }
  417. }
  418. }
  419. }
  420. .news{
  421. background-color: #F7F9F7;
  422. margin: 0 -25rpx;
  423. margin-bottom: 40rpx;
  424. padding-top: 20rpx;
  425. .title_box{
  426. background-color: #FFFFFF;
  427. box-sizing: border-box;
  428. padding: 25rpx;
  429. display: flex;
  430. justify-content: space-between;
  431. align-items: center;
  432. .left{
  433. .title{
  434. display: flex;
  435. align-items: center;
  436. .icon{
  437. width: 9rpx;
  438. height: 34rpx;
  439. background-color: #04A0E8;
  440. border-radius: 5rpx;
  441. }
  442. .text{
  443. margin-left: 10rpx;
  444. color: #6A6A6A;
  445. font-size: 33rpx;
  446. font-weight: 700;
  447. }
  448. }
  449. }
  450. .right{
  451. display: flex;
  452. align-items: baseline;
  453. .tip{
  454. font-size: 25rpx;
  455. color: #6A6A6A;
  456. }
  457. .detail{
  458. margin-left: 24rpx;
  459. font-size: 25rpx;
  460. color: #B5B5B5;
  461. }
  462. }
  463. }
  464. .list{
  465. box-sizing: border-box;
  466. padding: 25rpx;
  467. background-color: #FFFFFF;
  468. .item{
  469. margin-bottom: 20rpx;
  470. display: flex;
  471. justify-content: space-between;
  472. border-bottom: 1rpx solid #F5F6F7;
  473. .icon{
  474. position: relative;
  475. top: 16rpx;
  476. width: 8rpx;
  477. height: 8rpx;
  478. background: #999999;
  479. border-radius: 50%;
  480. }
  481. .inner{
  482. width: 680rpx;
  483. .new_title{
  484. color: #171717;
  485. font-size: 29rpx;
  486. line-height: 44rpx;
  487. }
  488. .tip{
  489. margin: 20rpx 0;
  490. display: flex;
  491. justify-content: space-between;
  492. .time{
  493. font-size: 23rpx;
  494. color: #999999;
  495. }
  496. .detail{
  497. color: #FD6B5C;
  498. font-size: 23rpx;
  499. image{
  500. margin-left: 8rpx;
  501. width: 19rpx;
  502. height: 16rpx;
  503. }
  504. }
  505. }
  506. }
  507. }
  508. .item:last-child{
  509. border: none;
  510. }
  511. }
  512. }
  513. }
  514. </style>