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

113 lines
2.1 KiB

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