property.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  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">
  4. <view v-for="(property,propertyKey) in propertyList" class=" size-26">
  5. <!-- 房产信息 -->
  6. <view v-if="property.property_type===1" 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="" v-if="verifyKey('property_owner')">
  13. <text class="size-32 color-11003B sys-weight-600">{{property.data.property_owner}}</text>
  14. <text class="size-24 color-6E6686 m-l10">产权人</text>
  15. </view>
  16. <view class="size-26 m-tb10">
  17. <text class="capsule" v-if="verifyKey('house_city')">{{property.data.house_city}}</text>
  18. <text class="capsule" v-if="verifyKey('build_date')">{{property.data.build_date}}年建</text>
  19. <text class="capsule"
  20. v-if="verifyKey('covered_area')">{{property.data.covered_area}}m²</text>
  21. </view>
  22. <view class="sys-background-fff r-20 p-20">
  23. <view class="" v-if="verifyKey('deed_num')">
  24. <text class="text-color-666">房产证号</text>
  25. <text class="m-l10">{{property.data.deed_num}}</text>
  26. </view>
  27. <view class="row-c m-tb20" v-if="verifyKey('is_pay')">
  28. <image class="wh-30 m-r20" src="/page_task/static/img/task-details/money.png"
  29. mode="aspectFill">
  30. </image>
  31. <text>{{property.data.is_pay===1?'已支付材料费':'未支付材料费'}}</text>
  32. </view>
  33. <view class="row m-t20" v-if="verifyKey('house_city')">
  34. <image class="wh-30 m-r20 p-t6" src="/page_task/static/img/task-details/address-two.png"
  35. mode="aspectFill">
  36. </image>
  37. <view class="flex">
  38. <text
  39. class="flex">{{property.data.house_city}}{{property.data.house_address}}</text>
  40. <!-- <image class="card r-20 m-t20" src="/page_task/static/img/task-details/front.png"-->
  41. <!-- mode="aspectFill">-->
  42. <!-- </image>-->
  43. </view>
  44. </view>
  45. <view class="sys-from-background-color m-t20 p-20 r-20" v-if="verifyKey('certificate_img')">
  46. <view class="m-b20">房产证件</view>
  47. <view class="row-c">
  48. <!-- <image class="picture m-r20 r-10" :src="property.data.certificate_img"-->
  49. <!-- mode="aspectFill">-->
  50. <!-- </image>-->
  51. <en-image @onShowImg="onPreviewImage" :img="property.data.certificate_img"></en-image>
  52. </view>
  53. </view>
  54. <view class="sys-from-background-color m-t20 p-20 r-20"
  55. v-if="property.data.property && property.data.property.length>0">
  56. <view class="m-b20">房产关联图片</view>
  57. <view class="row-c">
  58. <!-- <image class="picture m-r20 r-10" :src="property.data.property" mode="aspectFill">-->
  59. <!-- </image>-->
  60. <en-image @onShowImg="onPreviewImage" :img="property.data.property"></en-image>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <!-- 保单信息 -->
  67. <view v-else-if="property.property_type===2" class="m-t30">
  68. <view class="row-c">
  69. <view class="dot"></view>
  70. <text class="sys-weight-600 m-l10">保单信息</text>
  71. </view>
  72. <view class="property-box-two r-20 m-t30 p-20" v-if="verifyKey('insurance_name')">
  73. <view class="">
  74. <text class="size-32 color-11003B sys-weight-600">{{property.data.insurance_name}}</text>
  75. <text class="size-24 color-6E6686 m-l10">公司</text>
  76. </view>
  77. <view class="size-26 m-tb10">
  78. <text class="capsule two-text"
  79. v-if="verifyKey('insurance_type')">{{property.data.insurance_type}}</text>
  80. <text class="capsule two-text"
  81. v-if="verifyKey('year_money')">{{property.data.year_money}}元/年</text>
  82. </view>
  83. <view class="sys-background-fff r-20 p-20">
  84. <view class="" v-if="verifyKey('validity_date')">
  85. <text class="text-color-666">有效期</text>
  86. <text class="m-l10">{{property.data.validity_date}}</text>
  87. </view>
  88. <view class="row-c m-tb20" v-if="verifyKey('is_fees')">
  89. <image class="wh-30 m-r20" src="/page_task/static/img/task-details/money.png"
  90. mode="aspectFill">
  91. </image>
  92. <text>{{property.data.is_fees===1?'满足缴费情况':'未满足缴费情况'}}</text>
  93. </view>
  94. <view class="sys-from-background-color m-t20 p-20 r-20" v-if="verifyKey('insurance_img')">
  95. <view class="m-b20">保单照片</view>
  96. <view class="row-c">
  97. <en-image @onShowImg="onPreviewImage" :img="property.data.insurance_img"></en-image>
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. </view>
  103. <!-- 车辆信息 -->
  104. <view v-else-if="property.property_type===3" class="m-t30">
  105. <view class="row-c">
  106. <view class="dot"></view>
  107. <text class="sys-weight-600 m-l10">车辆信息</text>
  108. </view>
  109. <view class="property-box-three r-20 m-t30 p-20">
  110. <view class="" v-if="verifyKey('brand_name')">
  111. <text class="size-32 color-11003B sys-weight-600">{{property.data.brand_name}}</text>
  112. <text class="size-24 color-6E6686 m-l10">品牌</text>
  113. </view>
  114. <view class="size-26 m-tb10">
  115. <text class="capsule two-text" v-if="verifyKey('colour')">{{property.data.colour}}</text>
  116. <text class="capsule two-text"
  117. v-if="verifyKey('register_date')">{{property.data.register_date}}年登记</text>
  118. <text class="capsule two-text"
  119. v-if="verifyKey('car_price')">{{property.data.car_price}}万元</text>
  120. </view>
  121. <view class="sys-background-fff r-20 p-20">
  122. <view class="" v-if="verifyKey('car_num')">
  123. <text class="text-color-666">车牌号</text>
  124. <text class="m-l10">{{property.data.car_num}}</text>
  125. </view>
  126. <view class="m-tb16" v-if="verifyKey('car_vin')">
  127. <text class="text-color-666">车架号</text>
  128. <text class="m-l10">{{property.data.car_vin}}</text>
  129. </view>
  130. <view class="" v-if="verifyKey('car_type')">
  131. <text class="text-color-666">车牌类型</text>
  132. <text class="m-l10">{{property.data.car_type===1?'运营车':'非运营车'}}</text>
  133. </view>
  134. <view class="sys-from-background-color m-t20 p-20 r-20">
  135. <view class="row-c" v-if="verifyKey('register_img')">
  136. <view class="">
  137. <text class="size-24">行驶证</text>
  138. <en-image @onShowImg="onPreviewImage" :img="property.data.register_img"></en-image>
  139. </view>
  140. <view class="m-l20" v-if="verifyKey('driving_img')">
  141. <text class="size-24">车辆登记证</text>
  142. <en-image @onShowImg="onPreviewImage":img="property.data.driving_img"></en-image>
  143. </view>
  144. </view>
  145. <view class="row-c" v-if="verifyKey('car_img')">
  146. <view class="">
  147. <view class="size-24 m-t20">车辆照片</view>
  148. <view class="row-c m-t10" style="flex-wrap: wrap;">
  149. <en-image @onShowImg="onPreviewImage" :img="property.data.car_img"></en-image>
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. </view>
  156. </view>
  157. <!-- 企业信息 -->
  158. <view v-else-if="property.property_type===4" class="m-t30">
  159. <view class="row-c">
  160. <view class="dot"></view>
  161. <text class="sys-weight-600 m-l10">企业信息</text>
  162. </view>
  163. <view class="property-box-four r-20 m-t30 p-20">
  164. <view class="" v-if="verifyKey('firm_name')">
  165. <text class="size-32 color-11003B sys-weight-600">{{property.data.firm_name}}</text>
  166. </view>
  167. <view class="size-26 m-tb10">
  168. <text class="capsule two-text"
  169. v-if="verifyKey('establish_city')">{{property.data.establish_city}}</text>
  170. <text class="capsule two-text"
  171. v-if="verifyKey('establish_date')">{{property.data.establish_date}}成立</text>
  172. </view>
  173. <view class="sys-background-fff r-20 p-20">
  174. <view class="" v-if="verifyKey('year_tax')">
  175. <text class="text-color-666">年交税额</text>
  176. <text class="m-l10">{{property.data.year_tax}}元</text>
  177. </view>
  178. <view class="m-tb16" v-if="verifyKey('year_invoice')">
  179. <text class="text-color-666">年开票额</text>
  180. <text class="m-l10">{{property.data.year_invoice}}元</text>
  181. </view>
  182. <view class="" v-if="verifyKey('tax_grade_name')">
  183. <text class="text-color-666">税务登记</text>
  184. <text class="m-l10">{{property.data.tax_grade_name}}级</text>
  185. </view>
  186. <view class="row-c m-tb20" v-if="verifyKey('is_end_tax')">
  187. <image class="wh-30 m-r20" src="/page_task/static/img/task-details/money.png"
  188. mode="aspectFill">
  189. </image>
  190. <text>{{property.data.is_end_tax===1?'无税务断缴情况':'有税务断缴情况'}}</text>
  191. </view>
  192. <view class="row m-t20" v-if="verifyKey('establish_address')">
  193. <image class="wh-30 m-r20 p-t6" src="/page_task/static/img/task-details/address-two.png"
  194. mode="aspectFill">
  195. </image>
  196. <view class="flex">
  197. <text class="flex">{{property.data.establish_address}}</text>
  198. <image class="card r-20 m-t20" src="/page_task/static/img/task-details/front.png"
  199. mode="aspectFill"></image>
  200. </view>
  201. </view>
  202. <view class="sys-from-background-color m-t20 p-20 r-20" v-if="verifyKey('firm_img')">
  203. <view class="size-24">企业照片</view>
  204. <view class="row-c m-t10" style="flex-wrap: wrap;">
  205. <en-image @onShowImg="onPreviewImage" :img="property.data.firm_img"></en-image>
  206. </view>
  207. </view>
  208. </view>
  209. </view>
  210. </view>
  211. </view>
  212. <en-blank v-if="propertyList.length<=0"></en-blank>
  213. </view>
  214. </view>
  215. </template>
  216. <script>
  217. import EnImage from "@/components/en-utils/en-image/en-image.vue";
  218. import EnBlank from "@/components/en-utils/en-blank/en-blank.vue";
  219. export default {
  220. components: {
  221. EnBlank,
  222. EnImage
  223. },
  224. props: {
  225. propertyList: {
  226. default: []
  227. },
  228. propertyKey: {
  229. default: []
  230. }
  231. },
  232. data() {
  233. return {}
  234. },
  235. methods: {
  236. onPreviewImage(url){
  237. this.$emit('onShowImg',url)
  238. },
  239. verifyKey(key) {
  240. return this.propertyKey.indexOf(key) >= 0
  241. }
  242. },
  243. }
  244. </script>
  245. <style lang="scss" scoped>
  246. .property {
  247. padding-top: 90rpx;
  248. background-image: url('/page_task/static/img/task-details/bg-four.png');
  249. background-repeat: no-repeat;
  250. background-size: 100% auto;
  251. .bg-box {
  252. width: 710rpx;
  253. height: 80rpx;
  254. }
  255. .dot {
  256. width: 12rpx;
  257. height: 12rpx;
  258. border-radius: 50%;
  259. background: #0FB160;
  260. }
  261. }
  262. .property-box-one {
  263. position: relative;
  264. background: linear-gradient(161deg, #B0FDB3 0%, #5EDE9D 100%);
  265. }
  266. .property-box-two {
  267. position: relative;
  268. background: linear-gradient(161deg, #FFE2E2 0%, #FBCACA 100%);
  269. .two-text {
  270. background: #D06565;
  271. }
  272. .picture {
  273. width: 160rpx;
  274. height: 190rpx;
  275. display: block;
  276. }
  277. }
  278. .property-box-three {
  279. position: relative;
  280. background: linear-gradient(161deg, #CDE7FD 0%, #B6D2FB 100%);
  281. .two-text {
  282. background: #2E86F4;
  283. }
  284. .picture {
  285. width: 160rpx;
  286. height: 90rpx;
  287. display: block;
  288. border-radius: 10rpx;
  289. }
  290. }
  291. .property-box-four {
  292. position: relative;
  293. background: linear-gradient(161deg, #F4DCBD 0%, #EEC398 100%);
  294. .two-text {
  295. background: #C37929;
  296. }
  297. .picture {
  298. width: 160rpx;
  299. height: 90rpx;
  300. display: block;
  301. border-radius: 10rpx;
  302. }
  303. }
  304. .property-icon {
  305. position: absolute;
  306. right: 40rpx;
  307. top: 12rpx;
  308. }
  309. .capsule {
  310. color: #fff;
  311. height: 50rpx;
  312. line-height: 50rpx;
  313. border-radius: 99rpx;
  314. background: #0FB160;
  315. text-align: center;
  316. padding: 0 20rpx;
  317. margin-right: 10rpx;
  318. }
  319. .card {
  320. width: 160rpx;
  321. height: 90rpx;
  322. display: block;
  323. }
  324. </style>