index.vue 4.7 KB

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