瑶都万能墙
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.

66 lines
973 B

7 months ago
7 months ago
6 months ago
7 months ago
  1. <template>
  2. <view>
  3. <view class="dynamics" v-html="$utils.stringFormatHtml(item.title)">
  4. </view>
  5. <view class="Artworkimages">
  6. <view class="wrokimg" @click.stop="previewImage(images, i)" :key="i" v-for="(img, i) in images">
  7. <image :src="img" mode="aspectFill"></image>
  8. </view>
  9. </view>
  10. <addressSpot
  11. :address="item.address"
  12. :latitude="item.latitude"
  13. :longitude="item.longitude"
  14. />
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. props: {
  20. item: {},
  21. },
  22. computed : {
  23. images(){
  24. if(!this.item.image){
  25. return []
  26. }
  27. return this.item.image.split(',')
  28. }
  29. },
  30. data() {
  31. return {
  32. }
  33. },
  34. methods: {
  35. }
  36. }
  37. </script>
  38. <style scoped lang="scss">
  39. .dynamics {
  40. margin-top: 20rpx;
  41. font-size: 28rpx;
  42. letter-spacing: 3rpx;
  43. }
  44. .Artworkimages {
  45. display: flex;
  46. flex-wrap: wrap;
  47. .wrokimg {
  48. margin: 10rpx;
  49. image {
  50. height: 190rpx;
  51. width: 190rpx;
  52. border-radius: 20rpx;
  53. }
  54. }
  55. }
  56. </style>