identity.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <template>
  2. <view class="text-color-12">
  3. <view class="content p-30 sys-background-fff r-30 identity">
  4. <view class="row-c">
  5. <view class="dot"></view>
  6. <text class="size-26 sys-weight-600 m-l10">基本信息</text>
  7. </view>
  8. <view class="sys-from-background-color r-30 p-20 m-t30 size-26">
  9. <view class="row-c">
  10. <view class="capsule sys-bg-BFD2CC" v-if="verifyKey('education_name')">{{business.education_name}}</view>
  11. <view class="capsule sys-bg-BFD2CC m-l10" v-if="verifyKey('employ_type')">{{business.employ_type===1?'受薪':'自雇'}}</view>
  12. </view>
  13. <view class="row-c m-t20" v-if="verifyKey('identity_one')">
  14. <EnImage :list="[business.identity_one,business.identity_two]"></EnImage>
  15. </view>
  16. <view class="row-c m-b20" v-if="verifyKey('id_number')">
  17. <image class="wh-30 m-r20" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task-details/number.png" mode="aspectFill"></image>
  18. <view class="row-c">
  19. <text class="text-color-666">证件号:</text>
  20. <text>{{business.id_number}}</text>
  21. </view>
  22. </view>
  23. <view class="row m-tb20" v-if="verifyKey('resident_city')">
  24. <view class="row line-30">
  25. <image class="wh-30 m-r20" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task-details/address.png" mode="aspectFill">
  26. </image>
  27. <text class="text-color-666">居住:</text>
  28. </view>
  29. <text class="flex line-30">{{business.resident_city}}{{business.resident_address}}</text>
  30. </view>
  31. <view class="row m-tb20" v-if="verifyKey('firm_name')">
  32. <view class="row line-30">
  33. <image class="wh-30 m-r20" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task-details/company.png" mode="aspectFill">
  34. </image>
  35. <text class="text-color-666">公司:</text>
  36. </view>
  37. <text class="flex line-30">{{business.firm_name}}</text>
  38. </view>
  39. <view class="row m-t20" v-if="verifyKey('firm_city')">
  40. <view class="row line-30">
  41. <image class="wh-30 m-r20" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task-details/address.png" mode="aspectFill">
  42. </image>
  43. <text class="text-color-666">地址:</text>
  44. </view>
  45. <text class="flex line-30">{{business.firm_city+business.firm_address}}</text>
  46. </view>
  47. </view>
  48. <view v-if="verifyKey('social_num') || verifyKey('reserved_money')">
  49. <view class="row-c m-t30" >
  50. <view class="dot"></view>
  51. <text class="size-26 sys-weight-600 m-l10">社保信息</text>
  52. </view>
  53. <view class="sys-from-background-color r-30 p-20 m-t30 size-26">
  54. <view class="row-c">
  55. <image class="wh-30 m-r20" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task-details/safeguard.png" mode="aspectFill">
  56. </image>
  57. <text v-if="verifyKey('social_num')">{{business.social_num}}个月</text>
  58. <view v-if="verifyKey('social_num') && verifyKey('reserved_money')" class="line-box m-lr16"></view>
  59. <text v-if="verifyKey('reserved_money')">{{business.reserved_money}}元</text>
  60. </view>
  61. </view>
  62. </view>
  63. <view v-if="verifyKey('marriage_type')">
  64. <view class="row-c m-t30">
  65. <view class="dot"></view>
  66. <text class="size-26 sys-weight-600 m-l10">婚姻信息</text>
  67. </view>
  68. <view class="sys-from-background-color r-30 p-20 m-t30 size-26">
  69. <view class="size-24 text-color-333 m-b20" v-if="verifyKey('marriage_type')">{{business.marriage_name}}</view>
  70. <EnImage v-if="business.marriage_type>1" :list=" business.marriage_img"></EnImage>
  71. <view v-if="business.marriage_type===2">
  72. <view class="spouse p-l20">
  73. <text class="size-24">配偶信息</text>
  74. </view>
  75. <view class="row-c m-t20" v-if="verifyKey('m_identity_one')">
  76. <EnImage :list="[business.m_identity_one,business.m_identity_two]"></EnImage>
  77. </view>
  78. <view class="">
  79. <text class="size-26 sys-weight-600" v-if="verifyKey('mate_name')">>{{business.mate_name}}</text>
  80. <view class="row-c m-t20" v-if="verifyKey('mate_phone')">
  81. <image class="wh-30 m-r20" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task-details/phone.png" mode="aspectFill">
  82. </image>
  83. <view class="row-c">
  84. <text class="text-color-666">电话:</text>
  85. <text>{{business.mate_phone}}</text>
  86. </view>
  87. </view>
  88. <view class="row-c m-t20" v-if="verifyKey('mate_id_number')">
  89. <image class="wh-30 m-r20" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task-details/number.png" mode="aspectFill">
  90. </image>
  91. <view class="row-c">
  92. <text class="text-color-666">证件号:</text>
  93. <text>{{business.mate_id_number}}</text>
  94. </view>
  95. </view>
  96. <view class="row-c m-tb20" v-if="verifyKey('mate_firm')">
  97. <image class="wh-30 m-r20" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task-details/company.png" mode="aspectFill">
  98. </image>
  99. <view class="row-c">
  100. <text class="text-color-666">公司:</text>
  101. <text>{{business.mate_firm}}</text>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. </view>
  108. <view class="m-t30" v-if="linkmanKey.length>0">
  109. <view class="row-c p-b10">
  110. <view class="dot"></view>
  111. <text class="size-26 sys-weight-600 m-l10">其他联系人信息</text>
  112. </view>
  113. <view class="sys-from-background-color row-justify-sb center m-t20 r-20 p-20 line-30"
  114. v-for="(item,index) in linkman">
  115. <view class="row-c">
  116. <view class="num-item size-24">
  117. {{index+1}}
  118. </view>
  119. <text class="size-26 m-lr20 sys-weight-600" v-if="verifyKey('name',2)">{{item.name}}</text>
  120. <view class="capsule sys-bg-BFD2CC m-l10 siz-24" v-if="verifyKey('relation_name',2)">{{item.relation_name}}</view>
  121. </view>
  122. <view class="row-c" v-if="verifyKey('phone',2)">
  123. <image class="wh-30 m-r10" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task-details/phone.png" mode=""></image>
  124. <text class="size-26 text-color-333">{{item.phone}}</text>
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. </template>
  131. <script>
  132. import EnImage from "@/components/en-utils/en-image/en-image.vue"
  133. export default {
  134. props: {
  135. business: {
  136. default: {}
  137. },
  138. linkman: {
  139. default: []
  140. },
  141. clientKey: {
  142. default: []
  143. },
  144. linkmanKey: {
  145. default: []
  146. },
  147. },
  148. components: {
  149. EnImage
  150. },
  151. data() {
  152. return {}
  153. },
  154. methods: {
  155. verifyKey(key,type){
  156. if(type===2){
  157. return this.clientKey.indexOf(key)>=0
  158. }else {
  159. return this.linkmanKey.indexOf(key)>=0
  160. }
  161. }
  162. },
  163. }
  164. </script>
  165. <style lang="scss" scoped>
  166. .identity {
  167. padding-top: 90rpx;
  168. background-image: url('https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task-details/bg-one.png');
  169. background-repeat: no-repeat;
  170. background-size: 100% auto;
  171. .bg-box {
  172. width: 710rpx;
  173. height: 80rpx;
  174. }
  175. .dot {
  176. width: 12rpx;
  177. height: 12rpx;
  178. border-radius: 50%;
  179. background: #0FB160;
  180. }
  181. .capsule {
  182. color: #00542A;
  183. width: 114rpx;
  184. height: 42rpx;
  185. line-height: 42rpx;
  186. border-radius: 99rpx;
  187. text-align: center;
  188. background: rgba(31, 190, 111, 0.1);
  189. }
  190. }
  191. .card {
  192. width: 160rpx;
  193. height: 90rpx;
  194. display: block;
  195. }
  196. .line-box {
  197. width: 2rpx;
  198. height: 26rpx;
  199. background: #121212;
  200. }
  201. .spouse {
  202. width: 345rpx;
  203. height: 48rpx;
  204. line-height: 48rpx;
  205. color: #003A1D;
  206. border-radius: 100rpx;
  207. background: linear-gradient(90deg, rgba(15, 177, 96, 0.2) 0%, rgba(15, 177, 96, 0) 61%);
  208. }
  209. .num-item {
  210. width: 30rpx;
  211. height: 30rpx;
  212. color: #fff;
  213. line-height: 30rpx;
  214. text-align: center;
  215. border-radius: 50%;
  216. background: #0FB160;
  217. }
  218. </style>