studentList.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <div class="main fr">
  3. <h4><a href="/">首页</a> > 学生名单</h4>
  4. <div class="content ov">
  5. <dl class="studentList fl " style="width: 100%">
  6. <dt>学生名单 <!--<a href="" class="fr">更多+</a>--></dt>
  7. <dd v-for="item in students">
  8. <a href="">
  9. <img src="../assets/image/head.png" alt="">
  10. <h4>{{item.name}}</h4>
  11. <i v-if="item.post">{{item.post}}</i>
  12. <p>{{item.num}}</p>
  13. <!--<p>立即联系</p>-->
  14. </a>
  15. </dd>
  16. </dl>
  17. </div>
  18. </div>
  19. </template>
  20. <script>
  21. export default {
  22. name: "index",
  23. data() {
  24. return {
  25. students:[
  26. {
  27. name:'周宇鑫',
  28. num:'201901001',
  29. post:'班长',
  30. },
  31. {
  32. name:'李明悦',
  33. num:'201901002',
  34. post:'',
  35. },
  36. {
  37. name:'刘佳乐',
  38. num:'201901003',
  39. post:'',
  40. },
  41. {
  42. name:'王启航',
  43. num:'201901004',
  44. post:'',
  45. },
  46. {
  47. name:'王心怡',
  48. num:'201901005',
  49. post:'',
  50. },
  51. {
  52. name:'王程弈',
  53. num:'201901006',
  54. post:'',
  55. }, {
  56. name:'郭文俊',
  57. num:'201901006',
  58. post:'',
  59. }, {
  60. name:'刘玉婷',
  61. num:'201901006',
  62. post:'',
  63. }, {
  64. name:'司文涛',
  65. num:'201901006',
  66. post:'',
  67. },
  68. ]
  69. }
  70. },
  71. }
  72. </script>
  73. <style scoped>
  74. </style>