apply-card.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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">{{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-if="item.type==1" class="cu-tag radius line-blue sm margin-left-20">家属</text>
  26. <text v-if="item.type==2" class="cu-tag radius line-blue sm margin-left-20">租客</text>
  27. <text v-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.createTime}}</view>
  31. <view v-if="item.checkState==2">
  32. <text>审核意见:</text>
  33. <text >{{item.checkOpinion}}</text>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="bottom" >
  39. <view @click="edit(item)" v-if="item.checkState==2" class="cu-btn line-btn 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. computed:{
  56. editShow() {
  57. return item => {
  58. //旧版本的逻辑,有点看不懂
  59. if (item.checkState!=2) {
  60. return false
  61. }
  62. this.vuex_own_room_list.forEach(val=>{
  63. if (val.id==item.roomId) {
  64. return true
  65. }else{
  66. return false
  67. }
  68. })
  69. };
  70. },
  71. },
  72. onLoad() {
  73. },
  74. methods:{
  75. edit(item){
  76. let params={
  77. apply_user_id:item.id,
  78. name:item.name,
  79. tel:item.tel,
  80. room_name:item.roomName,
  81. type:item.type,
  82. user_id: item['userId'],
  83. id_card:item.idCard || '',
  84. sex:item.sex,
  85. nationality:item.nationality,
  86. image_uri:item.imageUri,
  87. passport_img_uri:item.passportImgUri || '',
  88. entry_img_uri:item.entryImgUri
  89. }
  90. uni.navigateTo({
  91. url:"/pages/myFamily/editApplyFamily/editApplyFamily"+this.$u.queryParams(params)
  92. })
  93. }
  94. }
  95. };
  96. </script>
  97. <style lang="scss" scoped>
  98. .data {
  99. background-color: #FFFFFF;
  100. width: 720rpx;
  101. margin:10rpx auto;
  102. border-radius: 6rpx;
  103. box-sizing: border-box;
  104. padding: 20rpx;
  105. font-size: 28rpx;
  106. border-bottom: 1rpx solid #d1d1d1;
  107. .top {
  108. display: flex;
  109. justify-content: space-between;
  110. border-bottom: 1rpx dashed #DEDEDE;
  111. padding-bottom: 20rpx;
  112. .left {
  113. display: flex;
  114. align-items: center;
  115. .title {
  116. margin: 0 10rpx;
  117. font-size: 32rpx;
  118. }
  119. }
  120. }
  121. .item {
  122. display: flex;
  123. flex-direction: row;
  124. justify-content: space-between;
  125. margin: 40rpx 0 20rpx 0;
  126. .left {
  127. display: flex;
  128. image {
  129. width: 130rpx;
  130. height: 130rpx;
  131. border-radius: 50%;
  132. }
  133. .content {
  134. padding-left: 30rpx;
  135. view{
  136. padding-bottom: 16rpx;
  137. }
  138. }
  139. }
  140. }
  141. .bottom {
  142. display: flex;
  143. margin-top: 20rpx;
  144. justify-content: flex-end;
  145. align-items: center;
  146. }
  147. }
  148. </style>