property.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <template>
  2. <view class="text-color-333" style="position: relative;left: -15rpx;">
  3. <view class="property content p-30 sys-background-fff r-30" :style="{height}">
  4. <view v-for="(property,propertyKey) in propertyList" class=" size-26">
  5. <!-- 房产信息 -->
  6. <view class="">
  7. <view class="row-c">
  8. <view class="dot"></view>
  9. <text class="sys-weight-600 m-l10">房产信息</text>
  10. </view>
  11. <view class="property-box-one r-20 m-t30 p-20">
  12. <view class="size-26 m-tb10">
  13. <text class="capsule" >{{property.house_city}}</text>
  14. <text class="capsule" >{{property.build_date}}年建</text>
  15. <text class="capsule">{{property.covered_area}}m²</text>
  16. </view>
  17. <view class="sys-background-fff r-20 p-20">
  18. <view class="" >
  19. <text class="text-color-666">房产证号</text>
  20. <text class="m-l10">{{property.deed_num}}</text>
  21. </view>
  22. <view class="" >
  23. <text class="text-color-666">评估价格</text>
  24. <text class="m-l10">{{property.currentPrice}}</text>
  25. </view>
  26. <view class="" >
  27. <text class="text-color-666">起拍价格</text>
  28. <text class="m-l10">{{property.startPrice}}</text>
  29. </view>
  30. <view class="row m-t20" >
  31. <image class="wh-30 m-r20 p-t6" src="/page_task/static/img/task-details/address-two.png"
  32. mode="aspectFill">
  33. </image>
  34. <view class="flex">
  35. <text class="flex">{{property.house_city}}{{property.house_address}}</text>
  36. </view>
  37. </view>
  38. <view class="sys-from-background-color m-t20 p-20 r-20">
  39. <view class="m-b20">房产关联图片</view>
  40. <view class="row-c">
  41. <en-image @onShowImg="onPreviewImage" :img="property.property"></en-image>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <en-blank v-if="propertyList.length<=0"></en-blank>
  49. </view>
  50. </view>
  51. </template>
  52. <script>
  53. import EnImage from "@/components/en-utils/en-image/en-image.vue";
  54. import EnBlank from "@/components/en-utils/en-blank/en-blank.vue";
  55. export default {
  56. components: {
  57. EnBlank,
  58. EnImage
  59. },
  60. props: {
  61. height: {
  62. type: String,
  63. default: '100%'
  64. },
  65. propertyList: {
  66. default: []
  67. },
  68. propertyKey: {
  69. default: []
  70. }
  71. },
  72. data() {
  73. return {}
  74. },
  75. methods: {
  76. onPreviewImage(urls) {
  77. uni.previewImage({
  78. urls: urls,
  79. })
  80. },
  81. verifyKey(key) {
  82. return this.propertyKey.indexOf(key) >= 0
  83. }
  84. },
  85. }
  86. </script>
  87. <style lang="scss" scoped>
  88. .property {
  89. padding-top: 90rpx;
  90. background-image: url('/page_task/static/img/task-details/bg-four.png');
  91. background-repeat: no-repeat;
  92. background-size: 100% auto;
  93. overflow: hidden;
  94. .bg-box {
  95. width: 710rpx;
  96. height: 80rpx;
  97. }
  98. .dot {
  99. width: 12rpx;
  100. height: 12rpx;
  101. border-radius: 50%;
  102. background: #0FB160;
  103. }
  104. }
  105. .property-box-one {
  106. position: relative;
  107. background: linear-gradient(161deg, #B0FDB3 0%, #5EDE9D 100%);
  108. }
  109. .property-box-two {
  110. position: relative;
  111. background: linear-gradient(161deg, #FFE2E2 0%, #FBCACA 100%);
  112. .two-text {
  113. background: #D06565;
  114. }
  115. .picture {
  116. width: 160rpx;
  117. height: 190rpx;
  118. display: block;
  119. }
  120. }
  121. .property-box-three {
  122. position: relative;
  123. background: linear-gradient(161deg, #CDE7FD 0%, #B6D2FB 100%);
  124. .two-text {
  125. background: #2E86F4;
  126. }
  127. .picture {
  128. width: 160rpx;
  129. height: 90rpx;
  130. display: block;
  131. border-radius: 10rpx;
  132. }
  133. }
  134. .property-box-four {
  135. position: relative;
  136. background: linear-gradient(161deg, #F4DCBD 0%, #EEC398 100%);
  137. .two-text {
  138. background: #C37929;
  139. }
  140. .picture {
  141. width: 160rpx;
  142. height: 90rpx;
  143. display: block;
  144. border-radius: 10rpx;
  145. }
  146. }
  147. .property-icon {
  148. position: absolute;
  149. right: 40rpx;
  150. top: 12rpx;
  151. }
  152. .capsule {
  153. color: #fff;
  154. height: 50rpx;
  155. line-height: 50rpx;
  156. border-radius: 99rpx;
  157. background: #0FB160;
  158. text-align: center;
  159. padding: 0 20rpx;
  160. margin-right: 10rpx;
  161. }
  162. .card {
  163. width: 160rpx;
  164. height: 90rpx;
  165. display: block;
  166. }
  167. </style>