archivesDetail.vue 7.6 KB

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