audit-card.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <template>
  2. <view >
  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">{{item.residentialName}}-{{item.buildingName}}-{{item.unitName}}-{{item.roomName}}</view>
  8. </view>
  9. <view class="right">
  10. <text v-if="item.checkState==0" class="text-warning">待审核</text>
  11. <text v-if="item.checkState==1" class="text-green">已通过</text>
  12. <text v-if="item.checkState==2" class="text-red">未通过</text>
  13. </view>
  14. </view>
  15. <view class="item">
  16. <view class="left">
  17. <view data-aid="undefined">
  18. <image v-if="!$isEmpty(item.imageUri)" mode="aspectFill" :src="item.imageUri"></image>
  19. <image v-else="" mode="aspectFill" src="http://139.9.103.171:1888/img/image/head.png"></image>
  20. </view>
  21. <view class="content" data-aid="undefined">
  22. <view >
  23. <text>姓名:{{item.name}}</text>
  24. <text v-if="item.type==0" class="cu-tag radius line-blue sm margin-left-20">业主</text>
  25. <text v-else-if="item.type==1" class="cu-tag radius line-blue sm margin-left-20">家属</text>
  26. <text v-else-if="item.type==2" class="cu-tag radius line-blue sm margin-left-20">租客</text>
  27. <text v-else-if="item.type==3" class="cu-tag radius line-blue sm margin-left-20">访客</text>
  28. </view>
  29. <view >手机:{{item.tel}}</view>
  30. <view >申请时间:{{item.createDate}}</view>
  31. <view v-if="item.checkState==2">
  32. <text>审核意见:</text>
  33. <text class="text-red">{{item.checkOpinion}}</text>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="bottom" >
  39. <view v-if="vuex_member.id!=item.memberId" @click="audit(item)" class="cu-btn bg-blue round sm margin-right-sm" >
  40. 去审核
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </template>
  46. <script>
  47. export default {
  48. props:{
  49. list:Array
  50. },
  51. data() {
  52. return {
  53. };
  54. },
  55. onLoad() {
  56. },
  57. methods:{
  58. audit(item){
  59. let params={
  60. apply_user_id:item.id,
  61. name:item.name,
  62. tel:item.tel,
  63. residentialName:item.residentialName,
  64. roomName:item.buildingName+"-"+item.unitName+"-"+item.roomName,
  65. type:item.type,
  66. id_card:item.idCard || '',
  67. sex:item.sex,
  68. nationality:item.nationality,
  69. imageUri:item.imageUri || '',
  70. passport_img_uri:item.passportImgUri || '',
  71. entry_img_uri:item.entryImgUri || '',
  72. waitAudit:true
  73. }
  74. uni.navigateTo({
  75. url:"audit-detail/audit-detail"+this.$u.queryParams(params)
  76. })
  77. // uni.navigateTo({
  78. // url:"/pages/myFamily/editApplyFamily/editApplyFamily"+this.$u.queryParams(params)
  79. // })
  80. }
  81. }
  82. };
  83. </script>
  84. <style lang="scss" scoped>
  85. .page{
  86. background-color: #FFFFFF;
  87. min-height: 100vh;
  88. }
  89. .data {
  90. background-color: #FFFFFF;
  91. width: 720rpx;
  92. margin:10rpx auto;
  93. border-radius: 6rpx;
  94. box-sizing: border-box;
  95. padding: 20rpx;
  96. font-size: 28rpx;
  97. border-bottom: 1rpx solid #d1d1d1;
  98. .top {
  99. display: flex;
  100. justify-content: space-between;
  101. border-bottom: 1rpx dashed #DEDEDE;
  102. padding-bottom: 20rpx;
  103. .left {
  104. display: flex;
  105. align-items: center;
  106. .title {
  107. margin: 0 10rpx;
  108. font-size: 32rpx;
  109. }
  110. }
  111. }
  112. .item {
  113. display: flex;
  114. flex-direction: row;
  115. justify-content: space-between;
  116. margin: 40rpx 0 20rpx 0;
  117. .left {
  118. display: flex;
  119. image {
  120. width: 130rpx;
  121. height: 130rpx;
  122. border-radius: 50%;
  123. }
  124. .content {
  125. padding-left: 30rpx;
  126. view{
  127. padding-bottom: 16rpx;
  128. }
  129. }
  130. }
  131. }
  132. .bottom {
  133. display: flex;
  134. margin-top: 20rpx;
  135. justify-content: flex-end;
  136. align-items: center;
  137. }
  138. }
  139. </style>