index.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <template>
  2. <div class="home">
  3. <div class="home-both">
  4. <h4>区块链合同</h4>
  5. <div class="home-table">
  6. <table>
  7. <tr v-for="item in content">
  8. <td><img :src="item.pictureone"><p>{{item.fontone}}</p></td>
  9. <td><img :src="item.picturetwo"><p>{{item.fonttwo}}</p></td>
  10. </tr>
  11. </table>
  12. </div>
  13. </div>
  14. </div>
  15. </template>
  16. <script>
  17. export default{
  18. data(){
  19. return{
  20. content:[
  21. {
  22. pictureone:require('../assets/img/drawable-mdpi/sendcontant.png'),
  23. fontone:'上传合同',
  24. picturetwo:require('../assets/img/drawable-mdpi/build.png'),
  25. fonttwo:'模板创建'
  26. },
  27. {
  28. pictureone:require('../assets/img/drawable-mdpi/Draftbox.png'),
  29. fontone:'草稿箱(0)',
  30. picturetwo:require('../assets/img/drawable-mdpi/modify.png'),
  31. fonttwo:'待修改(0)'
  32. },
  33. {
  34. pictureone:require('../assets/img/drawable-mdpi/signed.png'),
  35. fontone:'待签署(0)',
  36. picturetwo:require('../assets/img/drawable-mdpi/Asigned.png'),
  37. fonttwo:'已签署(0)'
  38. },
  39. {
  40. pictureone:require('../assets/img/drawable-mdpi/effect.png'),
  41. fontone:'已生效(0)',
  42. picturetwo:require('../assets/img/drawable-mdpi/failure.png'),
  43. fonttwo:'已失效(0)'
  44. }
  45. ]
  46. }
  47. }
  48. }
  49. </script>
  50. <style scoped>
  51. .home{
  52. .home-both{
  53. width: 100%;
  54. background: #60c0ff;
  55. padding-bottom: 0.416667rem;
  56. h4{
  57. text-align: center;
  58. color: #fff;
  59. font-size: 0.472222rem;
  60. padding: 0.541667rem 0;
  61. }
  62. .home-table{
  63. width: 9.166667rem;
  64. border-radius: 0.238889rem;
  65. margin: 0 auto;
  66. margin-bottom: 0.416667rem;
  67. table{
  68. width: 100%;
  69. height: 13.888889rem;
  70. background: #fff;
  71. margin: 0 auto;
  72. border-collapse: collapse;
  73. text-align: center;
  74. vertical-align: center;
  75. border-radius: 0.238889rem;
  76. td{
  77. width: 50%;
  78. height: 25%;
  79. /*border: 1px solid #ececec;*/
  80. img{
  81. width: 1.919444rem;
  82. height: 1.988889rem;
  83. }
  84. p{
  85. font-size: 0.388889rem;
  86. color: #666;
  87. }
  88. }
  89. td:nth-of-type(odd){
  90. border-right: 1px solid #ececec;
  91. border-bottom: 1px solid #ececec;
  92. }
  93. td:nth-of-type(even){
  94. border-bottom: 1px solid #ececec;
  95. }
  96. tr:nth-of-type(4){
  97. td{
  98. border-bottom: 0;
  99. }
  100. }
  101. }
  102. }
  103. }
  104. }
  105. </style>