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

133 lines
2.4 KiB

4 months ago
  1. <template>
  2. <view class="box" :style="{'--sexcolor' : sex[item.sex].color}">
  3. <view class="headPortraitimg">
  4. <image :src="item.userImage" @click.stop="previewImage([item.userImage])" mode="aspectFill"></image>
  5. </view>
  6. <view class="YaoduUniversalWall">
  7. <view class="heide">
  8. <view class="username text-ellipsis">
  9. {{ item.userName }}
  10. </view>
  11. <view class="inde" v-if="item.sex">
  12. <!-- 性别 -->
  13. {{ item.sex }}
  14. </view>
  15. <view class="inde" v-if="item.yearDate">
  16. <!-- 年份 -->
  17. {{ item.yearDate }}
  18. </view>
  19. <view class="inde" v-if="item.addId">
  20. <!-- 地址 -->
  21. {{ item.addId }}
  22. </view>
  23. <view class="authentication" v-if="item.isContent">
  24. <!-- 个人认证 -->
  25. {{ item.isContent }}
  26. </view>
  27. </view>
  28. <view class="Times">
  29. <view class="TimeMonth">
  30. <!-- 10-08 -->
  31. {{ item.createTime }}发布
  32. </view>
  33. <!-- <view class="Month">
  34. 12:34
  35. </view> -->
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. import mixinsSex from '@/mixins/sex.js'
  42. export default {
  43. mixins: [mixinsSex],
  44. props: {
  45. item: {},
  46. },
  47. data() {
  48. return {
  49. }
  50. },
  51. methods: {
  52. }
  53. }
  54. </script>
  55. <style scoped lang="scss">
  56. .box {
  57. display: flex;
  58. align-items: center;
  59. .headPortraitimg {
  60. width: 100rpx;
  61. height: 100rpx;
  62. border-radius: 15rpx;
  63. overflow: hidden;
  64. image {
  65. width: 100%;
  66. height: 100%;
  67. }
  68. }
  69. .YaoduUniversalWall {
  70. padding: 0rpx 10rpx;
  71. .username {
  72. max-width: 200rpx;
  73. }
  74. .heide {
  75. display: flex;
  76. justify-content: center;
  77. align-items: center;
  78. }
  79. .inde {
  80. display: flex;
  81. justify-content: center;
  82. align-items: center;
  83. padding: 0rpx 10rpx;
  84. margin: 0rpx 5rpx;
  85. font-size: 20rpx;
  86. height: 30rpx;
  87. color: white;
  88. // background-color: rgb(124, 136, 242);
  89. background-color: var(--sexcolor);
  90. border-radius: 7rpx;
  91. flex-shrink: 0;
  92. }
  93. .authentication {
  94. display: flex;
  95. justify-content: center;
  96. align-items: center;
  97. padding: 0rpx 10rpx;
  98. margin: 0rpx 5rpx;
  99. font-size: 20rpx;
  100. height: 34rpx;
  101. padding: 0rpx 10rpx;
  102. color: white;
  103. background-color: #ffd036;
  104. border-radius: 7rpx;
  105. flex-shrink: 0;
  106. }
  107. .Times {
  108. display: flex;
  109. padding: 5rpx 0rpx;
  110. font-size: 20rpx;
  111. margin-top: 10rpx;
  112. .Month {
  113. margin: 0rpx 15rpx;
  114. }
  115. }
  116. }
  117. }
  118. </style>