xiangQing.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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 style="width: 92%; margin: auto" v-if="swiperList.length > 0">
  5. <u-swiper
  6. :list="swiperList"
  7. imgMode="aspectFill"
  8. :height="160"
  9. :indicator="true"
  10. radius="5"
  11. :autoplay="true"
  12. keyName="image"
  13. @click="swiperBtn"
  14. showTitle
  15. :circular="true"
  16. indicatorStyle="bottom: 10px"
  17. indicatorMode="dot"
  18. indicatorActiveColor="#fff"
  19. indicatorInactiveColor="rgba(255, 255, 255, 0.35)"
  20. ></u-swiper>
  21. </view>
  22. <view class="ban_box">
  23. <view class="item">
  24. <view class="">
  25. <image style="width: 190rpx; height: 250rpx" src="https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/toux.png"></image>
  26. </view>
  27. <view style="margin-left: 30rpx">
  28. <view class="">姓名:{{ detailsList.name }}</view>
  29. <!-- <view class="">性别:{{ detailsList.sex_text ? detailsList.sex_text : '暂未填写' }}</view> -->
  30. <view class="">年龄:{{ detailsList.age ? detailsList.age : '暂未填写' }}</view>
  31. <view class="">联系方式:{{ detailsList.mobile }}</view>
  32. <view class="">所在地:{{ detailsList.address }}</view>
  33. </view>
  34. </view>
  35. <view class="">
  36. 认领的文物:
  37. <text v-for="item in cr_list" :key="item.id">{{ item.title }}、</text>
  38. </view>
  39. <view class="">巡查次数:{{ detailsList.patrolNum }}</view>
  40. <view class="">巡查完成率:{{ detailsList.completion_rate }}</view>
  41. <view class="">月度积分:{{ detailsList.monthScore }}</view>
  42. <view class="">年度积分:{{ detailsList.yearScore }}</view>
  43. <view class="">加入时间:{{ detailsList.created_at }}</view>
  44. <view class="">身份证:{{ detailsList.id_card }}</view>
  45. <view style="height: 500rpx; overflow: scroll">个人简介:{{ detailsList.intro || '暂无介绍' }}</view>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. let that;
  51. export default {
  52. data() {
  53. return {
  54. cr_list: [],
  55. volunteer_id: '',
  56. detailsList: {},
  57. 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']
  58. };
  59. },
  60. onLoad(o) {
  61. that = this;
  62. this.volunteer_id = o.id;
  63. this.details(o.id);
  64. },
  65. methods: {
  66. // 志愿者列表详情
  67. details(id) {
  68. this.$api.details({ main_body_id: 1, volunteer_id: id }, function (res) {
  69. // console.log(res, '列表的详情');
  70. if (res.code === 1) {
  71. that.detailsList = res.data;
  72. that.cr_list = res.data.cr_list.filter((item) => item.status != 0);
  73. const filteredList = that.cr_list.filter((item) => item.image !== 'https://meng.wenlvti.net' && item.image !== 'http://cdnwwgj.wenlvti.net');
  74. if (filteredList.length > 0) {
  75. that.swiperList = filteredList;
  76. }
  77. } else {
  78. that.$common.errorToShow('请稍后再试');
  79. }
  80. });
  81. },
  82. swiperBtn(i) {
  83. uni.navigateTo({
  84. url: '/index_fenbao/GuanLi/XiangQing?id=' + this.swiperList[i].id
  85. });
  86. }
  87. }
  88. };
  89. </script>
  90. <style>
  91. .box {
  92. height: auto;
  93. width: 100%;
  94. padding-bottom: 50rpx;
  95. background-image: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/xy_bgt.png');
  96. background-size: 100% 100%;
  97. background-repeat: repeat-y;
  98. }
  99. .ban_box {
  100. width: 90%;
  101. margin: auto;
  102. color: #90523c;
  103. font-size: 30rpx;
  104. line-height: 50rpx;
  105. font-weight: 600;
  106. }
  107. .item {
  108. display: flex;
  109. align-items: center;
  110. margin-bottom: 40rpx;
  111. }
  112. .map_tit {
  113. display: flex;
  114. align-items: center;
  115. margin-left: 125rpx;
  116. margin-top: 50rpx;
  117. margin-bottom: 20rpx;
  118. font-size: 32rpx;
  119. font-family: Songti SC, Songti SC;
  120. font-weight: 900;
  121. line-height: 52rpx;
  122. color: #444444;
  123. }
  124. </style>