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

141 lines
2.4 KiB

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