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

137 lines
2.3 KiB

2 months ago
  1. <template>
  2. <view class="item"
  3. >
  4. <view class="image" @click="showVideo(item, index)">
  5. <image :src="item.spotImage && item.spotImage.split(',')[0]" mode="aspectFill">
  6. </image>
  7. </view>
  8. <view class="bottom">
  9. <view class="headImage">
  10. {{ item.spotName }}
  11. </view>
  12. <view class="like">
  13. <view class="">
  14. 查看详情
  15. </view>
  16. <view class=""
  17. style="margin-top: 10rpx;">
  18. <uv-icon size="26rpx"
  19. name="arrow-right"></uv-icon>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. import { mapState } from 'vuex'
  27. export default {
  28. props : {
  29. item : {
  30. default : {}
  31. },
  32. },
  33. data() {
  34. return {
  35. queryParams: {
  36. pageNo: 1,
  37. pageSize: 10,
  38. },
  39. total : 0,
  40. list : [],
  41. }
  42. },
  43. computed : {
  44. ...mapState(['spotList']),
  45. spotListWord(){
  46. return this.spotList.filter(n => n.categoryId == 0)
  47. },
  48. },
  49. methods: {
  50. navigateTo(item){
  51. this.$utils.navigateTo(`/pages_order/service/?id=${item.id}&type=Inheritance`)
  52. },
  53. }
  54. }
  55. </script>
  56. <style scoped lang="scss">
  57. .item {
  58. background-color: #fff;
  59. position: relative;
  60. width: calc(50% - 20rpx);
  61. margin-left: 20rpx;
  62. margin-top: 20rpx;
  63. .image {
  64. position: relative;
  65. width: 100%;
  66. height: 420rpx;
  67. overflow: hidden;
  68. image {
  69. width: 100%;
  70. height: 420rpx;
  71. border-radius: 30rpx;
  72. }
  73. .icon {
  74. position: absolute;
  75. right: 30rpx;
  76. top: 30rpx;
  77. width: 60rpx;
  78. height: 60rpx;
  79. background-color: #ffffffaa;
  80. border-radius: 50%;
  81. display: flex;
  82. justify-content: center;
  83. align-items: center;
  84. }
  85. }
  86. .bottom {
  87. font-size: 30rpx;
  88. display: flex;
  89. justify-content: space-between;
  90. position: absolute;
  91. bottom: 0;
  92. left: 0;
  93. background-color: #ffffffaa;
  94. width: calc(100% - 40rpx);
  95. padding: 30rpx;
  96. font-weight: 900;
  97. align-items: center;
  98. .headImage {
  99. display: flex;
  100. align-items: center;
  101. image {
  102. width: 50rpx;
  103. height: 50rpx;
  104. border-radius: 50%;
  105. margin-right: 6rpx;
  106. }
  107. }
  108. .like {
  109. display: flex;
  110. align-items: center;
  111. justify-content: center;
  112. font-weight: 500;
  113. font-size: 22rpx;
  114. }
  115. }
  116. }
  117. .showVideo{
  118. display: flex;
  119. justify-content: center;
  120. align-items: center;
  121. height: 100%;
  122. width: 1000%;
  123. video{
  124. // width: 100%;
  125. // height: 100%;
  126. }
  127. }
  128. </style>