archivesDetail.vue 7.6 KB

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