index.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <template>
  2. <view class="ni">
  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">{{'张琳琳'}}</div>
  7. <image class="sex" v-if="sex==2" 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="sex==1" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/12/a1899fd0-c468-48d9-b554-2f17b75a4157.png"></image>
  9. <div class="age" :class="{'women':sex==2,'man':sex==1}">{{46}}岁</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="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/11/d3c53597-a848-4a33-8deb-ab256f028baa.png"></image>
  16. </div>
  17. <div class="ni-info-right">
  18. <div class="title">{{'中国少年先锋队诞辰日'}}</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">{{"2025-06-01 ~ 2025-06-02"}}</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">{{"广东省深圳市南山区"}}</div>
  32. </div>
  33. <div class="bottom">
  34. <div class="btn">取消报名</div>
  35. </div>
  36. </div>
  37. </div>
  38. </view>
  39. </template>
  40. <script setup name="NonprofitItem">
  41. import { ref } from 'vue'
  42. const props = defineProps({
  43. sex:{
  44. typeof:Number,
  45. default:1
  46. }
  47. })
  48. </script>
  49. <style scoped lang="scss">
  50. .ni{
  51. background: #FFFFFF;
  52. border-radius: 24rpx;
  53. padding: 40rpx 24rpx 32rpx;
  54. margin-top: 20rpx;
  55. &-top{
  56. &-left{
  57. .avatar{
  58. width: 48rpx;
  59. height: 48rpx;
  60. }
  61. .name{
  62. font-family: PingFang-SC, PingFang-SC;
  63. font-weight: bold;
  64. font-size: 32rpx;
  65. color: #151B29;
  66. line-height: 32rpx;
  67. margin-left: 16rpx;
  68. }
  69. .sex{
  70. width: 44rpx;
  71. height: 32rpx;
  72. margin-left: 10rpx;
  73. }
  74. .age{
  75. border-radius: 13rpx;
  76. font-family: PingFangSC, PingFang SC;
  77. font-weight: 400;
  78. font-size: 20rpx;
  79. line-height: 24rpx;
  80. padding: 4rpx 10rpx;
  81. margin-left: 13rpx;
  82. &.women{
  83. background: rgba(244,101,122,0.14);
  84. color: #F4657A;
  85. }
  86. &.man{
  87. background: rgba(5,169,254,0.12);
  88. color: #05A9FE;
  89. }
  90. }
  91. }
  92. &-right{
  93. background: rgba(183, 243, 88, .2);
  94. border-radius: 27rpx;
  95. padding: 12rpx 18rpx;
  96. font-family: PingFangSC, PingFang SC;
  97. font-weight: 400;
  98. font-size: 24rpx;
  99. color: #70CF52;
  100. line-height: 24rpx;
  101. }
  102. }
  103. &-info{
  104. margin-top: 40rpx;
  105. &-left{
  106. width: 158rpx;
  107. height: 214rpx;
  108. image{
  109. width: 100%;
  110. height: 100%;
  111. }
  112. }
  113. &-right{
  114. width: calc(100% - 158rpx);
  115. padding-left: 20rpx;
  116. box-sizing: border-box;
  117. .title{
  118. font-family: PingFang-SC, PingFang-SC;
  119. font-weight: bold;
  120. font-size: 32rpx;
  121. color: #151B29;
  122. line-height: 40rpx;
  123. margin-bottom: 5rpx;
  124. }
  125. .tip{
  126. margin-top: 25rpx;
  127. &-left{
  128. width: 160rpx;
  129. image{
  130. width: 24rpx;
  131. height: 24rpx;
  132. }
  133. text{
  134. font-family: PingFangSC, PingFang SC;
  135. font-weight: 400;
  136. font-size: 24rpx;
  137. color: #676775;
  138. line-height: 24rpx;
  139. margin-left: 10rpx;
  140. }
  141. }
  142. &-right{
  143. width: calc(100% - 160rpx);
  144. font-family: PingFangSC, PingFang SC;
  145. font-weight: 400;
  146. font-size: 24rpx;
  147. color: #676775;
  148. line-height: 24rpx;
  149. margin-left: 10rpx;
  150. }
  151. }
  152. .bottom{
  153. margin-top: 30rpx;
  154. display: flex;
  155. justify-content: flex-end;
  156. }
  157. .btn{
  158. background: #B7F358;
  159. border-radius: 27rpx;
  160. padding: 12rpx 26rpx;
  161. font-family: PingFang-SC, PingFang-SC;
  162. font-weight: bold;
  163. font-size: 24rpx;
  164. color: #252525;
  165. line-height: 30rpx;
  166. }
  167. }
  168. }
  169. }
  170. </style>