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

221 lines
3.9 KiB

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.addId">
  25. <!-- 地址 -->
  26. {{ item.addId }}
  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(images, i)"
  50. :key="i" v-for="(img, i) in images">
  51. <image :src="img" mode="aspectFill"></image>
  52. </view>
  53. </view>
  54. <view class="bottom">
  55. <view class="Leavingamessage"
  56. @click.stop="$emit('del')">
  57. <uv-icon size="40rpx" name="trash"></uv-icon>
  58. </view>
  59. </view>
  60. </view>
  61. </template>
  62. <script>
  63. import mixinsSex from '@/mixins/sex.js'
  64. export default {
  65. mixins: [mixinsSex],
  66. props: {
  67. item: {},
  68. },
  69. data() {
  70. return {
  71. }
  72. },
  73. computed : {
  74. images(){
  75. if(!this.item.image){
  76. return []
  77. }
  78. return this.item.image.split(',')
  79. }
  80. },
  81. methods: {
  82. },
  83. }
  84. </script>
  85. <style scoped lang="scss">
  86. .works {
  87. margin: 40rpx 20rpx;
  88. background-color: #fff;
  89. padding: 40rpx;
  90. border-radius: 20rpx;
  91. box-shadow: 0 0 6rpx 6rpx #00000011;
  92. .box {
  93. display: flex;
  94. align-items: center;
  95. .headPortraitimg {
  96. width: 100rpx;
  97. height: 100rpx;
  98. border-radius: 15rpx;
  99. overflow: hidden;
  100. image{
  101. width: 100%;
  102. height: 100%;
  103. }
  104. }
  105. .YaoduUniversalWall {
  106. padding: 0rpx 10rpx;
  107. .username {
  108. max-width: 200rpx;
  109. }
  110. .heide {
  111. display: flex;
  112. justify-content: center;
  113. align-items: center;
  114. }
  115. .inde {
  116. display: flex;
  117. justify-content: center;
  118. align-items: center;
  119. padding: 0rpx 10rpx;
  120. margin: 0rpx 5rpx;
  121. font-size: 20rpx;
  122. height: 30rpx;
  123. color: white;
  124. // background-color: rgb(124, 136, 242);
  125. background-color: var(--sexcolor);
  126. border-radius: 7rpx;
  127. flex-shrink: 0;
  128. }
  129. .authentication {
  130. display: flex;
  131. justify-content: center;
  132. align-items: center;
  133. padding: 0rpx 10rpx;
  134. margin: 0rpx 5rpx;
  135. font-size: 20rpx;
  136. height: 34rpx;
  137. padding: 0rpx 10rpx;
  138. color: white;
  139. background-color: #ffd036;
  140. border-radius: 7rpx;
  141. flex-shrink: 0;
  142. }
  143. .Times {
  144. display: flex;
  145. padding: 5rpx 0rpx;
  146. font-size: 20rpx;
  147. margin-top: 10rpx;
  148. .Month {
  149. margin: 0rpx 15rpx;
  150. }
  151. }
  152. }
  153. }
  154. .personalInformation {
  155. display: flex;
  156. .inde {
  157. font-size: 25rpx;
  158. padding: 0rpx 8rpx;
  159. }
  160. .authentication {
  161. font-size: 25rpx;
  162. }
  163. }
  164. .dynamics {
  165. margin-top: 20rpx;
  166. font-size: 28rpx;
  167. // font-weight: bold;
  168. // line-height: 35rpx;
  169. letter-spacing: 3rpx;
  170. }
  171. .Artworkimages {
  172. display: flex;
  173. flex-wrap: wrap;
  174. .wrokimg {
  175. margin: 10rpx;
  176. image {
  177. height: 190rpx;
  178. width: 190rpx;
  179. border-radius: 20rpx;
  180. }
  181. }
  182. }
  183. .bottom {
  184. display: flex;
  185. margin-top: 20rpx;
  186. font-size: 24rpx;
  187. .browse {
  188. margin: 0rpx 30rpx;
  189. color: rgb(132, 132, 132);
  190. }
  191. .Leavingamessage {
  192. height: 20rpx;
  193. width: 20rpx;
  194. margin-left: auto;
  195. }
  196. }
  197. }
  198. </style>