archivesDetail.vue 7.3 KB

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