TeachTopic.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <template>
  2. <div class="home">
  3. <div class="title">
  4. <Icon type="ios-home-outline" size="22" />
  5. <p><router-link to="/TeacherZone/ZonesHome">工作室首页</router-link></p><span>>话题列表</span>
  6. </div>
  7. <div class="list-info">
  8. <h1 class="list-title">话题列表</h1>
  9. <Tabs class="list" value="name1">
  10. <TabPane label="不限" name="name1">暂无话题</TabPane>
  11. <TabPane label="进行中" name="name2">暂无话题</TabPane>
  12. <TabPane label="已结束" name="name3">暂无话题</TabPane>
  13. </Tabs>
  14. </div>
  15. <div class="content-info">
  16. <h1 class="list-title">最新话题</h1>
  17. <p>暂无话题</p>
  18. </div>
  19. </div>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. }
  26. },
  27. methods: {
  28. viewDetails() {
  29. this.$router.push({ path: '/TeacherZone/TeachDetails' })
  30. },
  31. chooseTab() {
  32. this.info = this.data;
  33. }
  34. }
  35. }
  36. </script>
  37. <style scoped>
  38. .home {
  39. width: 66%;
  40. height: 500px;
  41. position: absolute;
  42. top: 70%;
  43. left: 53%;
  44. transform: translate(-50%,-50%);
  45. float: left;
  46. display: inline-flex;
  47. }
  48. .title {
  49. font-size: 16px;
  50. text-align: left;
  51. font-weight: 600;
  52. width: 300px;
  53. }
  54. .title p {
  55. display: inline;
  56. }
  57. .list-info {
  58. margin-top: 35px;
  59. width: 50%;
  60. background: #fff;
  61. /* float: left; */
  62. margin-left: -24%;
  63. height: 200px;
  64. border: 1px solid #ededed;
  65. }
  66. .list-title {
  67. float: left;
  68. height: 57px;
  69. line-height: 57px;
  70. font-size: 20px;
  71. margin-left: 10px;
  72. color: #288add;
  73. border-bottom: 1px solid #288add;
  74. }
  75. .list {
  76. margin-top: 10%;
  77. margin-left: 1%;
  78. font-size: 15px;
  79. }
  80. .content-info {
  81. width: 25%;
  82. height: 200px;
  83. border: 1px solid #ededed;
  84. margin-top: 3%;
  85. margin-left: 4%;
  86. background-color: #ffffff;
  87. }
  88. .content-info p {
  89. margin-top: 25%;
  90. font-size: 15px;
  91. margin-left: 10px;
  92. }
  93. </style>