apply-card.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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="https://szsq.nxzhsq.cn/community/miniofile/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. if (this.vuex_relationshipType==0) {
  91. //业主身份操作
  92. params['operUserType']=0
  93. }else{
  94. //不是业主身份操作
  95. params['operUserType']=item.type
  96. }
  97. uni.navigateTo({
  98. url:"/pages/myFamily/editApplyFamily/editApplyFamily"+this.$u.queryParams(params)
  99. })
  100. }
  101. }
  102. };
  103. </script>
  104. <style lang="scss" scoped>
  105. .data {
  106. background-color: #FFFFFF;
  107. width: 720rpx;
  108. margin:10rpx auto;
  109. border-radius: 6rpx;
  110. box-sizing: border-box;
  111. padding: 20rpx;
  112. font-size: 28rpx;
  113. border-bottom: 1rpx solid #d1d1d1;
  114. .top {
  115. display: flex;
  116. justify-content: space-between;
  117. border-bottom: 1rpx dashed #DEDEDE;
  118. padding-bottom: 20rpx;
  119. .left {
  120. display: flex;
  121. align-items: center;
  122. .title {
  123. margin: 0 10rpx;
  124. font-size: 32rpx;
  125. }
  126. }
  127. }
  128. .item {
  129. display: flex;
  130. flex-direction: row;
  131. justify-content: space-between;
  132. margin: 40rpx 0 20rpx 0;
  133. .left {
  134. display: flex;
  135. image {
  136. width: 130rpx;
  137. height: 130rpx;
  138. border-radius: 50%;
  139. }
  140. .content {
  141. padding-left: 30rpx;
  142. view{
  143. padding-bottom: 16rpx;
  144. }
  145. }
  146. }
  147. }
  148. .bottom {
  149. display: flex;
  150. margin-top: 20rpx;
  151. justify-content: flex-end;
  152. align-items: center;
  153. }
  154. }
  155. </style>