学员端小程序
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.

120 lines
2.3 KiB

10 months ago
1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="安全警示教育在线视频学习"></topNavbar>
  4. <view class="pad">
  5. <view class="searcBox">
  6. <searchRow placeholder="搜索视频名称"/>
  7. </view>
  8. <view class="card">
  9. <view class="con">
  10. <view class="tit">第一章</view>
  11. <view class="li" v-for="(item,index) in 10" :key="index">
  12. <view class="cover">
  13. <view class="status">未开始</view>
  14. <view class="startIcon">
  15. <image src="@/static/images/index/btn_bofang.png" mode=""></image>
  16. </view>
  17. <view class="coverImg">
  18. <image src="@/static/images/index/avatar.png" mode=""></image>
  19. </view>
  20. </view>
  21. <view class="rightTxt">
  22. <view class="name">公益短片之车速决定命运</view>
  23. <view class="time">3:22</view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. data() {
  34. return {}
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. .searcBox {
  40. padding: 0rpx 0 30rpx 0;
  41. }
  42. .card {
  43. .con {
  44. .tit {
  45. border-bottom: 2rpx solid #E8E9EC;
  46. line-height: 74rpx;
  47. padding-left: 16rpx;
  48. }
  49. .li {
  50. display: flex;
  51. padding: 30rpx 16rpx;
  52. border-bottom: 2rpx dashed #E8E9EC;
  53. &:last-child {
  54. border: none;
  55. }
  56. .cover {
  57. background: #000;
  58. width: 302rpx;
  59. height: 168rpx;
  60. border-radius: 12rpx;
  61. overflow: hidden;
  62. position: relative;
  63. flex-shrink: 0;
  64. .status {
  65. position: absolute;
  66. left: 0;
  67. top: 0;
  68. width: 108rpx;
  69. height: 40rpx;
  70. background: #ADADAD;
  71. border-radius: 12rpx 0px 12rpx 0px;
  72. line-height: 40rpx;
  73. color: #fff;
  74. text-align: center;
  75. z-index: 8;
  76. }
  77. .startIcon {
  78. position: absolute;
  79. left: 50%;
  80. bottom: 50%;
  81. // transform: translateX(-50%);
  82. // transform: translateY(-50%);
  83. transform: translate(-50%, 50%);
  84. width: 60rpx;
  85. height: 60rpx;
  86. z-index: 9;
  87. }
  88. .coverImg {
  89. width: 100%;
  90. height: 100%;
  91. image {
  92. opacity: 0.92;
  93. }
  94. }
  95. }
  96. .rightTxt {
  97. flex: 1;
  98. width: 0;
  99. padding-left: 28rpx;
  100. display: flex;
  101. flex-direction: column;
  102. justify-content: space-between;
  103. font-size: 28rpx;
  104. .name {
  105. }
  106. .time {
  107. }
  108. }
  109. }
  110. }
  111. }
  112. </style>