You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

257 lines
6.6 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. <script setup>
  2. import Nav from '@/components/Nav.vue';
  3. </script>
  4. <template>
  5. <Nav></Nav>
  6. <div class="club">
  7. <!-- 俱乐部相关信息 -->
  8. <header>
  9. <div class="club-header1">
  10. <img class="club-image" :src="clubImage" alt="视频缩略图">
  11. <button class="club-button" @click="handleMore">查看更多</button>
  12. </div>
  13. <p>博股国际投资论坛(BoguIntemational InvestmentForum)立足中国面向全球聚集了国际政要投资大师经济学家和高端投资人士该论坛旨在为一小部分高投资人士提供深度学习解读国际经济形势井研判经济发展机遇博股会员是博股国际投资论坛的终身会员我们注重知识体系的深度与大师为伍强调价值投资并利用大波设进行盈利</p>
  14. </header>
  15. <section class="special-topic">
  16. <div class="special-topic">
  17. <h2>专题</h2>
  18. </div>
  19. <div class="topic">
  20. <div class="topic-title">
  21. <p>前言股市投资分享之左侧交易</p>
  22. <span @click="handleMore">查看更多</span>
  23. </div>
  24. <!-- 视频 -->
  25. <div class="sub-topic">
  26. <ul class="display-list">
  27. <li v-for="(video, index) in videos" :key="index">
  28. <!-- 左边 -->
  29. <div class="sub-left">
  30. <img class="sub-image" :src="video.thumbnail" alt="视频缩略图">
  31. <img class="player" src="../image/播放按钮图.png">
  32. </div>
  33. <!-- 右边 -->
  34. <div class="sub-right">
  35. <div class="right-inline">
  36. <img :src="clubLogo" class="logo">
  37. <span>第一节影型结构同现</span>
  38. </div>
  39. <div class="right-inline">
  40. <div class="yellow">
  41. <img src="../image/五角星.png" class="img2">
  42. <span>博股俱乐部</span>
  43. </div>
  44. </div>
  45. <div class="right-inline">
  46. <!-- HomilyLink -->
  47. <div class="right-item">
  48. <img :src="video.homilyLink" class="img1">
  49. <div>HomilyLink</div>
  50. </div>
  51. <div class="right-item">{{ video.time }}</div>
  52. <!-- 观看 -->
  53. <div class="right-item">
  54. <img src="../image/观看icon.png" class="img2">
  55. <div>{{ video.views }}</div>
  56. </div>
  57. <!-- 评论 -->
  58. <div class="right-item">
  59. <img src="../image/评论icon.png" class="img2">
  60. <div>{{ video.comments }}</div>
  61. </div>
  62. <!-- 点赞 -->
  63. <div class="right-item">
  64. <img src="../image/点赞icon.png" class="img2">
  65. <div>{{ video.likes }}</div>
  66. </div>
  67. </div>
  68. </div>
  69. </li>
  70. </ul>
  71. </div>
  72. </div>
  73. </section>
  74. </div>
  75. </template>
  76. <style scoped>
  77. .club{
  78. width: 800px;
  79. margin-left: auto;
  80. margin-right: auto;
  81. }
  82. header {
  83. background-color: #ffba75;
  84. padding: 20px;
  85. border-radius: 2%;
  86. }
  87. .club-header1 {
  88. display: flex; /* 启用flexbox布局 */
  89. align-items: center; /* 垂直居中对齐 */
  90. justify-content: space-between; /* 在主轴上两端对齐 */
  91. padding: 10px; /* 可选:根据需要添加内边距 */
  92. }
  93. .club-image {
  94. height: 80px;
  95. width: 80px;
  96. max-width: 100%;
  97. /* height: auto; 保持图片的原始宽高比 */
  98. margin-left: 50px;
  99. border-radius: 100%; /* 设置图片为圆形 */
  100. }
  101. .club-button{
  102. margin-left: auto; /* 将按钮推向右侧 */
  103. margin-right: 50px;
  104. padding: 5px;
  105. background-color: #ff9900;
  106. color: white;
  107. border: none;
  108. top: 20px; /* 距离顶部20px */
  109. right: 20px; /* 距离右侧20px */
  110. cursor: pointer;
  111. color: #72706a;
  112. border-radius: 5%;
  113. }
  114. header p {
  115. margin: 10px 10px;
  116. }
  117. .special-topic {
  118. margin: 20px;
  119. }
  120. .topic h3 {
  121. background-color: #e0e0e0;
  122. padding: 10px;
  123. margin: 0;
  124. }
  125. .special-topic {
  126. background-color: #f8f8f8; /* 背景颜色,根据需要调整 */
  127. padding: 10px; /* 内边距,根据需要调整 */
  128. margin: 20px 0; /* 外边距,根据需要调整 */
  129. }
  130. .special-topic h2 {
  131. margin: 0; /* 移除默认的外边距 */
  132. padding-bottom: 5px; /* 下方内边距,为下划线留出空间 */
  133. border-bottom: 2px solid #007bff; /* 下划线样式 */
  134. display: inline-block; /* 使下划线只在文字下方 */
  135. }
  136. .topic-title{
  137. display: flex;
  138. justify-content: space-between;
  139. span{
  140. margin-left: auto; /* 向右对齐 */
  141. margin-right: 50px;
  142. color: #8e8e8e;
  143. font-size: 14px;
  144. }
  145. p{
  146. display: inline-block;
  147. font-size: 20px;
  148. }
  149. }
  150. .sub-topic {
  151. margin: 10px 0;
  152. padding: 10px;
  153. background-color: #f0f0f0;
  154. display: flex;
  155. }
  156. .display-list{
  157. list-style-type: none;
  158. padding: 0px;
  159. background-color: #f0f0f0;
  160. }
  161. .sub-topic li{
  162. display: flex;
  163. }
  164. .sub-left{
  165. height: 112px;
  166. width: 200px;
  167. position: relative;
  168. .sub-image{
  169. position: absolute;
  170. width: 100%;
  171. height: 100%;
  172. }
  173. .player{
  174. position: absolute;
  175. width: 30px;
  176. height: 30px;
  177. left: 40%;
  178. top: 40%;
  179. }
  180. }
  181. .sub-right{
  182. margin-left: 20px;
  183. }
  184. .right-inline{
  185. display: flex;
  186. margin-bottom: 15px;
  187. align-items: center;
  188. font-size: 16px;
  189. .yellow{
  190. display: flex;
  191. color: #e4af5f;
  192. font-size: 14px;
  193. height: 18px;
  194. }
  195. .right-item{
  196. display: flex;
  197. color: #8e8e8e;
  198. font-size: 14px;
  199. margin-right: 18px;
  200. align-items: center;
  201. }
  202. }
  203. .logo{
  204. width: 30px;
  205. height: 30px;
  206. margin-right: 10px;
  207. }
  208. .img1{
  209. width: 22px;
  210. height: 22px;
  211. }
  212. .img2{
  213. width: 18px;
  214. height: 18px;
  215. }
  216. .club-badge {
  217. display: inline-flex; /* 使用flex布局使图标和文字并排 */
  218. align-items: center; /* 垂直居中对齐 */
  219. background-color: #f0f0f0; /* 背景颜色 */
  220. padding: 5px 10px; /* 内边距 */
  221. border-radius: 15px; /* 圆角边框 */
  222. font-size: 14px; /* 字体大小 */
  223. color: #333; /* 字体颜色 */
  224. }
  225. .club-icon {
  226. width: 16px; /* 图标宽度 */
  227. height: 16px; /* 图标高度 */
  228. margin-right: 5px; /* 图标和文字之间的间距 */
  229. }
  230. .club-text {
  231. white-space: nowrap; /* 防止文本换行 */
  232. color: #ffba75;
  233. }
  234. .sub-topic p {
  235. margin: 5px 0;
  236. }
  237. </style>