paiMingXQ.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <template>
  2. <view class="box">
  3. <u-navbar :autoBack="true" title="个人信息" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#000000"></u-navbar>
  4. <view class="ban_box">
  5. <view style="width: 100%; margin: auto" v-if="swiperList.length > 0">
  6. <u-swiper
  7. :list="swiperList"
  8. imgMode="aspectFill"
  9. :height="160"
  10. :indicator="true"
  11. radius="5"
  12. :autoplay="true"
  13. keyName="image"
  14. bgColor="transparent"
  15. @click="swiperBtn"
  16. showTitle
  17. :circular="true"
  18. indicatorStyle="bottom: 10px"
  19. indicatorMode="dot"
  20. indicatorActiveColor="#fff"
  21. indicatorInactiveColor="rgba(255, 255, 255, 0.35)"
  22. ></u-swiper>
  23. </view>
  24. </view>
  25. <view class="item">
  26. <view class="">
  27. <image style="width: 190rpx; height: 250rpx" src="https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/toux.png"></image>
  28. </view>
  29. <view style="margin-left: 30rpx">
  30. <view class="">姓名:{{ detailsList.name }}</view>
  31. <view class="">所在地:{{ detailsList.region_id_text }}</view>
  32. <view class="">加入时间:{{ detailsList.created_at }}</view>
  33. <view class="">
  34. 认领的文物:{{detailsList.cr_titles}}
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. let that;
  42. export default {
  43. data() {
  44. return {
  45. cr_list: [],
  46. swiperList: ['https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/zyz_gr.png', 'https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/gj_zyjz.jpg'],
  47. volunteer_id: '',
  48. detailsList: {}
  49. };
  50. },
  51. onLoad(o) {
  52. that = this;
  53. this.volunteer_id = o.id;
  54. this.rankingDetails(o.id);
  55. },
  56. methods: {
  57. // 志愿者排行详情
  58. rankingDetails(id) {
  59. this.$api.rankingDetails({ main_body_id: 1, volunteer_id: id }, function (res) {
  60. // console.log(res, '排行的详情');
  61. if (res.code === 1) {
  62. that.detailsList = res.data;
  63. that.cr_list = res.data.cr_list.filter((item) => item.claim_status != 0);
  64. const filteredList = that.cr_list.filter((item) => item.image !== 'https://meng.wenlvti.net' && item.image !== 'http://cdnwwgj.wenlvti.net');
  65. if (filteredList.length > 0) {
  66. that.swiperList = filteredList;
  67. }
  68. } else {
  69. that.$common.errorToShow('请稍后再试');
  70. }
  71. });
  72. },
  73. swiperBtn(i) {
  74. uni.navigateTo({
  75. url: '/index_fenbao/GuanLi/XiangQing?id=' + this.swiperList[i].id
  76. });
  77. }
  78. }
  79. };
  80. </script>
  81. <style>
  82. .box {
  83. height: 100%;
  84. width: 100%;
  85. padding-bottom: 50rpx;
  86. /* background-color: #fff9e9; */
  87. background-image: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/xy_bgt.png');
  88. background-repeat: repeat-y;
  89. background-attachment: fixed;
  90. background-size: 100% 100%;
  91. }
  92. .ban_box {
  93. width: 92%;
  94. margin: auto;
  95. color: #90523c;
  96. font-size: 30rpx;
  97. line-height: 50rpx;
  98. font-weight: 600;
  99. }
  100. .item {
  101. display: flex;
  102. justify-content: start;
  103. /* width: 95%; */
  104. height: 620rpx;
  105. margin: auto;
  106. margin-left: 20rpx;
  107. margin-top: 50rpx;
  108. padding: 100rpx 45rpx 20rpx 50rpx;
  109. color: #90523c;
  110. font-weight: 600;
  111. line-height: 50rpx;
  112. font-size: 30rpx;
  113. background-image: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/bh_bg.png');
  114. background-repeat: no-repeat;
  115. background-size: 100% 100%;
  116. }
  117. .map_tit {
  118. display: flex;
  119. align-items: center;
  120. margin-left: 125rpx;
  121. margin-top: 50rpx;
  122. margin-bottom: 20rpx;
  123. font-size: 32rpx;
  124. font-family: Songti SC, Songti SC;
  125. font-weight: 900;
  126. line-height: 52rpx;
  127. color: #444444;
  128. }
  129. </style>