Home.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <section class="home-ctnr">
  3. <mytitle msg="区块链合同" flag=""></mytitle>
  4. <section class="home-box">
  5. <ul>
  6. <li v-for="item in lists" :key="item.id">
  7. <img :src="item.src">
  8. <p>{{ item.name }}</p>
  9. </li>
  10. </ul>
  11. </section>
  12. <tabbar></tabbar>
  13. </section>
  14. </template>
  15. <script type="text/javascript">
  16. import tabbar from '../components/Tabbar.vue'
  17. import mytitle from '../components/Title.vue'
  18. export default{
  19. data(){
  20. return {
  21. lists:[
  22. {
  23. id: "1",
  24. name: "上传合同",
  25. src: require("../assets/img/上传合同.png")
  26. },
  27. {
  28. id: "2",
  29. name: "模板创建",
  30. src: require("../assets/img/模板创建.png")
  31. },
  32. {
  33. id: "3",
  34. name: "草稿箱(0)",
  35. src: require("../assets/img/草稿箱.png")
  36. },
  37. {
  38. id: "4",
  39. name: "待修改(0)",
  40. src: require("../assets/img/待修改.png")
  41. },
  42. {
  43. id: "5",
  44. name: "待签署(0)",
  45. src: require("../assets/img/待签署.png")
  46. },
  47. {
  48. id: "6",
  49. name: "已签署(0)",
  50. src: require("../assets/img/已签署.png")
  51. },
  52. {
  53. id: "7",
  54. name: "已生效(0)",
  55. src: require("../assets/img/已生效.png")
  56. },
  57. {
  58. id: "8",
  59. name: "已失效(0)",
  60. src: require("../assets/img/已失效.png")
  61. },
  62. ]
  63. }
  64. },
  65. components:{
  66. tabbar,
  67. mytitle
  68. }
  69. }
  70. </script>
  71. <style type="text/css">
  72. .home-ctnr{
  73. background-color: #60c0ff;
  74. position: absolute;
  75. top: 0;
  76. right: 0;
  77. left: 0;
  78. bottom: 0;
  79. .home-box{
  80. background-color: #fff;
  81. width: 8.795309rem;
  82. height: 14rem;
  83. margin: 0.199893rem auto;
  84. border-radius: 15px;/*no*/
  85. li{
  86. float: left;
  87. width: 4.397655rem;
  88. height: 3.464819rem;
  89. font-size: 0;
  90. display: flex;
  91. flex-direction: column;
  92. justify-content: center;
  93. align-items: center;
  94. border-bottom: 1px solid #ececec;
  95. &:nth-child(odd){
  96. border-right: 1px solid #ececec;
  97. }
  98. &:nth-child(7){
  99. border-bottom: 0px;
  100. }
  101. &:nth-child(8){
  102. border-bottom: 0px;
  103. }
  104. img{
  105. width: 1.599147rem;
  106. height:1.599147rem;
  107. }
  108. p{
  109. font-size: 0.373134rem;
  110. }
  111. }
  112. }
  113. }
  114. </style>