mineClass.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <template>
  2. <view>
  3. <statusBar :item="navBarData"></statusBar>
  4. <view class="activeBox" v-for="i in 5" :key="i">
  5. <view class="teaching_case">
  6. <view class="img">
  7. <image src="../../static/mine/Rectangle 23.png" mode="aspectFill"></image>
  8. </view>
  9. <view class="right">
  10. <view class="title">
  11. <view class="tag">类型</view>
  12. <text>这里是教研室标题标题标题标题标题</text>
  13. </view>
  14. <view class="introduce">
  15. 详细介绍详细介绍详细介绍详细介绍详细介绍详细介绍详细介绍详细介绍
  16. </view>
  17. <view class="operate">
  18. <view class="left">
  19. <view class="leftCollect">
  20. <view class="icon">
  21. <image src="../../static/mine/Collect_yellow.png" mode="aspectFill"></image>
  22. </view>
  23. <view class="text">
  24. <span>收藏</span>
  25. </view>
  26. </view>
  27. <view class="leftSubscribe">
  28. <view class="icon">
  29. <image src="../../static/mine/Subscribe_gray.png" mode="aspectFill"></image>
  30. </view>
  31. <view class="text">
  32. <span>订阅</span>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="right">
  37. <view class="text">查看详情</view>
  38. <view class="arrow">
  39. <image src="../../static/mine/arrow-right-blue.png" mode="aspectFill"></image>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. export default {
  50. data() {
  51. return {
  52. navBarData: {
  53. title: '我的教研室',
  54. btn: 1
  55. },
  56. };
  57. }
  58. }
  59. </script>
  60. <style lang="scss">
  61. .activeBox {
  62. width: 100%;
  63. background-color: #fff;
  64. padding: 10px 0;
  65. .teaching_case {
  66. display: flex;
  67. justify-content: space-between;
  68. padding: 0 15px;
  69. .img {
  70. width: 180rpx;
  71. height: 180rpx;
  72. image {
  73. width: 100%;
  74. height: 100%;
  75. }
  76. }
  77. .right {
  78. padding-left: 15px;
  79. flex: 1;
  80. width: 100rpx;
  81. display: flex;
  82. flex-direction: column;
  83. align-content: flex-end;
  84. .title {
  85. display: flex;
  86. margin-bottom: 5px;
  87. .tag {
  88. border: 1px #00b2b6 solid;
  89. font-size: 20rpx;
  90. display: flex;
  91. white-space: nowrap;
  92. justify-content: center;
  93. align-items: center;
  94. padding: 2px 4px;
  95. border-radius: 3px;
  96. margin-right: 10rpx;
  97. color: #00b2b6;
  98. }
  99. text {
  100. width: 180px;
  101. overflow: hidden;
  102. text-overflow: ellipsis;
  103. white-space: nowrap;
  104. }
  105. }
  106. .introduce {
  107. width: 230px;
  108. font-size: 28rpx;
  109. color: #a7a7a7;
  110. margin-top: 8px;
  111. overflow: hidden;
  112. text-overflow: ellipsis;
  113. white-space: nowrap;
  114. }
  115. .operate {
  116. display: flex;
  117. justify-content: space-between;
  118. align-items: flex-end;
  119. margin-top: 15px;
  120. .left {
  121. display: flex;
  122. flex-direction: row;
  123. // justify-content: space-between;
  124. width: 260rpx;
  125. color: #00000099;
  126. font-size: 24rpx;
  127. .leftCollect {
  128. display: flex;
  129. align-items: flex-end;
  130. margin-right: 15px;
  131. .text{
  132. display: flex;
  133. margin-left: 5px;
  134. }
  135. .icon{
  136. display: flex;
  137. image{
  138. width: 32rpx;
  139. height: 32rpx;
  140. }
  141. }
  142. }
  143. .leftSubscribe {
  144. display: flex;
  145. align-items: flex-end;
  146. // margin-left: 15px;
  147. .text{
  148. display: flex;
  149. margin-left: 5px;
  150. }
  151. .icon{
  152. display: flex;
  153. image{
  154. width: 32rpx;
  155. height: 32rpx;
  156. }
  157. }
  158. }
  159. }
  160. .right {
  161. width: 80px;
  162. // height: 24px;
  163. display: flex;
  164. flex-direction: row;
  165. justify-content: space-around;
  166. align-items: flex-end;
  167. .text {
  168. font-size: 24rpx;
  169. color: #3081E8;
  170. }
  171. .arrow {
  172. line-height: 10px;
  173. image{
  174. width: 32rpx;
  175. height: 32rpx;
  176. }
  177. }
  178. }
  179. }
  180. }
  181. }
  182. }
  183. </style>