subItem.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <div class="sub_item">
  3. <i class="sub_time">
  4. <span>5月8日</span> 更新
  5. </i>
  6. <div class="sub_show">
  7. <h3>刚刚,华北地区发不了20条电力招标公告</h3>
  8. <p>中标公告为:</p>
  9. <ul>
  10. <li>保定恒源祥电气设备公司招标******</li>
  11. <li>中偶同逊色韩第一工程招投标******</li>
  12. <li>...</li>
  13. </ul>
  14. <nuxt-link to>查看详情</nuxt-link>
  15. </div>
  16. </div>
  17. </template>
  18. <script>
  19. import '~/static/css/style.css' // 引入
  20. import '~/assets/new.scss' // 引入
  21. export default {
  22. data() {
  23. return {
  24. current: "0",
  25. }
  26. }
  27. }
  28. </script>
  29. <style>
  30. .sub_item {
  31. margin-bottom: 24px;
  32. background-color: rgba(0, 0, 0, 0);
  33. text-align: center;
  34. }
  35. .sub_item h3 {
  36. padding: 10px 0;
  37. }
  38. .sub_item .sub_time {
  39. border-radius: 4px;
  40. padding: 4px 8px;
  41. font-size: 12px;
  42. color: #fff;
  43. background-color: rgba(0, 0, 0, 0.12);
  44. margin-bottom: 10px;
  45. font-style: normal;
  46. display: inline-block;
  47. }
  48. .sub_item .sub_show {
  49. text-align: left;
  50. padding: 0 1.5rem;
  51. background-color: #fff;
  52. border-radius: 8px;
  53. padding-top: 1rem;
  54. }
  55. .sub_item .sub_show {
  56. text-align: left;
  57. }
  58. .sub_item .sub_show p{
  59. margin-top: 10px;
  60. }
  61. .sub_item .sub_show ul{
  62. margin-bottom: 10px;
  63. }
  64. .sub_item .sub_show ul li {
  65. color: #afafaf;
  66. line-height: 30px;
  67. }
  68. .sub_item .sub_show a {
  69. padding: 15px 0;
  70. color: #202020;
  71. text-decoration: none;
  72. border-top: 1px solid #f0f0f0;
  73. display: block;
  74. }
  75. </style>