paiMingXQ.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. 认领的文物:
  35. <text v-for="item in cr_list" :key="item.id">{{ item.title }}、</text>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. let that;
  43. export default {
  44. data() {
  45. return {
  46. cr_list: [],
  47. 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'],
  48. volunteer_id: '',
  49. detailsList: {}
  50. };
  51. },
  52. onLoad(o) {
  53. that = this;
  54. this.volunteer_id = o.id;
  55. this.rankingDetails(o.id);
  56. },
  57. methods: {
  58. // 志愿者排行详情
  59. rankingDetails(id) {
  60. this.$api.rankingDetails({ main_body_id: 1, volunteer_id: id }, function (res) {
  61. // console.log(res, '排行的详情');
  62. if (res.code === 1) {
  63. that.detailsList = res.data;
  64. that.cr_list = res.data.cr_list.filter((item) => item.claim_status != 0);
  65. const filteredList = that.cr_list.filter((item) => item.image !== 'https://meng.wenlvti.net' && item.image !== 'http://cdnwwgj.wenlvti.net');
  66. if (filteredList.length > 0) {
  67. that.swiperList = filteredList;
  68. }
  69. } else {
  70. that.$common.errorToShow('请稍后再试');
  71. }
  72. });
  73. },
  74. swiperBtn(i) {
  75. uni.navigateTo({
  76. url: '/index_fenbao/GuanLi/XiangQing?id=' + this.swiperList[i].id
  77. });
  78. }
  79. }
  80. };
  81. </script>
  82. <style>
  83. .box {
  84. height: 100%;
  85. width: 100%;
  86. padding-bottom: 50rpx;
  87. /* background-color: #fff9e9; */
  88. background-image: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/xy_bgt.png');
  89. background-repeat: repeat-y;
  90. background-attachment: fixed;
  91. background-size: 100% 100%;
  92. }
  93. .ban_box {
  94. width: 92%;
  95. margin: auto;
  96. color: #90523c;
  97. font-size: 30rpx;
  98. line-height: 50rpx;
  99. font-weight: 600;
  100. }
  101. .item {
  102. display: flex;
  103. justify-content: start;
  104. /* width: 95%; */
  105. height: 620rpx;
  106. margin: auto;
  107. margin-left: 20rpx;
  108. margin-top: 50rpx;
  109. padding: 100rpx 45rpx 20rpx 50rpx;
  110. color: #90523c;
  111. font-weight: 600;
  112. line-height: 50rpx;
  113. font-size: 30rpx;
  114. background-image: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/bh_bg.png');
  115. background-repeat: no-repeat;
  116. background-size: 100% 100%;
  117. }
  118. .map_tit {
  119. display: flex;
  120. align-items: center;
  121. margin-left: 125rpx;
  122. margin-top: 50rpx;
  123. margin-bottom: 20rpx;
  124. font-size: 32rpx;
  125. font-family: Songti SC, Songti SC;
  126. font-weight: 900;
  127. line-height: 52rpx;
  128. color: #444444;
  129. }
  130. </style>