景徳镇旅游微信小程序
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.

100 lines
1.8 KiB

9 months ago
  1. <template>
  2. <view class="videoList">
  3. <view class="video-item" v-for="(item, index) in 10" :key="index">
  4. <view class="image">
  5. <image src="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/BB1msKSi.img" mode="aspectFill">
  6. </image>
  7. <view class="icon">
  8. <uv-icon size="35rpx" name="play-right-fill">
  9. </uv-icon>
  10. </view>
  11. </view>
  12. <view class="bottom">
  13. <view class="headImage">
  14. <image src="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/BB1msKSi.img" mode="aspectFill">
  15. </image>
  16. 爱旅行的小张
  17. </view>
  18. <view class="like">
  19. <uv-icon size="45rpx" v-if="false" name="heart"></uv-icon>
  20. <uv-icon size="45rpx" color="#FF4340" v-else name="heart-fill"></uv-icon>
  21. 300
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. data() {
  30. return {
  31. }
  32. },
  33. methods: {
  34. }
  35. }
  36. </script>
  37. <style scoped lang="scss">
  38. .videoList {
  39. display: flex;
  40. flex-wrap: wrap;
  41. .video-item {
  42. margin: 20rpx;
  43. width: 335rpx;
  44. .image {
  45. position: relative;
  46. width: 100%;
  47. height: 420rpx;
  48. border-radius: 30rpx;
  49. overflow: hidden;
  50. image {
  51. width: 100%;
  52. height: 100%;
  53. }
  54. .icon {
  55. position: absolute;
  56. right: 30rpx;
  57. top: 30rpx;
  58. width: 60rpx;
  59. height: 60rpx;
  60. background-color: #ffffffaa;
  61. border-radius: 50%;
  62. display: flex;
  63. justify-content: center;
  64. align-items: center;
  65. }
  66. }
  67. .bottom {
  68. padding: 10rpx 0;
  69. font-size: 22rpx;
  70. display: flex;
  71. justify-content: space-between;
  72. .headImage {
  73. display: flex;
  74. align-items: center;
  75. image {
  76. width: 50rpx;
  77. height: 50rpx;
  78. border-radius: 50%;
  79. margin-right: 6rpx;
  80. }
  81. }
  82. .like {
  83. display: flex;
  84. align-items: center;
  85. }
  86. }
  87. }
  88. }
  89. </style>