index.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <template>
  2. <view class="ni" v-if="item">
  3. <view class="ni-top adfacjb">
  4. <view class="ni-top-left adfac">
  5. <image class="avatar" src="https://oss.familydaf.cn/sxsnfile/20251218/3821654e080945998d464f3c3aa64122.png"></image>
  6. <view class="name">{{item?.memberName||''}}</view>
  7. <image class="sex" v-if="item?.gender==1" src="https://oss.familydaf.cn/sxsnfile/20251218/473d5677fbdb4106acdb9a163377d27f.png"></image>
  8. <image class="sex" v-else-if="item?.gender==0" src="https://oss.familydaf.cn/sxsnfile/20251218/02bc40a1c47b40f1a36b55cd0553211c.png"></image>
  9. <view class="age" :class="{'women':item?.gender==1,'man':item?.gender==0}">{{item?.age||0}}岁</view>
  10. </view>
  11. </view>
  12. <view class="ni-info adfacjb">
  13. <view class="ni-info-left">
  14. <image :src="item?.coverFile||''"></image>
  15. </view>
  16. <view class="ni-info-right">
  17. <view class="title">{{item?.activityName||''}}</view>
  18. <view class="tip adf">
  19. <view class="tip-left adfac">
  20. <image src="https://oss.familydaf.cn/sxsnfile/20251218/762878799914422d835e505291b9d4c6.png"></image>
  21. <text>活动时间:</text>
  22. </view>
  23. <view class="tip-right">{{item?.activityStartTime||''}} ~ {{item?.activityEndTime||''}}</view>
  24. </view>
  25. <view class="tip adf">
  26. <view class="tip-left adfac">
  27. <image src="https://oss.familydaf.cn/sxsnfile/20251218/57539643ab974aef9401d76818e1bf3b.png"></image>
  28. <text>活动地点:</text>
  29. </view>
  30. <view class="tip-right">{{item?.provinceName||''}}{{item?.cityName||''}}</view>
  31. </view>
  32. <view class="bottom">
  33. <view class="btn" @click="handleReview">查看档案</view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. <script setup name="ArchivesBox">
  40. import { ref } from 'vue'
  41. const props = defineProps({
  42. item:{
  43. typeof:Object,
  44. default:null
  45. }
  46. })
  47. const emit = defineEmits(['handleReviewFile'])
  48. const handleReview = () =>{
  49. emit('handleReviewFile',props.item)
  50. }
  51. </script>
  52. <style scoped lang="scss">
  53. .ni{
  54. background: #FFFFFF;
  55. border-radius: 24rpx;
  56. padding: 40rpx 24rpx 32rpx;
  57. margin-top: 20rpx;
  58. &-top{
  59. &-left{
  60. .avatar{
  61. width: 48rpx;
  62. height: 48rpx;
  63. }
  64. .name{
  65. font-family: PingFang-SC, PingFang-SC;
  66. font-weight: bold;
  67. font-size: 32rpx;
  68. color: #151B29;
  69. line-height: 32rpx;
  70. margin-left: 16rpx;
  71. }
  72. .sex{
  73. width: 44rpx;
  74. height: 32rpx;
  75. margin-left: 10rpx;
  76. }
  77. .age{
  78. border-radius: 13rpx;
  79. font-family: PingFangSC, PingFang SC;
  80. font-weight: 400;
  81. font-size: 20rpx;
  82. line-height: 24rpx;
  83. padding: 4rpx 10rpx;
  84. margin-left: 13rpx;
  85. &.women{
  86. background: rgba(244,101,122,0.14);
  87. color: #F4657A;
  88. }
  89. &.man{
  90. background: rgba(5,169,254,0.12);
  91. color: #05A9FE;
  92. }
  93. }
  94. }
  95. &-right{
  96. background: rgba(183, 243, 88, .2);
  97. border-radius: 27rpx;
  98. padding: 12rpx 18rpx;
  99. font-family: PingFangSC, PingFang SC;
  100. font-weight: 400;
  101. font-size: 24rpx;
  102. color: #70CF52;
  103. line-height: 24rpx;
  104. &.grey{
  105. background: #F0F2F8;
  106. color: #646464;
  107. }
  108. }
  109. }
  110. &-info{
  111. margin-top: 40rpx;
  112. &-left{
  113. width: 158rpx;
  114. height: 214rpx;
  115. image{
  116. width: 100%;
  117. height: 100%;
  118. }
  119. }
  120. &-right{
  121. width: calc(100% - 158rpx);
  122. padding-left: 20rpx;
  123. box-sizing: border-box;
  124. .title{
  125. font-family: PingFang-SC, PingFang-SC;
  126. font-weight: bold;
  127. font-size: 32rpx;
  128. color: #151B29;
  129. line-height: 40rpx;
  130. margin-bottom: 5rpx;
  131. }
  132. .tip{
  133. align-items: flex-start;
  134. margin-top: 25rpx;
  135. &-left{
  136. width: 160rpx;
  137. image{
  138. width: 24rpx;
  139. height: 24rpx;
  140. }
  141. text{
  142. font-family: PingFangSC, PingFang SC;
  143. font-weight: 400;
  144. font-size: 24rpx;
  145. color: #676775;
  146. line-height: 24rpx;
  147. margin-left: 10rpx;
  148. }
  149. }
  150. &-right{
  151. width: calc(100% - 160rpx);
  152. font-family: PingFangSC, PingFang SC;
  153. font-weight: 400;
  154. font-size: 24rpx;
  155. color: #676775;
  156. line-height: 24rpx;
  157. margin-left: 10rpx;
  158. }
  159. }
  160. .bottom{
  161. margin-top: 30rpx;
  162. display: flex;
  163. justify-content: flex-end;
  164. }
  165. .btn{
  166. background: #B7F358;
  167. border-radius: 27rpx;
  168. padding: 12rpx 26rpx;
  169. font-family: PingFang-SC, PingFang-SC;
  170. font-weight: bold;
  171. font-size: 24rpx;
  172. color: #252525;
  173. line-height: 30rpx;
  174. }
  175. }
  176. }
  177. }
  178. </style>