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

224 lines
4.0 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. <template>
  2. <view class="works" @click="$emit('click')">
  3. <view class="box"
  4. :style="{'--sexcolor' : sex[item.sex].color}">
  5. <view class="headPortraitimg">
  6. <image :src="item.userImage" mode="aspectFill"></image>
  7. </view>
  8. <view class="YaoduUniversalWall">
  9. <view class="heide">
  10. <view class="username text-ellipsis">
  11. {{ item.userName }}
  12. </view>
  13. <view class="inde"
  14. v-if="item.sex">
  15. <!-- 性别 -->
  16. {{ item.sex }}
  17. </view>
  18. <view class="inde"
  19. v-if="item.yearDate">
  20. <!-- 年份 -->
  21. {{ item.yearDate }}
  22. </view>
  23. <view class="inde"
  24. v-if="item.address">
  25. <!-- 地址 -->
  26. {{ item.address }}
  27. </view>
  28. <view class="authentication"
  29. v-if="item.isContent">
  30. <!-- 个人认证 -->
  31. {{ item.isContent }}
  32. </view>
  33. </view>
  34. <view class="Times">
  35. <view class="TimeMonth">
  36. <!-- 10-08 -->
  37. {{ item.createTime }}发布
  38. </view>
  39. <!-- <view class="Month">
  40. 12:34
  41. </view> -->
  42. </view>
  43. </view>
  44. </view>
  45. <view class="dynamics" v-html="$utils.stringFormatHtml(item.title)">
  46. </view>
  47. <view class="Artworkimages">
  48. <view class="wrokimg"
  49. @click.stop="previewImage(item.image, i)"
  50. :key="i" v-for="(img, i) in item.image">
  51. <image :src="img" mode="aspectFill"></image>
  52. </view>
  53. </view>
  54. <view class="bottom">
  55. <view class="browse">
  56. {{ item.isBrowse }}浏览
  57. </view>
  58. <view class="browse">
  59. {{ item.isComment }}条评论
  60. </view>
  61. <view class="Leavingamessage">
  62. <uv-icon size="40rpx" name="chat"></uv-icon>
  63. </view>
  64. <view class="Leavingamessage"
  65. v-if="del"
  66. @click.stop="$emit('del')">
  67. <uv-icon size="40rpx" name="trash"></uv-icon>
  68. </view>
  69. </view>
  70. </view>
  71. </template>
  72. <script>
  73. import mixinsSex from '@/mixins/sex.js'
  74. export default {
  75. mixins: [mixinsSex],
  76. props: {
  77. item: {},
  78. del : {},
  79. },
  80. data() {
  81. return {
  82. }
  83. },
  84. methods: {
  85. },
  86. }
  87. </script>
  88. <style scoped lang="scss">
  89. .works {
  90. margin: 40rpx 20rpx;
  91. background-color: #fff;
  92. padding: 40rpx;
  93. border-radius: 20rpx;
  94. box-shadow: 0 0 6rpx 6rpx #00000011;
  95. .box {
  96. display: flex;
  97. align-items: center;
  98. .headPortraitimg {
  99. width: 100rpx;
  100. height: 100rpx;
  101. border-radius: 15rpx;
  102. overflow: hidden;
  103. image{
  104. width: 100%;
  105. height: 100%;
  106. }
  107. }
  108. .YaoduUniversalWall {
  109. padding: 0rpx 10rpx;
  110. .username {
  111. max-width: 200rpx;
  112. }
  113. .heide {
  114. display: flex;
  115. justify-content: center;
  116. align-items: center;
  117. }
  118. .inde {
  119. display: flex;
  120. justify-content: center;
  121. align-items: center;
  122. padding: 0rpx 10rpx;
  123. margin: 0rpx 5rpx;
  124. font-size: 20rpx;
  125. height: 30rpx;
  126. color: white;
  127. // background-color: rgb(124, 136, 242);
  128. background-color: var(--sexcolor);
  129. border-radius: 7rpx;
  130. flex-shrink: 0;
  131. }
  132. .authentication {
  133. display: flex;
  134. justify-content: center;
  135. align-items: center;
  136. padding: 0rpx 10rpx;
  137. margin: 0rpx 5rpx;
  138. font-size: 20rpx;
  139. height: 34rpx;
  140. padding: 0rpx 10rpx;
  141. color: white;
  142. background-color: #ffd036;
  143. border-radius: 7rpx;
  144. flex-shrink: 0;
  145. }
  146. .Times {
  147. display: flex;
  148. padding: 5rpx 0rpx;
  149. font-size: 20rpx;
  150. margin-top: 10rpx;
  151. .Month {
  152. margin: 0rpx 15rpx;
  153. }
  154. }
  155. }
  156. }
  157. .personalInformation {
  158. display: flex;
  159. .inde {
  160. font-size: 25rpx;
  161. padding: 0rpx 8rpx;
  162. }
  163. .authentication {
  164. font-size: 25rpx;
  165. }
  166. }
  167. .dynamics {
  168. margin-top: 20rpx;
  169. font-size: 28rpx;
  170. // font-weight: bold;
  171. // line-height: 35rpx;
  172. letter-spacing: 3rpx;
  173. }
  174. .Artworkimages {
  175. display: flex;
  176. flex-wrap: wrap;
  177. .wrokimg {
  178. margin: 10rpx;
  179. image {
  180. height: 190rpx;
  181. width: 190rpx;
  182. border-radius: 20rpx;
  183. }
  184. }
  185. }
  186. .bottom {
  187. display: flex;
  188. margin-top: 20rpx;
  189. font-size: 24rpx;
  190. .browse {
  191. margin: 0rpx 30rpx;
  192. color: rgb(132, 132, 132);
  193. }
  194. .Leavingamessage {
  195. height: 20rpx;
  196. width: 20rpx;
  197. margin-left: auto;
  198. }
  199. }
  200. }
  201. </style>