apply-card.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <template>
  2. <view class="">
  3. <view class="data" v-for="(item, index) in list" :key="index">
  4. <view class="top">
  5. <view class="left">
  6. <u-icon name="home" :size="30" color="rgb(94,94,94)"></u-icon>
  7. <view class="title">
  8. {{item.residentialName}}-{{item.buildingName}}-{{item.unitName}}-{{item.roomName}}</view>
  9. </view>
  10. <view class="right">
  11. <text v-if="item.auditStatus==0" class="text-warning">待审核</text>
  12. <text v-if="item.auditStatus==1" class="text-green">已通过</text>
  13. <text v-if="item.auditStatus==2" class="text-red">未通过</text>
  14. </view>
  15. </view>
  16. <view class="item">
  17. <view class="left">
  18. <view data-aid="undefined">
  19. <image v-if="!$isEmpty(item.faceUrl)" mode="aspectFill" :src="item.faceUrl"></image>
  20. <image v-else="" mode="aspectFill"
  21. src="https://szsq.nxzhsq.cn/community/miniofile/image/head.png"></image>
  22. </view>
  23. <view class="content" data-aid="undefined">
  24. <view>
  25. <text>姓名:{{item.name}}</text>
  26. <text v-if="item.type==0" class="cu-tag radius line-blue sm margin-left-20">业主</text>
  27. <text v-if="item.type==1" class="cu-tag radius line-blue sm margin-left-20">家属</text>
  28. <text v-if="item.type==2" class="cu-tag radius line-blue sm margin-left-20">租客</text>
  29. <text v-if="item.type==3" class="cu-tag radius line-blue sm margin-left-20">访客</text>
  30. </view>
  31. <view>手机:{{item.phone}}</view>
  32. <view>申请时间:{{item.createTime}}</view>
  33. <view v-if="item.auditStatus==2">
  34. <text>审核意见:</text>
  35. <text class="text-red">{{item.checkOpinion}}</text>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. export default {
  45. props: {
  46. list: Array
  47. },
  48. data() {
  49. return {
  50. };
  51. },
  52. computed: {
  53. editShow() {
  54. return item => {
  55. //旧版本的逻辑,有点看不懂
  56. if (item.auditStatus != 2) {
  57. return false
  58. }
  59. this.vuex_own_room_list.forEach(val => {
  60. if (val.id == item.roomId) {
  61. return true
  62. } else {
  63. return false
  64. }
  65. })
  66. };
  67. },
  68. },
  69. onLoad() {
  70. },
  71. methods: {
  72. edit(item) {
  73. let params = {
  74. apply_user_id: item.id,
  75. name: item.name,
  76. tel: item.phone,
  77. room_name: item.roomName,
  78. type: item.type,
  79. user_id: item['userId'],
  80. id_card: item.idCard || '',
  81. sex: item.sex,
  82. nationality: item.nationality,
  83. faceUrl: item.faceUrl,
  84. passport_img_uri: item.passportImgUri || '',
  85. entry_img_uri: item.entryImgUri
  86. }
  87. if (this.vuex_relationshipType == 0) {
  88. //业主身份操作
  89. params['operUserType'] = 0
  90. } else {
  91. //不是业主身份操作
  92. params['operUserType'] = item.type
  93. }
  94. uni.navigateTo({
  95. url: "/pages/myFamily/editApplyFamily/editApplyFamily" + this.$u.queryParams(params)
  96. })
  97. }
  98. }
  99. };
  100. </script>
  101. <style lang="scss" scoped>
  102. .data {
  103. background-color: #FFFFFF;
  104. width: 720rpx;
  105. margin: 10rpx auto;
  106. border-radius: 6rpx;
  107. box-sizing: border-box;
  108. padding: 20rpx;
  109. font-size: 28rpx;
  110. border-bottom: 1rpx solid #d1d1d1;
  111. .top {
  112. display: flex;
  113. justify-content: space-between;
  114. border-bottom: 1rpx dashed #DEDEDE;
  115. padding-bottom: 20rpx;
  116. .left {
  117. display: flex;
  118. align-items: center;
  119. .title {
  120. margin: 0 10rpx;
  121. font-size: 32rpx;
  122. }
  123. }
  124. }
  125. .item {
  126. display: flex;
  127. flex-direction: row;
  128. justify-content: space-between;
  129. margin: 40rpx 0 20rpx 0;
  130. .left {
  131. display: flex;
  132. image {
  133. width: 130rpx;
  134. height: 130rpx;
  135. border-radius: 50%;
  136. }
  137. .content {
  138. padding-left: 30rpx;
  139. view {
  140. padding-bottom: 16rpx;
  141. }
  142. }
  143. }
  144. }
  145. .bottom {
  146. display: flex;
  147. margin-top: 20rpx;
  148. justify-content: flex-end;
  149. align-items: center;
  150. }
  151. }
  152. </style>