property.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <template>
  2. <view class="total-page page-env-160 page-box container task-bg">
  3. <Nav :title="title" :genre="4" is_fixed :opacity="scrollTop"></Nav>
  4. <view class="m-t30" :style="{top:`${$tools.topHeight()+10}px`}">
  5. <view class="m-lr30">
  6. <!-- <view class="">
  7. <view class="collapse-title page-box-bg-fff r-30 p-30 m-lr30" @click="show = !show">
  8. <view class="row-justify-sb center">
  9. <view class="row-c">
  10. <image class="wh-60" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/information/house.png" mode=""></image>
  11. <text class="size-28 sys-weight-600 m-l20">房产信息</text>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="content sys-list-background-color p-lr30" v-if="show">
  16. <House></House>
  17. </view>
  18. </view> -->
  19. <uni-collapse accordion class="">
  20. <uni-collapse-item titleBorder="none" :border="false"
  21. class="collapse-item-house page-box-bg-fff p-30 r-30">
  22. <template v-slot:title>
  23. <view class="row-justify-sb center">
  24. <view class="row-c">
  25. <image class="wh-60" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/information/house.png" mode=""></image>
  26. <text class="size-28 sys-weight-600 m-l20">房产信息</text>
  27. </view>
  28. </view>
  29. </template>
  30. <view class="content">
  31. <House v-model="houseList" :show-keys="propertyKey"></House>
  32. </view>
  33. </uni-collapse-item>
  34. <uni-collapse-item titleBorder="none" :border="false" class="collapse-item-car p-30 r-30">
  35. <template v-slot:title class="page-box-bg-fff">
  36. <view class="row-justify-sb center">
  37. <view class="row-c">
  38. <image class="wh-60" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/information/car.png" mode=""></image>
  39. <text class="size-28 sys-weight-600 m-l20">车辆信息</text>
  40. </view>
  41. </view>
  42. </template>
  43. <view class="content">
  44. <property-car v-model="carList" :show-keys="propertyKey"></property-car>
  45. </view>
  46. </uni-collapse-item>
  47. <uni-collapse-item titleBorder="none" :border="false"
  48. class="collapse-item-guarantee page-box-bg-fff p-30 r-30">
  49. <template v-slot:title>
  50. <view class="row-justify-sb center">
  51. <view class="row-c">
  52. <image class="wh-60" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/information/car.png" mode=""></image>
  53. <text class="size-28 sys-weight-600 m-l20">保单信息</text>
  54. </view>
  55. </view>
  56. </template>
  57. <view class="content">
  58. <property-guarantee></property-guarantee>
  59. </view>
  60. </uni-collapse-item>
  61. <uni-collapse-item titleBorder="none" :border="false"
  62. class="collapse-item-company page-box-bg-fff p-30 r-30">
  63. <template v-slot:title>
  64. <view class="row-justify-sb center">
  65. <view class="row-c">
  66. <image class="wh-60" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/information/car.png" mode=""></image>
  67. <text class="size-28 sys-weight-600 m-l20">企业信息</text>
  68. </view>
  69. </view>
  70. </template>
  71. <view class="content">
  72. <property-company></property-company>
  73. </view>
  74. </uni-collapse-item>
  75. </uni-collapse>
  76. </view>
  77. </view>
  78. <EnButton is_both :leftText="'保存'" :rightText="'提交'" @onLeftSubmit="onLeftSubmit" @onSubmit="onSubmit">
  79. </EnButton>
  80. </view>
  81. </template>
  82. <script>
  83. import House from "./components/house.vue"
  84. import PropertyCar from "@/page_task/property/components/car.vue";
  85. import PropertyGuarantee from "@/page_task/property/components/guarantee.vue";
  86. import PropertyCompany from "@/page_task/property/components/company.vue";
  87. export default {
  88. components: {
  89. PropertyCompany,
  90. PropertyGuarantee,
  91. PropertyCar,
  92. House,
  93. },
  94. data() {
  95. return {
  96. title: '',
  97. fixedHeight: 0,
  98. scrollTop: 0,
  99. propertyKey:[],
  100. propertyData:[],
  101. houseList:[],
  102. insuranceList:[],
  103. firmList:[],
  104. carList:[],
  105. }
  106. },
  107. onPageScroll(res) {
  108. this.scrollTop = res.scrollTop / 120
  109. },
  110. onLoad(options) {
  111. this.title = options.title
  112. let propertyData = uni.getStorageSync('propertyData')
  113. let propertyKey = uni.getStorageSync('propertyKey')
  114. this.propertyData=propertyData
  115. this.propertyKey=propertyKey
  116. this.setPropertyData()
  117. },
  118. methods: {
  119. setPropertyData(){
  120. if(this.propertyData.length>0){
  121. this.propertyData.forEach(item=>{
  122. if(item.property_type*1===1){
  123. this.houseList.push(item)
  124. }else if(item.property_type*1===2){
  125. this.carList.push(item)
  126. }else if(item.property_type*1===3){
  127. this.insuranceList.push(item)
  128. }else if(item.property_type*1===4){
  129. this.firmList.push(item)
  130. }
  131. })
  132. }
  133. },
  134. onLeftSubmit() {
  135. console.log('预览');
  136. },
  137. onSubmit() {
  138. console.log('提交资料');
  139. },
  140. }
  141. }
  142. </script>
  143. <style lang="scss" scoped>
  144. .info_button {
  145. width: 130rpx;
  146. height: 60rpx;
  147. border: none;
  148. line-height: 60rpx;
  149. }
  150. .property_content {
  151. width: 100%;
  152. position: absolute;
  153. }
  154. /deep/ .uni-collapse {
  155. // background-color: #EEF1F7 !important;
  156. border-radius: 30rpx;
  157. }
  158. uni-collapse-item {
  159. margin-bottom: 20rpx;
  160. }
  161. button::after {
  162. border: none;
  163. }
  164. .collapse-item-house {
  165. background: linear-gradient(180deg, rgba(255, 92, 0, 0.1) 0%, rgba(255, 255, 255, 1) 60rpx);
  166. }
  167. .collapse-item-car {
  168. background: linear-gradient(180deg, rgba(0, 163, 255, 0.1) 0%, rgba(255, 255, 255, 1) 60rpx);
  169. }
  170. .collapse-item-guarantee {
  171. background: linear-gradient(180deg, rgba(0, 255, 194, 0.1) 0%, rgba(255, 255, 255, 1) 60rpx);
  172. }
  173. .collapse-item-company {
  174. background: linear-gradient(180deg, rgba(255, 0, 0, 0.1) 0%, rgba(255, 255, 255, 1) 60rpx);
  175. }
  176. </style>