card.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. <view class="title">
  7. <u-icon name="fangjian" custom-prefix="custom-icon" size="30" color="#50baca"></u-icon>
  8. <text style="padding: 0 10rpx;font-weight: 800;">小区名称:</text>
  9. {{item.name}}
  10. </view>
  11. </view>
  12. <!-- cichu -->
  13. <view class="right">
  14. <text>{{item.estatePidName}}</text>
  15. </view>
  16. </view>
  17. <view class="item">
  18. <view class="left">
  19. <view class="cu-list grid col-3 no-border" >
  20. <view class="cu-item" >
  21. <text style="color: #cb2d5d;font-size: 32rpx;">{{item.buildingNumber}}</text>
  22. <text class="count">楼栋总数</text>
  23. </view>
  24. <view class="cu-item" >
  25. <text style="color: #cb2d5d;font-size: 32rpx;">{{item.totalUnitNumber}}</text>
  26. <text class="count">单元总数</text>
  27. </view>
  28. <view class="cu-item" >
  29. <text style="color: #cb2d5d;font-size: 32rpx;">{{item.floorNumber}}</text>
  30. <text class="count">楼层总数</text>
  31. </view>
  32. <view class="cu-item" >
  33. <text style="color: #cb2d5d;font-size: 32rpx;">{{item.totalRoomNumber}}</text>
  34. <text class="count">房间总数</text>
  35. </view>
  36. <view class="cu-item" >
  37. <text style="color: #cb2d5d;font-size: 32rpx;">{{item.totalUserNumber}}</text>
  38. <text class="count">住户总数</text>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="bottom">
  44. <view @click="edit(item)" class="cuIcon cu-btn round bg-blue light text-bold">
  45. <text class="cuIcon-edit"></text>
  46. </view>
  47. <view @click="delItem(item)" class="cuIcon cu-btn round bg-red light margin-left-20 text-bold">
  48. <text class="cuIcon-delete"></text>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. export default {
  56. name: 'card',
  57. props:{
  58. list:{
  59. type:Array,
  60. default:()=>{
  61. []
  62. }
  63. }
  64. },
  65. data() {
  66. return {
  67. loading:false
  68. };
  69. },
  70. created() {
  71. },
  72. methods:{
  73. copy(data){
  74. uni.setClipboardData({
  75. data:data
  76. })
  77. },
  78. edit(item){
  79. this.$emit('edit',item)
  80. },
  81. delItem(item){
  82. this.$emit('delItem',item)
  83. }
  84. }
  85. };
  86. </script>
  87. <style lang="scss">
  88. .count{
  89. font-weight: 800;
  90. padding-top: 10rpx;
  91. }
  92. .data {
  93. background-color: #ffffff;
  94. margin: 10rpx ;
  95. border-radius: 6rpx;
  96. box-sizing: border-box;
  97. padding: 20rpx 10rpx;
  98. font-size: 28rpx;
  99. .top {
  100. display: flex;
  101. justify-content: space-between;
  102. padding-bottom: 20rpx;
  103. border-bottom: 1rpx dashed #dedede;
  104. .left {
  105. display: flex;
  106. align-items: center;
  107. .title {
  108. margin: 0 10rpx;
  109. font-size: 30rpx;
  110. }
  111. }
  112. .right{
  113. margin-right: 10rpx;
  114. }
  115. }
  116. .item {
  117. margin: 5rpx 0 10rpx 0;
  118. .content {
  119. border-bottom: 1rpx dashed #DDDDDD;
  120. padding: 10rpx 0;
  121. }
  122. }
  123. .bottom {
  124. display: flex;
  125. justify-content: flex-end;
  126. align-items: center;
  127. }
  128. }
  129. </style>