archivesDetail.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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://oss.familydaf.cn/sxsnfile/20251218/ffe07fb2762e47e8b09b1880e693fa66.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="avatar"></image>
  10. </div>
  11. <image class="logo" src="https://oss.familydaf.cn/sxsnfile/20251218/de06733ceb7f4178bf2e9e6d4ca22aa1.png"></image>
  12. <image class="heart" src="https://oss.familydaf.cn/sxsnfile/20251218/4b2c795dd0214ccb8bce4e099acfe0ed.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://oss.familydaf.cn/sxsnfile/20251218/c4d1e2de2eba4844965af7ca2e26d527.png"></image>
  27. <div class="content">{{info?.experience||''}}</div>
  28. </div>
  29. <div class="box box2">
  30. <image class="box-title" src="https://oss.familydaf.cn/sxsnfile/20251218/454dfee71bc7424c83ebf4fdc71fc6c7.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 avatar = ref('')
  44. const info = ref(null)
  45. const imgs = ref([])
  46. const goBack = () => {
  47. uni.navigateBack();
  48. }
  49. onLoad(options=>{
  50. if(uni.getStorageSync('userInfo')){
  51. avatar.value = JSON.parse(uni.getStorageSync('userInfo'))?.avatarPath||'https://oss.familydaf.cn/sxsnfile/20251218/3821654e080945998d464f3c3aa64122.png';
  52. }
  53. proxy.$api.get(`/core/activity/signup/getMemberProfile/${options?.activityId}/${options?.memberId}`).then(({data:res})=>{
  54. if(res.code!==0) return proxy.$showToast(res.msg)
  55. info.value = res.data;
  56. imgs.value = res.data.activityFile&&res.data.activityFile.split(';');
  57. })
  58. })
  59. </script>
  60. <style scoped lang="scss">
  61. .common_page{
  62. background: #F9FEFD;
  63. padding-bottom: 64rpx;
  64. box-sizing: border-box;
  65. .box{
  66. background: #D9F9E9;
  67. border-radius: 48rpx;
  68. position: relative;
  69. margin-top: 40rpx;
  70. padding: 14rpx;
  71. &-title{
  72. width: 263rpx;
  73. height: 79rpx;
  74. position: absolute;
  75. top: 0;
  76. left: 50%;
  77. margin-left: -131.5rpx;
  78. }
  79. &.box1{
  80. margin-top: 30rpx;
  81. .content{
  82. border-radius: 32rpx;
  83. padding: 0 18rpx 18rpx;
  84. background-color: #EFFDF2;
  85. background-image: url('https://oss.familydaf.cn/sxsnfile/20251218/1b95e5a813f24c6ab7e753c83d7bebc7.png');
  86. background-repeat: no-repeat;
  87. background-size: 337rpx 450rpx;
  88. background-position: top right;
  89. overflow: hidden;
  90. border: 6rpx solid #FFFFFF;
  91. .card{
  92. position: relative;
  93. border-radius: 24rpx;
  94. padding: 63rpx 39rpx;
  95. box-sizing: border-box;
  96. margin-top: 142rpx;
  97. background: #FFFFFF;
  98. .avatar{
  99. width: 116rpx;
  100. height: 116rpx;
  101. border: 6rpx solid #FFFFFF;
  102. border-radius: 50%;
  103. position: absolute;
  104. left: 39rpx;
  105. top: -74rpx;
  106. image{
  107. width: 100%;
  108. height: 100%;
  109. border-radius: 50%;
  110. }
  111. }
  112. .logo{
  113. width: 159rpx;
  114. height: 40rpx;
  115. position: absolute;
  116. top: 40rpx;
  117. right: 24rpx;
  118. }
  119. .name-tip{
  120. font-family: PingFang-SC, PingFang-SC;
  121. font-weight: bold;
  122. font-size: 24rpx;
  123. color: #B2B2B2;
  124. line-height: 24rpx;
  125. }
  126. .name{
  127. font-family: PingFang-SC, PingFang-SC;
  128. font-weight: bold;
  129. font-size: 32rpx;
  130. color: #252525;
  131. line-height: 32rpx;
  132. margin-top: 16rpx;
  133. }
  134. .kh-tip{
  135. font-family: PingFang-SC, PingFang-SC;
  136. font-weight: bold;
  137. font-size: 24rpx;
  138. color: #B2B2B2;
  139. line-height: 24rpx;
  140. margin-top: 44rpx;
  141. }
  142. .kh{
  143. font-family: PingFang-SC, PingFang-SC;
  144. font-weight: 800;
  145. font-size: 44rpx;
  146. color: #70CF52;
  147. line-height: 44rpx;
  148. margin-top: 24rpx;
  149. }
  150. .memo{
  151. font-family: PingFang-SC, PingFang-SC;
  152. font-weight: bold;
  153. font-size: 24rpx;
  154. color: #B2B2B2;
  155. line-height: 39rpx;
  156. margin-top: 64rpx;
  157. }
  158. .gx-tip{
  159. font-family: PingFang-SC, PingFang-SC;
  160. font-weight: bold;
  161. font-size: 24rpx;
  162. color: #B2B2B2;
  163. line-height: 36rpx;
  164. margin-top: 112rpx;
  165. }
  166. .num{
  167. font-family: PingFangSC, PingFang SC;
  168. font-weight: 400;
  169. font-size: 24rpx;
  170. color: #151B29;
  171. line-height: 36rpx;
  172. margin-top: 20rpx;
  173. text{
  174. font-family: AaHouDiHei;
  175. font-size: 26rpx;
  176. font-weight: bold;
  177. color: #70CF52;
  178. line-height: 36rpx;
  179. margin: 10rpx;
  180. }
  181. }
  182. .heart{
  183. width: 235rpx;
  184. height: 230rpx;
  185. position: absolute;
  186. right: 0;
  187. bottom: 64rpx;
  188. }
  189. .level{
  190. width: 250rpx;
  191. height: 64rpx;
  192. background: url('https://oss.familydaf.cn/sxsnfile/20251218/ab4a3c4e109b418087ef01667e472cd0.png') no-repeat;
  193. background-repeat: no-repeat;
  194. background-size: 100% 100%;
  195. position: absolute;
  196. right: 0;
  197. bottom: 0;
  198. font-family: PingFang-SC, PingFang-SC;
  199. font-weight: 800;
  200. font-size: 48rpx;
  201. color: #FFFFFF;
  202. line-height: 64rpx;
  203. text-align: center;
  204. }
  205. }
  206. }
  207. }
  208. &.box2{
  209. .content{
  210. background: #FFFFFF;
  211. font-family: PingFangSC, PingFang SC;
  212. font-weight: 400;
  213. font-size: 28rpx;
  214. color: #4E5969;
  215. line-height: 48rpx;
  216. padding: 96rpx 32rpx 46rpx;
  217. border-radius: 32rpx;
  218. img{
  219. width: 100%;
  220. }
  221. }
  222. }
  223. }
  224. .back{
  225. width: 100%;
  226. height: 90rpx;
  227. background: #B7F358;
  228. border-radius: 45rpx;
  229. margin-top: 40rpx;
  230. font-family: PingFang-SC, PingFang-SC;
  231. font-weight: bold;
  232. font-size: 32rpx;
  233. color: #151B29;
  234. line-height: 90rpx;
  235. text-align: center;
  236. letter-spacing: 2rpx;
  237. }
  238. }
  239. </style>