history.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <template>
  2. <view class="history">
  3. <view
  4. v-for="(item,index) in history"
  5. :key="index"
  6. class="item main-left"
  7. >
  8. <view class="cover-image">
  9. <image src="/static/image/default-movie.png" />
  10. </view>
  11. <view class="right-box">
  12. <view class="op-group main-right cross-center">
  13. <view class="delete">删除</view>
  14. <view class="play">播放</view>
  15. </view>
  16. <view class="name">毒液</view>
  17. <view class="status-box">
  18. <text class="status">已完结</text>
  19. <text>共18集</text>
  20. </view>
  21. <view class="record">
  22. 上次看至 <text>第二集</text>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. data() {
  31. return {
  32. history: [1, 2, 3, 4, 5]
  33. }
  34. },
  35. computed: {},
  36. methods: {}
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. .history{
  41. padding: 20rpx;
  42. color: $default-color ;
  43. font-size: 30rpx;
  44. .item{
  45. padding: 30rpx;
  46. border: 1rpx solid $primary-color;
  47. border-radius: 30rpx;
  48. margin-top: 30rpx;
  49. .cover-image{
  50. image{
  51. width: 200rpx;
  52. height: 280rpx;
  53. }
  54. }
  55. .right-box{
  56. flex: 1;
  57. margin-left: 20rpx;
  58. .op-group{
  59. .delete{
  60. border: 1rpx solid #FB3651;
  61. color: #FB3651;
  62. border-radius: 30rpx;
  63. width: 140rpx;
  64. padding: 10rpx;
  65. text-align: center;
  66. margin-right: 30rpx;
  67. }
  68. .play{
  69. background: linear-gradient(90deg, #FF74B9,#6EEBE8);
  70. color: $default-color;
  71. border-radius: 30rpx;
  72. width: 140rpx;
  73. padding: 10rpx;
  74. text-align: center;
  75. }
  76. }
  77. .name{
  78. font-size: 38rpx;
  79. font-weight: 600;
  80. margin-bottom: 10rpx;
  81. margin-top: 50rpx;
  82. }
  83. .status-box{
  84. font-size: 28rpx;
  85. margin-bottom: 10rpx;
  86. color: $info-color;
  87. .status{
  88. color: $primary-color;
  89. margin-right: 14rpx;
  90. }
  91. }
  92. .record{
  93. text{
  94. color: #FB3651;
  95. }
  96. }
  97. }
  98. }
  99. }
  100. </style>