archivesDetail.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <template>
  2. <view class="common_page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title="公益档案" bgColor="transparent"></cus-header>
  4. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/28/b8876bf2-6bec-4ab2-99f1-6316c9d3deff.png" class="top_bg_img" mode="widthFix"></image>
  5. <div class="box box1">
  6. <div class="content">
  7. <div class="card">
  8. <div class="avatar">
  9. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/28/d3dbdf00-6fee-40ca-96d2-8b95a004d9e7.png"></image>
  10. </div>
  11. <image class="logo" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/28/59a63fde-bbd8-4419-a65a-b714790f6b0a.png"></image>
  12. <image class="heart" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/28/234c696f-a538-45c3-ab11-c0946305f2c2.png"></image>
  13. <div class="level">Lv.{{info?.userLevel||1}}</div>
  14. <div class="name-tip">昵称/NAME</div>
  15. <div class="name">{{info?.memberName||''}}</div>
  16. <div class="kh-tip">家庭公益口号</div>
  17. <div class="kh">{{info?.welfareSlogan||''}}</div>
  18. <div class="memo">亲爱的,从{{info?.activityStartTime||''}}至{{info?.activityEndTime||''}},您的每一分善意都让世界更温暖!</div>
  19. <div class="gx-tip">爱心贡献/CONTRIBUTION</div>
  20. <div class="num" style="margin-top: 28rpx;">捐赠爱心值<text>{{info?.valueLimit||0}}</text></div>
  21. <div class="num">获得义工时长<text>{{info?.serviceHours||0}}</text>小时</div>
  22. </div>
  23. </div>
  24. </div>
  25. <div class="box box2">
  26. <image class="box-title" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/28/6cbc5700-77f4-4ae8-b4eb-28c4e7748029.png"></image>
  27. <div class="content">{{info?.experience||''}}</div>
  28. </div>
  29. <div class="box box2">
  30. <image class="box-title" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/28/56ffd9a5-b42a-4eb5-879d-b38a2c05bdae.png"></image>
  31. <div class="content">
  32. <image class="img" v-for="(item,index) in imgs" :key="index" :src="item" mode="widthFix"></image>
  33. </div>
  34. </div>
  35. <div class="back" @tap="goBack">返回</div>
  36. </view>
  37. </template>
  38. <script setup name="">
  39. import CusHeader from '@/components/CusHeader/index.vue'
  40. import { onLoad } from '@dcloudio/uni-app'
  41. import { ref, getCurrentInstance } from 'vue'
  42. const { proxy } = getCurrentInstance()
  43. const info = ref(null)
  44. const imgs = ref([])
  45. const goBack = () => {
  46. uni.navigateBack();
  47. }
  48. onLoad(options=>{
  49. proxy.$api.get(`/core/activity/signup/getMemberProfile/${options?.activityId}/${options?.memberId}`).then(({data:res})=>{
  50. if(res.code!==0) return proxy.$showToast(res.msg)
  51. info.value = res.data;
  52. imgs.value = res.data.activityFile&&res.data.activityFile.split(';');
  53. })
  54. })
  55. </script>
  56. <style scoped lang="scss">
  57. .common_page{
  58. background: #F9FEFD;
  59. padding-bottom: 64rpx;
  60. box-sizing: border-box;
  61. .box{
  62. background: #D9F9E9;
  63. border-radius: 48rpx;
  64. position: relative;
  65. margin-top: 40rpx;
  66. padding: 14rpx;
  67. &-title{
  68. width: 263rpx;
  69. height: 79rpx;
  70. position: absolute;
  71. top: 0;
  72. left: 50%;
  73. margin-left: -131.5rpx;
  74. }
  75. &.box1{
  76. margin-top: 30rpx;
  77. .content{
  78. border-radius: 32rpx;
  79. padding: 0 18rpx 18rpx;
  80. background-color: #EFFDF2;
  81. background-image: url('https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/28/64746c13-7ddc-4224-a1d4-060d126e7a71.png');
  82. background-repeat: no-repeat;
  83. background-size: 337rpx 450rpx;
  84. background-position: top right;
  85. overflow: hidden;
  86. border: 6rpx solid #FFFFFF;
  87. .card{
  88. position: relative;
  89. border-radius: 24rpx;
  90. padding: 63rpx 39rpx;
  91. box-sizing: border-box;
  92. margin-top: 142rpx;
  93. background: #FFFFFF;
  94. .avatar{
  95. width: 116rpx;
  96. height: 116rpx;
  97. border: 6rpx solid #FFFFFF;
  98. border-radius: 50%;
  99. position: absolute;
  100. left: 39rpx;
  101. top: -74rpx;
  102. image{
  103. width: 100%;
  104. height: 100%;
  105. }
  106. }
  107. .logo{
  108. width: 159rpx;
  109. height: 40rpx;
  110. position: absolute;
  111. top: 40rpx;
  112. right: 24rpx;
  113. }
  114. .name-tip{
  115. font-family: PingFang-SC, PingFang-SC;
  116. font-weight: bold;
  117. font-size: 24rpx;
  118. color: #B2B2B2;
  119. line-height: 24rpx;
  120. }
  121. .name{
  122. font-family: PingFang-SC, PingFang-SC;
  123. font-weight: bold;
  124. font-size: 32rpx;
  125. color: #252525;
  126. line-height: 32rpx;
  127. margin-top: 16rpx;
  128. }
  129. .kh-tip{
  130. font-family: PingFang-SC, PingFang-SC;
  131. font-weight: bold;
  132. font-size: 24rpx;
  133. color: #B2B2B2;
  134. line-height: 24rpx;
  135. margin-top: 44rpx;
  136. }
  137. .kh{
  138. font-family: PingFang-SC, PingFang-SC;
  139. font-weight: 800;
  140. font-size: 44rpx;
  141. color: #70CF52;
  142. line-height: 44rpx;
  143. margin-top: 24rpx;
  144. }
  145. .memo{
  146. font-family: PingFang-SC, PingFang-SC;
  147. font-weight: bold;
  148. font-size: 24rpx;
  149. color: #B2B2B2;
  150. line-height: 39rpx;
  151. margin-top: 64rpx;
  152. }
  153. .gx-tip{
  154. font-family: PingFang-SC, PingFang-SC;
  155. font-weight: bold;
  156. font-size: 24rpx;
  157. color: #B2B2B2;
  158. line-height: 36rpx;
  159. margin-top: 112rpx;
  160. }
  161. .num{
  162. font-family: PingFangSC, PingFang SC;
  163. font-weight: 400;
  164. font-size: 24rpx;
  165. color: #151B29;
  166. line-height: 36rpx;
  167. margin-top: 20rpx;
  168. text{
  169. font-family: AaHouDiHei;
  170. font-size: 26rpx;
  171. font-weight: bold;
  172. color: #70CF52;
  173. line-height: 36rpx;
  174. margin: 10rpx;
  175. }
  176. }
  177. .heart{
  178. width: 235rpx;
  179. height: 230rpx;
  180. position: absolute;
  181. right: 0;
  182. bottom: 64rpx;
  183. }
  184. .level{
  185. width: 250rpx;
  186. height: 64rpx;
  187. background: url('https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/28/f547998f-f2c2-4098-a908-e2b70d16d60c.png') no-repeat;
  188. background-repeat: no-repeat;
  189. background-size: 100% 100%;
  190. position: absolute;
  191. right: 0;
  192. bottom: 0;
  193. font-family: PingFang-SC, PingFang-SC;
  194. font-weight: 800;
  195. font-size: 48rpx;
  196. color: #FFFFFF;
  197. line-height: 64rpx;
  198. text-align: center;
  199. }
  200. }
  201. }
  202. }
  203. &.box2{
  204. .content{
  205. background: #FFFFFF;
  206. font-family: PingFangSC, PingFang SC;
  207. font-weight: 400;
  208. font-size: 28rpx;
  209. color: #4E5969;
  210. line-height: 48rpx;
  211. padding: 96rpx 32rpx 46rpx;
  212. border-radius: 32rpx;
  213. img{
  214. width: 100%;
  215. }
  216. }
  217. }
  218. }
  219. .back{
  220. width: 100%;
  221. height: 90rpx;
  222. background: #B7F358;
  223. border-radius: 45rpx;
  224. margin-top: 40rpx;
  225. font-family: PingFang-SC, PingFang-SC;
  226. font-weight: bold;
  227. font-size: 32rpx;
  228. color: #151B29;
  229. line-height: 90rpx;
  230. text-align: center;
  231. letter-spacing: 2rpx;
  232. }
  233. }
  234. </style>