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

114 lines
1.9 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. <template>
  2. <view class="comment">
  3. <view class="box">
  4. <view class="headPortraitimg">
  5. <image :src="item.userHead"
  6. @click.stop="previewImage([item.userHead])"
  7. mode="aspectFill"></image>
  8. </view>
  9. <view class="YaoduUniversalWall">
  10. <view class="heide">
  11. <view class="username text-ellipsis">
  12. {{ item.userName }}
  13. </view>
  14. </view>
  15. <view class="Times">
  16. <view class="TimeMonth">
  17. {{ item.createTime }}发布
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="dynamics" v-html="$utils.stringFormatHtml(item.userValue)">
  23. </view>
  24. <view class="images">
  25. <view class="image"
  26. @click.stop="previewImage(images, i)"
  27. :key="i" v-for="(img, i) in images">
  28. <image :src="img" mode="aspectFill"></image>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. props : ['item'],
  36. data() {
  37. return {
  38. }
  39. },
  40. computed : {
  41. images(){
  42. if(!this.item.userImage){
  43. return []
  44. }
  45. return this.item.userImage.split(',')
  46. }
  47. },
  48. methods: {
  49. }
  50. }
  51. </script>
  52. <style scoped lang="scss">
  53. .comment {
  54. background-color: #fff;
  55. padding: 30rpx 40rpx;
  56. margin-top: 10rpx;
  57. .box {
  58. display: flex;
  59. align-items: center;
  60. .headPortraitimg {
  61. width: 80rpx;
  62. height: 80rpx;
  63. border-radius: 15rpx;
  64. overflow: hidden;
  65. image {
  66. width: 100%;
  67. height: 100%;
  68. }
  69. }
  70. .YaoduUniversalWall {
  71. padding: 0rpx 10rpx;
  72. font-size: 26rpx;
  73. line-height: 40rpx;
  74. .Times {
  75. font-size: 22rpx;
  76. }
  77. }
  78. }
  79. .dynamics {
  80. margin-top: 20rpx;
  81. margin-left: 100rpx;
  82. font-size: 28rpx;
  83. letter-spacing: 3rpx;
  84. word-break: break-all;
  85. }
  86. .images {
  87. display: flex;
  88. flex-wrap: wrap;
  89. margin-top: 20rpx;
  90. margin-left: 100rpx;
  91. .image {
  92. margin: 10rpx;
  93. image {
  94. height: 120rpx;
  95. width: 120rpx;
  96. border-radius: 20rpx;
  97. }
  98. }
  99. }
  100. }
  101. </style>