housedetail.vue 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081
  1. <template>
  2. <view class="check">
  3. <uni-forms ref="form" :model="datainfo" :rules="rules">
  4. <view class="cbox">
  5. <view class="chmain">
  6. <picker range-key='dictLabel' :disabled="ptype=='edit'?true:false" :value="rylxidx" :range="rylxList" @change='bindDateChangee'>
  7. <uni-forms-item label="人员类型" required name="residentType">
  8. <view class="flexc mh35">
  9. <view class="flex1 txr f13 co27" v-if="datainfo.residentType&&!rylx">{{statusFormats(datainfo.residentType,rylxList,'rylx')}}</view>
  10. <view class="flex1 txr f13" v-else :class="rylx?'co27':'coa'">{{rylx||"请选择人员类型"}}</view>
  11. <view class="rimg"><image :src="rimg"></image></view>
  12. </view>
  13. </uni-forms-item>
  14. </picker>
  15. <uni-forms-item label="姓名" name="residentName">
  16. <view class="flexc">
  17. <uni-easyinput :disabled="isdisabled" v-model="datainfo.residentName" :inputBorder='false' placeholder="请输入姓名" />
  18. </view>
  19. </uni-forms-item>
  20. <uni-forms-item label="手机号码" required name="residentPhone">
  21. <view class="flexc">
  22. <uni-easyinput :disabled="isdisabled" v-model="datainfo.residentPhone" :inputBorder='false' placeholder="请输入手机号码" />
  23. </view>
  24. </uni-forms-item>
  25. <uni-forms-item label="小区名称" required name="tenantId">
  26. <w-select
  27. style="margin-left: 20rpx;"
  28. v-model="datainfo.tenantId"
  29. :list='voList'
  30. width='200rpx'
  31. valueName='dictLabel'
  32. keyName="dictValue"
  33. :valuea="datainfo.tenantId"
  34. :chosevalue="tenantName?tenantName:statusFormats(datainfo.tenantId,voList,'tenant')"
  35. :isdisabled="ptype=='edit'?true:false"
  36. :filterable="filterable"
  37. @change='getchangea'
  38. >
  39. </w-select>
  40. </uni-forms-item>
  41. <block v-if="datainfo.residentType&&datainfo.residentType!=3">
  42. <uni-forms-item label="房屋号" required name="houseId" v-if="datainfo.residentType!=3">
  43. <w-select
  44. style="margin-left: 20rpx;"
  45. v-model="datainfo.houseId"
  46. :list='fwlist'
  47. valueName='dictLabel'
  48. keyName="dictValue"
  49. :valuea="datainfo.houseId"
  50. :isdisabled="ptype=='edit'?true:false"
  51. :chosevalue="datainfo.detailedAddress"
  52. :filterable='filterable'
  53. @change='getchange'
  54. >
  55. </w-select>
  56. </uni-forms-item>
  57. <block v-if="datainfo.residentType==1">
  58. <uni-forms-item label="是否户主" required name="isHouseholder">
  59. <view class="flexc ">
  60. <view class="flex1"></view>
  61. <view class="sylist flexcc" :class="datainfo.isHouseholder==ite.dictValue?'act':''" v-for="(ite,idx) in sfList" :key="idx" @click="getSyFn(ite.dictValue)">{{ite.dictLabel}}</view>
  62. <view class="rimg"><image :src="rimg"></image></view>
  63. </view>
  64. </uni-forms-item>
  65. <block v-if="datainfo.isHouseholder!='Y'">
  66. <picker range-key='dictLabel' :disabled="isdisabled" :value="hzgxidx" :range="hzgxList" @change='bindDateChangea'>
  67. <uni-forms-item class="isnobor" label="与户主关系" required name="residentRelationship">
  68. <view class="flexc mh35">
  69. <view class="flex1 txr f13 co27" v-if="datainfo.residentRelationship&&!hzgx">{{statusFormats(datainfo.residentRelationship,hzgxList,'hzgx')}}</view>
  70. <view class="flex1 txr f13" v-else :class="hzgx?'co27':'coa'">{{hzgx||"请选择与户主关系"}}</view>
  71. <view class="rimg"><image :src="rimg"></image></view>
  72. </view>
  73. </uni-forms-item>
  74. </picker>
  75. </block>
  76. </block>
  77. </block>
  78. </view>
  79. <uni-collapse ref="collapse" >
  80. <block>
  81. <view class="chtit">人员信息</view>
  82. <block>
  83. <uni-collapse-item title-border="none" class="chmain">
  84. <template v-slot:title>
  85. <uni-forms-item label="身份证号" required name="residentIdCard">
  86. <view class="flexc">
  87. <uni-easyinput :disabled="isdisabled" v-model="datainfo.residentIdCard" :inputBorder='false' placeholder="自动识别" />
  88. <image v-if='datainfo.idCardBack' :src="baseUrl+datainfo.idCardBack" class="cmico" @click.stop="getPreview(datainfo.idCardBack)"></image>
  89. <image :src="cmico" @click.stop="getaddImage('front')" class="cmico"></image>
  90. </view>
  91. </uni-forms-item>
  92. </template>
  93. <view>
  94. <uni-forms-item label="性别" required name="residentGender">
  95. <view class="flexc">
  96. <view class="flex1"></view>
  97. <uni-data-checkbox :map="map" :disabled="isdisabled" selectedColor="#0156FE" selectedTextColor="#272727" v-model="datainfo.residentGender" :localdata="xbList" />
  98. </view>
  99. </uni-forms-item>
  100. <uni-forms-item label="家庭地址" required name="idCardAddress">
  101. <view class="flexc">
  102. <uni-easyinput disabled v-model="datainfo.idCardAddress" :inputBorder='false' placeholder="自动识别" />
  103. </view>
  104. </uni-forms-item>
  105. <picker range-key='dictLabel' :disabled="isdisabled" :value="rymmidx" :range="rymmList" @change='bindDateChangef'>
  106. <uni-forms-item label="人员面貌" required name="residentAppearance">
  107. <view class="flexc mh35">
  108. <view class="flex1 txr f13 co27" v-if="datainfo.residentAppearance&&!rymm">{{statusFormats(datainfo.residentAppearance,rymmList,'rymm')}}</view>
  109. <view class="flex1 txr f13" v-else :class="rymm?'co27':'coa'">{{rymm||"请选择人员面貌"}}</view>
  110. <view class="rimg"><image :src="rimg"></image></view>
  111. </view>
  112. </uni-forms-item>
  113. </picker>
  114. <picker range-key='dictLabel' :disabled="isdisabled" :value="dslxidx" :range="dslxList" @change='bindDateChangeg'>
  115. <uni-forms-item label="特殊类型" name="specialType">
  116. <view class="flexc mh35">
  117. <view class="flex1 txr f13 co27" v-if="datainfo.specialType&&!dslx">{{statusFormats(datainfo.specialType,dslxList,'dslx')}}</view>
  118. <view class="flex1 txr f13" v-else :class="dslx?'co27':'coa'">{{dslx||"如有五保户等特殊类型,请选择"}}</view>
  119. <view class="rimg"><image :src="rimg"></image></view>
  120. </view>
  121. </uni-forms-item>
  122. </picker>
  123. <uni-forms-item label="工作单位" name="residentEmployer">
  124. <view class="flexc">
  125. <uni-easyinput :disabled="isdisabled" v-model="datainfo.residentEmployer" :inputBorder='false' placeholder="请输入工作单位" />
  126. </view>
  127. </uni-forms-item>
  128. <uni-forms-item label="兴趣爱好" name="residentHobby">
  129. <view class="flexc ml10">
  130. <uni-easyinput type="textarea" :disabled="isdisabled" autoHeight v-model="datainfo.residentHobby" :inputBorder='false' placeholder="请输入兴趣爱好" />
  131. </view>
  132. </uni-forms-item>
  133. <uni-forms-item label="上传头像" name="facePhoto">
  134. <view class="addimgs">
  135. <block v-if="phofile&&phofile.length">
  136. <view class="assimg" v-for="(ite,idx) in phofile" :key="idx" @click="getPreviewa(idx,phofile)">
  137. <image :src="baseUrl+ite" class="img"></image>
  138. <image :src="rdelimg" class="delimg" @click.stop="getDelFn(idx,'fm')" v-if="!isdisabled"></image>
  139. </view>
  140. </block>
  141. <view class="addbox" @click="getaddImageava">
  142. <image :src="aphoto"></image>
  143. <view>添加图片</view>
  144. </view>
  145. </view>
  146. </uni-forms-item>
  147. </view>
  148. </uni-collapse-item>
  149. </block>
  150. </block>
  151. <block v-if="datainfo.residentType==1&&datainfo.isHouseholder=='Y'">
  152. <view class="chtit">房本信息</view>
  153. <block>
  154. <uni-collapse-item title-border="none" class="chmain">
  155. <template v-slot:title>
  156. <uni-forms-item label="房屋坐落" required name="location">
  157. <view class="flexc">
  158. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.location" :inputBorder='false' placeholder="自动识别" />
  159. <image v-if='houserinfo.houseImage' :src="baseUrl+houserinfo.houseImage" class="cmico" @click.stop="getPreview(houserinfo.houseImage)"></image>
  160. <image :src="cmico" @click.stop="getaddImage('fbxx')" class="cmico"></image>
  161. </view>
  162. </uni-forms-item>
  163. </template>
  164. <view >
  165. <uni-forms-item label="权利人姓名" name="ownerName">
  166. <view class="flexc">
  167. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.ownerName" :inputBorder='false' placeholder="自动识别" />
  168. <view class="rimg"></view>
  169. </view>
  170. </uni-forms-item>
  171. <uni-forms-item label="权利类型" name="rightType">
  172. <picker range-key='dictLabel' :disabled="isdisabled" :value="qllxidx" :range="qllxList" @change='bindDateChange'>
  173. <view class="flexc">
  174. <view class="flex1 txr f13 co27" v-if="houserinfo.rightType&&!qllx">{{statusFormats(houserinfo.rightType,qllxList,'qllx')}}</view>
  175. <view class="flex1 txr f13" v-else :class="qllx?'co27':'coa'">{{qllx||"请选择权利类型"}}</view>
  176. <view class="rimg"><image :src="rimg"></image></view>
  177. </view>
  178. </picker>
  179. </uni-forms-item>
  180. <uni-forms-item label="建筑面积" required name="area">
  181. <view class="flexc">
  182. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.area" :inputBorder='false' placeholder="自动识别" />
  183. <view class="tips">m²</view>
  184. <view class="rimg"></view>
  185. </view>
  186. </uni-forms-item>
  187. <uni-forms-item label="不动产单元号" name="propertyUnitNumber">
  188. <view class="flexc">
  189. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.propertyUnitNumber" :inputBorder='false' placeholder="请输入不动产单元号" />
  190. <view class="rimg"></view>
  191. </view>
  192. </uni-forms-item>
  193. <uni-forms-item label="相关的字第号" name="documentNumber">
  194. <view class="flexc">
  195. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.documentNumber" :inputBorder='false' placeholder="请输入相关的字第号" />
  196. <view class="rimg"></view>
  197. </view>
  198. </uni-forms-item>
  199. <uni-forms-item label="小区名称" name="communityName">
  200. <view class="flexc">
  201. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.communityName" :inputBorder='false' placeholder="请输入小区名称" />
  202. <view class="rimg"></view>
  203. </view>
  204. </uni-forms-item>
  205. <uni-forms-item label="门牌号" required name="detailedAddress">
  206. <view class="flexc">
  207. <uni-easyinput disabled v-model="houserinfo.detailedAddress" :inputBorder='false' placeholder="请输入门牌号" />
  208. <view class="rimg"></view>
  209. </view>
  210. </uni-forms-item>
  211. <uni-forms-item label="使用期限" name="usagePeriod">
  212. <view class="flexc">
  213. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.usagePeriod" :inputBorder='false' placeholder="请输入使用期限" />
  214. <view class="rimg"></view>
  215. </view>
  216. </uni-forms-item>
  217. <uni-forms-item label="登记日期" name="registrationDate">
  218. <!-- <picker mode="timed" :disabled="isdisabled" @change='bindDateChangea'>
  219. <view class="flexc">
  220. <view class="flex1 txr f13" :class="datainfo.registrationDate?'co27':'coa'">{{datainfo.registrationDate||"请选择登记日期"}}</view>
  221. <view class="rimg"><image :src="rimg"></image></view>
  222. </view>
  223. </picker> -->
  224. <!-- :hide-second='true' -->
  225. <view class="flexc">
  226. <uni-datetime-picker :disabled="isdisabled" :class="houserinfo.registrationDate?'co27':'coa'" type="datetime" placeholder="请选择登记日期" :border="false" v-model="houserinfo.registrationDate" />
  227. <view class="rimg"><image :src="rimg"></image></view>
  228. </view>
  229. </uni-forms-item>
  230. <uni-forms-item label="共有姓名" name="coOwner">
  231. <view class="flexc">
  232. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.coOwner" :inputBorder='false' placeholder="请输入共有姓名" />
  233. <view class="rimg"></view>
  234. </view>
  235. </uni-forms-item>
  236. <uni-forms-item label="共有情况" name="coOwnership">
  237. <view class="flexc">
  238. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.coOwnership" :inputBorder='false' placeholder="请输入共有情况" />
  239. <view class="rimg"></view>
  240. </view>
  241. </uni-forms-item>
  242. <uni-forms-item label="房屋状态" name="houseStatus">
  243. <picker range-key='dictLabel' :disabled="isdisabled" :value="fwztidx" :range="fwztList" @change='bindDateChangeb'>
  244. <view class="flexc">
  245. <view class="flex1 txr f13 co27" v-if="houserinfo.houseStatus&&!fwzt">{{statusFormats(houserinfo.houseStatus,fwztList,'fwzt')}}</view>
  246. <view class="flex1 txr f13" v-else :class="fwzt?'co27':'coa'">{{fwzt||"请选择房屋状态"}}</view>
  247. <view class="rimg"><image :src="rimg"></image></view>
  248. </view>
  249. </picker>
  250. </uni-forms-item>
  251. <uni-forms-item label="房屋用途" name="usageType">
  252. <picker range-key='dictLabel' :disabled="isdisabled" :value="fwytidx" :range="fwytList" @change='bindDateChangec'>
  253. <view class="flexc">
  254. <view class="flex1 txr f13 co27" v-if="houserinfo.usageType&&!fwyt">{{statusFormats(houserinfo.usageType,fwytList,'fwyt')}}</view>
  255. <view class="flex1 txr f13" v-else :class="fwyt?'co27':'coa'">{{fwyt||"请选择房屋用途"}}</view>
  256. <view class="rimg"><image :src="rimg"></image></view>
  257. </view>
  258. </picker>
  259. </uni-forms-item>
  260. <uni-forms-item label="有无车位" name="hasParkingSpace">
  261. <picker range-key='dictLabel' :disabled="isdisabled" :value="ywcwidx" :range="ywcwList" @change='bindDateChanged'>
  262. <view class="flexc">
  263. <view class="flex1 txr f13 co27" v-if="houserinfo.hasParkingSpace&&!ywcw">{{statusFormats(houserinfo.hasParkingSpace,ywcwList,'ywcw')}}</view>
  264. <view class="flex1 txr f13" v-else :class="ywcw?'co27':'coa'">{{ywcw||"请选择有/无"}}</view>
  265. <view class="rimg"><image :src="rimg"></image></view>
  266. </view>
  267. </picker>
  268. </uni-forms-item>
  269. <uni-forms-item label="车位号" name="parkingNumber">
  270. <view class="flexc">
  271. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.parkingNumber" :inputBorder='false' placeholder="请输入车位号" />
  272. <view class="rimg"></view>
  273. </view>
  274. </uni-forms-item>
  275. </view>
  276. </uni-collapse-item>
  277. </block>
  278. </block>
  279. </uni-collapse>
  280. <view class="hfbtns flexcj" v-if="datainfo.examine==1&&checkPermi(['wuYe:residentInfo:examineStaff'])">
  281. <view class="btn btn1" @click.stop="getShFn('3')">拒绝</view>
  282. <view class="btn btn2" @click.stop="getShFn('2')">通过</view>
  283. </view>
  284. <view class="hfbtns flexcj" v-if="datainfo.examine==3&&checkPermi(['wuYe:residentInfo:editAuthentication'])">
  285. <view class="btn btn2 flex1" @click.stop="getSubmit">修改提交</view>
  286. </view>
  287. </view>
  288. </uni-forms>
  289. <loading></loading>
  290. </view>
  291. </template>
  292. <script>
  293. import config from '@/config'
  294. import {checkPermi,checkRole} from "@/utils/permission"; // 权限判断函数
  295. import {uploadIdentify,uploadmore} from '@/utils/common.js'
  296. import {listNoPageTenant,houseInfoDet,examineResident} from "@/api/work/work.js"
  297. import {gettenantList} from "@/api/login.js"
  298. import {residentInfoDet,authenticationPut,addResidentInfo} from "@/api/work/people.js"
  299. import {getDictionaryFn} from "@/api/system/user.js"
  300. import {selectValueKey} from "@/utils/common.js"
  301. import {getOcrIdCard,getrealEstateCertificatee} from "@/api/system/card.js"
  302. import wSelect from "@/people/components/w-select/w-select.vue"
  303. export default {
  304. components: {wSelect},
  305. data() {
  306. return {
  307. rimg: require('@/mine/static/house/rimg.png'),
  308. cmico: require('@/mine/static/house/cmico.png'),
  309. aphoto: require('@/service/static/service/photo.png'),
  310. rdelimg:require('@/service/static/service/rdel.png'),
  311. baseUrl: config.baseUrl,
  312. checkflag:true,
  313. backgroundColor: "transparent",
  314. datainfo: {
  315. "tenantId":"",//租户id
  316. "residentType":"",//人员类型:1:业主 2:租户 3:其他
  317. "residentName":"",//居住人员姓名
  318. "residentPhone":"",//人员手机号
  319. "houseInfoRedidentList":[],//用户房屋信息集合
  320. "houseId":"",//关联房屋信息表的house_id
  321. "residentRelationship":"",//居住人员与户主的关系,如父子、夫妻等
  322. "isHouseholder":"",//是否是户主 N不是 Y是
  323. "residentIdCard":"",//居住人员身份证号码,18位
  324. // "residentBirthday":"",//居住人员出生日期
  325. "residentGender":'',//居住人员性别:1-男,2-女
  326. // "isTenant":"",//是否是租户:Y-是,N-否
  327. "residentEmployer":"",//居住人员工作单位
  328. "residentAppearance":"",//居住人员面貌,如党员、群众等
  329. "residentHobby":"",//爱好
  330. "facePhoto":"",//人脸地址
  331. "idCardAddress":"",//身份证住址
  332. "specialType":"",//特殊类型
  333. "idCardFront":"",//身份证正面
  334. "idCardBack":"",//身份证反面
  335. },
  336. rules:{
  337. residentType: {rules: [{required: true,errorMessage: '请选择人人员类型' }]},
  338. // residentIdCard: {rules: [{required: true,errorMessage: '请输入身份证号码' }]},
  339. // residentName: {rules: [{required: true,errorMessage: '请输入姓名' }]},
  340. // residentGender: {rules: [{required: true,errorMessage: '请选择性别' }]},
  341. // houseId: {rules: [{required: true,errorMessage: '请选择房屋号' }]},
  342. // detailedAddress: {rules: [{required: true,errorMessage: '请输入居住地址' }]},
  343. // isHouseholder: {rules: [{required: true,errorMessage: '请选择是否户主' }]},
  344. // residentRelationship: {rules: [{required: true,errorMessage: '请选择与户主关系' }]},
  345. residentPhone: {rules: [{required: true,errorMessage: '请输入手机号'}, {pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,errorMessage:'请输入正确的手机号码'}]},
  346. },
  347. hzgx:"",
  348. rylx:"",
  349. hzgxidx:0,
  350. dslxidx:0,
  351. rylxidx:0,
  352. list:[],
  353. phofile:[],
  354. fwlist:[],
  355. rylxList:[],
  356. fwzt:'',
  357. qllx:'',
  358. fwyt:'',
  359. ywcw:'',
  360. hzgx:'',
  361. sfhz:"",
  362. sfzh:"",
  363. rymm:"",
  364. dslx:"",
  365. fwztidx:0,
  366. qllxidx:0,
  367. fwytidx:0,
  368. ywcwidx:0,
  369. hzgxidx:0,
  370. sfzhidx:0,
  371. rymmidx:0,
  372. sfhzidx:0,
  373. dslxidx:0,
  374. fwztList:[],
  375. qllxList:[],
  376. fwytList:[],
  377. hzgxList:[],
  378. sfList:[],
  379. rymmList:[],
  380. dslxList:[],
  381. xbList:[],
  382. ywcwList:[{dictLabel:'有',dictValue:'Y'},{dictLabel:'无',dictValue:'N'},],
  383. isdisabled:false,
  384. ptype:'add',
  385. filterable:true,
  386. chooseValue:'',
  387. map:{text:'dictLabel',value:'dictValue'},
  388. userId:this.$store.state.user.userId,
  389. voList:[],
  390. tenantName:'',
  391. houseInfoRedidentList:[],
  392. fwztList:[],
  393. qllxList:[],
  394. fwytList:[],
  395. sfList:[],
  396. rzflag:false,
  397. choseidx:'',
  398. houserinfo:{
  399. "houseId":'',
  400. "tenantId":"",//租户id
  401. "houseImage":null,//房本照片
  402. "ownerName":null,//权利人姓名
  403. "location":null,//房屋坐落位置
  404. "rightType":null,//权利类型,如所有权、使用权等
  405. "area":null,//房屋面积,单位为平方米
  406. "documentNumber":null,//房屋相关的字第号
  407. "propertyUnitNumber":null,//不动产单元号
  408. "coOwnership":null,//房屋的共有情况,如共有比例等
  409. "usageType":null,//房屋用途,如住宅、商业等
  410. "usagePeriod":null,//房屋使用期限
  411. "registrationDate":null,//房屋登记日期
  412. "coOwner":null,//共有人姓名,多个共有人可以用逗号分隔
  413. "detailedAddress":null,//房屋的门牌号
  414. "hasParkingSpace":null,//是否有车位,Y表示有,N表示无
  415. "communityName":null,//房屋所在小区名称
  416. "houseStatus":null,//房屋状态:1-自住,2-出租,3-空闲,4-待售
  417. "parkingNumber":null,//车位号
  418. }
  419. }
  420. },
  421. onLoad: function(e) {
  422. if(e.type){
  423. this.rztype=e.type
  424. this.rzflag=true;
  425. this.datainfo.residentPhone=this.$store.state.user.phonenumber;
  426. this.datainfo.userId=this.$store.state.user.userId;
  427. }else{
  428. // var tenantId=this.$store.state.user.tenantId;
  429. // this.datainfo.tenantId=tenantId;
  430. }
  431. this.gettenantList();
  432. if(e.id){
  433. this.id=e.id;
  434. this.ptype="edit";
  435. // this.isdisabled=true;
  436. this.getDetail()
  437. }
  438. this.init()
  439. },
  440. onPageScroll(e) {
  441. var scrollTop = Number(e.scrollTop);
  442. if (scrollTop > 0) {
  443. this.backgroundColor = '#48CC9A'
  444. } else {
  445. this.backgroundColor = 'transparent'
  446. }
  447. },
  448. methods: {
  449. checkPermi,
  450. checkRole,
  451. getEditFn(){
  452. this.isdisabled=false;
  453. },
  454. getSyFn(e){
  455. if(this.isdisabled){
  456. return
  457. }
  458. this.datainfo.isHouseholder=e
  459. console.log(this.datainfo.isHouseholder)
  460. },
  461. getShFn(type){
  462. var that=this;
  463. var params=JSON.parse(JSON.stringify(this.datainfo))
  464. params.examine=type;
  465. examineResident(params).then(res=>{
  466. if(res.code==200){
  467. this.$toast('审核成功')
  468. setTimeout(function() {
  469. uni.$emit('refHouseList')
  470. uni.navigateBack({
  471. delta:1
  472. })
  473. }, 1500);
  474. }
  475. })
  476. },
  477. getChose(idx){
  478. this.choseidx=idx;
  479. },
  480. getAddfb(){
  481. var obj={
  482. "ownerName":"",//权利人姓名
  483. "location":"",//房屋坐落位置
  484. "rightType":"",//权利类型,如所有权、使用权等
  485. "area":"",//房屋面积,单位为平方米
  486. "documentNumber":"",//房屋相关的字第号
  487. "propertyUnitNumber":"",//不动产单元号
  488. "coOwnership":"",//房屋的共有情况,如共有比例等
  489. "usageType":"",//房屋用途,如住宅、商业等
  490. "usagePeriod":"",//房屋使用期限
  491. "registrationDate":"",//房屋登记日期
  492. "coOwner":"",//共有人姓名,多个共有人可以用逗号分隔
  493. "detailedAddress":"",//房屋的门牌号
  494. "hasParkingSpace":"",//是否有车位,Y表示有,N表示无
  495. "communityName":"",//房屋所在小区名称
  496. "houseStatus":"",//房屋状态:1-自住,2-出租,3-空闲,4-待售
  497. "parkingNumber":'',//车位号
  498. }
  499. this.houseInfoRedidentList.push(obj)
  500. },
  501. getDelfb(idx){
  502. this.houseInfoRedidentList.splice(idx,1)
  503. },
  504. statusFormats(data, list,type) {
  505. var aite=selectValueKey(list, data);
  506. if(type=='qllx'){
  507. this.qllxidx=aite.key;
  508. }else if(type=='rylx'){
  509. this.rylxidx=aite.key;
  510. }else if(type=='hzgx'){
  511. this.hzgxidx=aite.key;
  512. }else if(type=='fwzt'){
  513. this.fwztidx=aite.key;
  514. }else if(type=='fwyt'){
  515. this.fwytidx=aite.key;
  516. }else if(type=='ywcw'){
  517. this.ywcwidx=aite.key;
  518. }else if(type=='tenant'){
  519. this.tenantName=aite.actions;
  520. }else if(type=='rymm'){
  521. this.rymmidx=aite.key;
  522. }else if(type=='dslx'){
  523. this.dslxidx=aite.key;
  524. }
  525. return aite.actions;
  526. },
  527. getchangea(e){
  528. var tenantId=this.datainfo.tenantId;
  529. this.datainfo.tenantId=e.dictValue;
  530. this.houserinfo.communityName=e.dictLabel;
  531. // 业主或租户
  532. if(this.datainfo.residentType!=3){
  533. this.listNoPageTenant(e.dictValue)
  534. }
  535. },
  536. getchange(e){
  537. this.datainfo.houseId=e.dictValue;
  538. this.datainfo.detailedAddress=e.dictLabel;
  539. this.houserinfo.detailedAddress=e.dictLabel;
  540. this.houserinfo.houseId=e.dictValue;
  541. this.houserinfo.location=e.location;
  542. },
  543. // 获取租户列表
  544. gettenantList(){
  545. gettenantList().then(res=>{
  546. if(res.code==200){
  547. if(res.data.voList&&res.data.voList.length){
  548. this.voList = res.data.voList.map(v => {
  549. return {
  550. dictLabel: v.companyName,
  551. dictValue: v.tenantId
  552. }
  553. })
  554. }
  555. }else{
  556. this.$toast(res.msg)
  557. }
  558. })
  559. },
  560. listNoPageTenant(id){
  561. var params={
  562. tenantId:id,
  563. }
  564. listNoPageTenant(params).then(res=>{
  565. if(res.code==200){
  566. this.fwlist= res.data.map(v => {
  567. return {
  568. dictLabel: v.detailedAddress,
  569. dictValue: v.houseId,
  570. location: v.location
  571. }
  572. })
  573. // if(res.rows&&res.rows.length<2){
  574. // var newObj=res.rows[0];
  575. // this.datainfo.houseId=newObj.houseId;
  576. // this.datainfo.detailedAddress=newObj.detailedAddress
  577. // }
  578. }
  579. })
  580. },
  581. init(){
  582. // 人员类型
  583. getDictionaryFn('resident_Type').then(res=>{
  584. if(res.code==200){
  585. this.rylxList = res.data.map(v => {
  586. return {
  587. dictLabel: v.dictLabel,
  588. dictValue: v.dictValue
  589. }
  590. })
  591. }
  592. })
  593. // 是否
  594. getDictionaryFn('sys_yes_no').then(res=>{
  595. if(res.code==200){
  596. this.sfList = res.data.map(v => {
  597. return {
  598. dictLabel: v.dictLabel,
  599. dictValue: v.dictValue
  600. }
  601. })
  602. }
  603. })
  604. //户主关系
  605. getDictionaryFn('relationship_householder').then(res=>{
  606. if(res.code==200){
  607. this.hzgxList = res.data.map(v => {
  608. return {
  609. dictLabel: v.dictLabel,
  610. dictValue: v.dictValue
  611. }
  612. })
  613. }
  614. })
  615. // 房屋状态
  616. getDictionaryFn('house_status').then(res=>{
  617. if(res.code==200){
  618. this.fwztList = res.data.map(v => {
  619. return {
  620. dictLabel: v.dictLabel,
  621. dictValue: v.dictValue
  622. }
  623. })
  624. }
  625. })
  626. //权利类型
  627. getDictionaryFn('types_rights').then(res=>{
  628. if(res.code==200){
  629. this.qllxList = res.data.map(v => {
  630. return {
  631. dictLabel: v.dictLabel,
  632. dictValue: v.dictValue
  633. }
  634. })
  635. }
  636. })
  637. //房屋用途
  638. getDictionaryFn('use_remises').then(res=>{
  639. if(res.code==200){
  640. this.fwytList = res.data.map(v => {
  641. return {
  642. dictLabel: v.dictLabel,
  643. dictValue: v.dictValue
  644. }
  645. })
  646. }
  647. })
  648. //人员面貌
  649. getDictionaryFn('affiliation_personnel').then(res=>{
  650. if(res.code==200){
  651. this.rymmList = res.data.map(v => {
  652. return {
  653. dictLabel: v.dictLabel,
  654. dictValue: v.dictValue
  655. }
  656. })
  657. }
  658. })
  659. // 特殊类型
  660. getDictionaryFn('special_type').then(res=>{
  661. if(res.code==200){
  662. this.dslxList = res.data.map(v => {
  663. return {
  664. dictLabel: v.dictLabel,
  665. dictValue: v.dictValue
  666. }
  667. })
  668. }
  669. })
  670. //性别
  671. getDictionaryFn('gender').then(res=>{
  672. if(res.code==200){
  673. this.xbList = res.data.map(v => {
  674. return {
  675. dictLabel: v.dictLabel,
  676. dictValue: Number(v.dictValue)
  677. }
  678. })
  679. }
  680. })
  681. },
  682. getBackFn(){
  683. uni.navigateBack({
  684. delta:1
  685. })
  686. },
  687. bindDateChange(e){
  688. var val=e.detail.value;
  689. this.houserinfo.rightType=this.qllxList[val].dictValue;
  690. this.qllx=this.qllxList[val].dictLabel;
  691. },
  692. bindDateChangea(e){
  693. var val=e.detail.value;
  694. this.houserinfo.registrationDate=val;
  695. },
  696. bindDateChangeb(e){
  697. var val=e.detail.value;
  698. this.houserinfo.houseStatus=this.fwztList[val].dictValue;
  699. this.fwzt=this.fwztList[val].dictLabel;
  700. },
  701. bindDateChangec(e){
  702. var val=e.detail.value;
  703. this.houserinfo.usageType=this.fwytList[val].dictValue;
  704. this.fwyt=this.fwytList[val].dictLabel;
  705. },
  706. bindDateChanged(e){
  707. var val=e.detail.value;
  708. this.houserinfo.hasParkingSpace=this.ywcwList[val].dictValue;
  709. this.ywcw=this.ywcwList[val].dictLabel;
  710. },
  711. bindDateChangee(e){
  712. var val=e.detail.value;
  713. this.datainfo.residentType=this.rylxList[val].dictValue;
  714. this.rylx=this.rylxList[val].dictLabel;
  715. },
  716. bindDateChangef(e){
  717. var val=e.detail.value;
  718. this.datainfo.residentAppearance=this.rymmList[val].dictValue;
  719. this.rymm=this.rymmList[val].dictLabel;
  720. },
  721. bindDateChangeg(e){
  722. var val=e.detail.value;
  723. this.datainfo.specialType=this.dslxList[val].dictValue;
  724. this.dslx=this.dslxList[val].dictLabel;
  725. },
  726. getDetail(){
  727. residentInfoDet(this.id).then(res=>{
  728. if(res.code==200){
  729. this.datainfo=res.data;
  730. if(res.data.facePhoto){
  731. this.phofile=res.data.facePhoto.split(',')
  732. }
  733. var data=JSON.parse(JSON.stringify(res.data))
  734. if(data.residentType!=3){
  735. this.listNoPageTenant(data.tenantId)
  736. }
  737. if(res.data.houseInfoRedidentList&&res.data.houseInfoRedidentList.length&&res.data.houseInfoRedidentList[0]){
  738. var houseinfo=res.data.houseInfoRedidentList[0]
  739. this.houserinfo=JSON.parse(JSON.stringify(houseinfo))
  740. }
  741. if(res.data.examine&&res.data.examine==1){
  742. this.isdisabled=true;
  743. }
  744. }
  745. })
  746. },
  747. getSubmit(){
  748. var that=this;
  749. this.$refs.form.validate().then(res => {
  750. var params=JSON.parse(JSON.stringify(this.datainfo))
  751. var phofile=JSON.parse(JSON.stringify(this.phofile))
  752. // if(phofile&&phofile.length){
  753. // params.facePhoto=this.phofile.join(',');
  754. // }
  755. params.facePhoto=this.phofile.join(',');
  756. if(!params.tenantId){
  757. this.$toast('请选择小区名称')
  758. return
  759. }
  760. if(params.residentType==1&&params.isHouseholder=='Y'){
  761. var houserinfo=JSON.parse(JSON.stringify(this.houserinfo))
  762. if(!houserinfo.location){
  763. this.$toast('请输入房屋坐落')
  764. return
  765. }
  766. if(!houserinfo.area){
  767. this.$toast('请输入房屋面积')
  768. return
  769. }
  770. if(!houserinfo.detailedAddress){
  771. this.$toast('请输入门牌号')
  772. return
  773. }
  774. houserinfo.tenantId=params.tenantId;
  775. var newarr=[]
  776. newarr.push(houserinfo)
  777. params.houseInfoRedidentList=JSON.parse(JSON.stringify(newarr))
  778. }
  779. if(params.residentType==2){
  780. params.isTenant='Y'
  781. }else{
  782. params.isTenant=''
  783. }
  784. // if(!params.detailedAddress){
  785. // this.$toast('请选择居住门户')
  786. // return
  787. // }
  788. // let _IDRe18 =
  789. // /^([1-6][1-9]|50)\d{4}(18|19|20)\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
  790. // let _IDre15 = /^([1-6][1-9]|50)\d{4}\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}$/
  791. // // 校验身份证:
  792. // if (params.residentIdCard&&!_IDRe18.test(params.residentIdCard) && !_IDre15.test(params.residentIdCard)) {
  793. // this.$toast("请输入正确身份证号")
  794. // return
  795. // }
  796. if(this.ptype=='add'){
  797. if(this.rzflag){
  798. addResidentInfo(params).then(res=>{
  799. if(res.code==200){
  800. this.$toast("新增成功")
  801. setTimeout(function(){
  802. uni.$emit("refHouseList")
  803. var initFace='';
  804. that.$store.dispatch('checkInitFace', initFace).then(() => {
  805. })
  806. uni.navigateBack({
  807. delta:1
  808. })
  809. },1500)
  810. }
  811. })
  812. }else{
  813. }
  814. }else{
  815. if(this.rzflag){
  816. params.isFilter=true;
  817. authenticationPut(params).then(res=>{
  818. if(res.code==200){
  819. this.$toast("修改成功")
  820. setTimeout(function(){
  821. uni.$emit("refHouseList")
  822. var initFace='';
  823. that.$store.dispatch('checkInitFace', initFace).then(() => {
  824. })
  825. uni.navigateBack({
  826. delta:1
  827. })
  828. },1500)
  829. }
  830. })
  831. }else{
  832. authenticationPut(params).then(res=>{
  833. if(res.code==200){
  834. this.$toast("修改成功")
  835. setTimeout(function(){
  836. uni.$emit("refHouseList")
  837. uni.navigateBack({
  838. delta:1
  839. })
  840. },1500)
  841. }
  842. })
  843. }
  844. }
  845. })
  846. },
  847. getPreviewa(idx,arr) {
  848. var newArr=[];
  849. arr.forEach(ite=>{
  850. var ds=this.baseUrl+ite
  851. newArr.push(ds)
  852. })
  853. uni.previewImage({
  854. urls: newArr,
  855. current:idx,
  856. success: function(data) {},
  857. fail: function(err) {}
  858. });
  859. },
  860. getPreview(img) {
  861. var newArr=[];
  862. var url=this.baseUrl+img
  863. newArr.push(url)
  864. uni.previewImage({
  865. urls: newArr,
  866. current:0,
  867. success: function(data) {},
  868. fail: function(err) {}
  869. });
  870. },
  871. getDelFn(idx,type){
  872. var that=this;
  873. uni.showModal({
  874. title: '确认删除',
  875. content: "是否确认删除",
  876. cancelText: '取消',
  877. confirmText: '确认',
  878. success: function(res) {
  879. if (res.confirm) {
  880. that.phofile.splice(idx,1)
  881. } else if (res.cancel) {
  882. }
  883. }
  884. });
  885. },
  886. getaddImageava(type){
  887. if(this.isdisabled){
  888. return
  889. }
  890. let that = this;
  891. let file =[],count=9
  892. uni.chooseImage({
  893. success:function(res){
  894. let img= res.tempFilePaths;
  895. if(img.length + file.length > count){
  896. uni.showToast({
  897. title: '最多上传'+count+'张图片',
  898. icon: 'none',
  899. duration: 2000
  900. })
  901. }else{
  902. let imglen = res.tempFilePaths.length;
  903. var fuwufile = [];
  904. uploadmore('/common/upload',img,0,0,0,imglen,fuwufile,function(rs){
  905. that.phofile = that.phofile.concat(rs);
  906. })
  907. }
  908. }
  909. });
  910. },
  911. getaddImage(type){
  912. if(this.isdisabled){
  913. return
  914. }
  915. let that = this;
  916. let file =[],count=9
  917. uni.chooseImage({
  918. count: 1,
  919. success:function(res){
  920. let img= res.tempFilePaths;
  921. if(img.length + file.length > count){
  922. uni.showToast({
  923. title: '最多上传'+count+'张图片',
  924. icon: 'none',
  925. duration: 2000
  926. })
  927. }else{
  928. let imglen = res.tempFilePaths.length;
  929. var fuwufile = [];
  930. uploadIdentify('/common/upload',img,0,0,0,imglen,fuwufile,function(rs){
  931. var resurl=rs[0];
  932. if(type=='front'){
  933. that.datainfo.idCardBack = resurl.fileName;
  934. if (rs && rs.length > 0) {
  935. var obj = {
  936. type:type,
  937. url: resurl.urlOnline
  938. }
  939. that.getOcrIdCard(obj)
  940. }
  941. }else{
  942. that.houserinfo.houseImage=resurl.fileName
  943. }
  944. // if(rs&&rs.length>0){
  945. // var obj={
  946. // url:resurl.urlOnline
  947. // }
  948. // that.getOcrIdCardfz(obj)
  949. // }
  950. })
  951. }
  952. }
  953. });
  954. },
  955. getOcrIdCard(obj) {
  956. var params = {
  957. image: obj.url,
  958. idCardSide: obj.type
  959. }
  960. getOcrIdCard(params).then(res => {
  961. if (res.code == 200) {
  962. var datainfo = res.data;
  963. if (obj.type == 'front') {
  964. this.datainfo.residentName = datainfo.realName;
  965. this.datainfo.residentIdCard = datainfo.idCard;
  966. this.datainfo.idCardAddress = datainfo.address;
  967. // } else {
  968. // this.datainfo.expirationDate = datainfo.expirationDate
  969. }
  970. }
  971. })
  972. },
  973. getOcrIdCardfz(obj){
  974. var params={
  975. image:obj.url
  976. }
  977. getrealEstateCertificatee(params).then(res=>{
  978. if(res.code==200){
  979. var datainfo=res.data;
  980. // var obj=JSON.parse(JSON.stringify(this.houseInfoRedidentList[idx]))
  981. this.houserinfo.ownerName=datainfo.ownerName;
  982. this.houserinfo.location=datainfo.location;
  983. this.houserinfo.rightType=datainfo.rightType;
  984. this.houserinfo.area=datainfo.area;
  985. this.houserinfo.documentNumber=datainfo.documentNumber;
  986. this.houserinfo.propertyUnitNumber=datainfo.propertyUnitNumber;
  987. this.houserinfo.coOwnership=datainfo.coOwnership;
  988. this.houserinfo.usageType=datainfo.usageType;
  989. this.houserinfo.usagePeriod=datainfo.usagePeriod;
  990. this.houserinfo.registrationDate=datainfo.registrationDate;
  991. this.houserinfo.coOwner=datainfo.coOwner;
  992. // this.houseInfoRedidentList.splice(idx,1,obj)
  993. }
  994. })
  995. },
  996. }
  997. }
  998. </script>
  999. <style>
  1000. page{background: #F3F3F0;}
  1001. </style>
  1002. <style lang="scss" scoped>
  1003. .coa /deep/ .uni-date__x-input{text-align: right;color: #AAAAAA;}
  1004. .check /deep/ .select-wrap{border: none;width: 100%;}
  1005. .check /deep/ .uni-date-editor--x__disabled{opacity: 1;}
  1006. .mh35{min-height: 70rpx;display: flex;align-items: center;}
  1007. .check /deep/ .uni-forms-item{min-height: 106rpx;box-sizing: border-box;display: flex;align-items: center;margin-bottom: 0;border-bottom: 2rpx solid #E6E6E6;padding:10rpx 0;}
  1008. .check .cbox .chmain /deep/ .isnobor{border: none;}
  1009. .check /deep/ .uni-forms-item__label{font-weight: bold;font-size: 26rpx;color: #222327;flex: 0 0 auto;width: auto !important;}
  1010. .check /deep/ .uni-easyinput{flex: 1;text-align: right;font-size: 26rpx;color: #222327;}
  1011. .check /deep/ .uni-easyinput__content-textarea{min-height: 40rpx;font-size: 26rpx;}
  1012. .check /deep/ .uni-easyinput__placeholder-class{font-size: 26rpx;color: #AAAAAA;}
  1013. .check /deep/ .uni-input-input{font-size: 26rpx;}
  1014. .check /deep/ .uni-textarea-textarea{font-size: 26rpx;}
  1015. .check /deep/ .is-disabled{color: #222327;background-color: #ffffff !important;}
  1016. .check /deep/ .uni-data-checklist .checklist-group .checklist-box{margin:10rpx 8rpx 10rpx 16rpx;}
  1017. .check /deep/ .uni-data-checklist{flex: 0 0 auto;}
  1018. .check /deep/ .is-required{font-size: 26rpx;color: #F40027;margin-right: 4rpx;}
  1019. .check /deep/ .uni-collapse{background-color: transparent;}
  1020. // .check /deep/ .uni-collapse .chmain{margin-bottom: 24rpx;}
  1021. .check{min-height: 100vh;box-sizing: border-box;padding: 20rpx 18rpx 54rpx;}
  1022. .cbox{
  1023. .chtit{font-weight: 500;font-size: 24rpx;color: #666666;padding:20rpx 14rpx;}
  1024. .chmain{
  1025. padding: 0rpx 28rpx;background: #FFFFFF;border-radius: 20rpx;
  1026. .rimg{width: 16rpx;height: 28rpx;flex: 0 0 auto;margin-left: 20rpx;
  1027. image{width: 100%;height: 100%;}
  1028. }
  1029. }
  1030. .hbtns{font-weight: bold;display: flex;align-items: center;justify-content: center;font-size: 26rpx;height: 88rpx;border-radius: 20rpx;box-sizing: border-box;
  1031. &.bga{border: 1px solid #0256FD;color: #FFFFFF;background: #0256FD;}
  1032. &.bgb{border: 1px solid #0256FD;color: #0256FD;background: #CADBFF;}
  1033. }
  1034. .sylist{background: #F0F0F0;border-radius: 26rpx;border:2rpx solid #DADADA;margin-left: 26rpx;font-weight: 500;min-width:112rpx;height: 54rpx;box-sizing: border-box;
  1035. font-size: 26rpx;
  1036. color: #666666;
  1037. &.act{border: 2rpx solid #0256FD;background: #DCE8FF;color: #0256FD;}
  1038. }
  1039. .cmico{width: 48rpx;height: 48rpx;margin-left: 16rpx;}
  1040. .delbox{padding: 12rpx 32rpx;
  1041. image{width: 26rpx;height: 26rpx;margin-right: 14rpx;}
  1042. view{font-weight: 500;font-size: 26rpx;color: #FF6969;}
  1043. }
  1044. }
  1045. .addbox{width: 160rpx;height: 128rpx;background: #F0F0F0;border-radius: 20rpx;display: flex;flex-direction: column;align-items: center;justify-content: center;margin-left: 24rpx;margin-bottom: 20rpx;flex: 0 0 auto;
  1046. image{width: 48rpx;height: 42rpx;margin-bottom: 12rpx;}
  1047. view{font-weight: 500;font-size: 24rpx;color: #666666;}
  1048. }
  1049. .addimgs{display: flex;align-items: center;flex-wrap: wrap;justify-content: flex-end;
  1050. .assimg{width: 128rpx;height: 128rpx;position: relative;overflow: hidden;margin: 0 0 20rpx 24rpx;
  1051. .img{width: 100%;height: 100%;}
  1052. .delimg{width: 24rpx;height: 24rpx;position: absolute;right: 0;top: 0;}
  1053. }
  1054. }
  1055. .hfbtns{margin-top: 60rpx;
  1056. .btn{height: 88rpx;background: #FFF8F8;border-radius: 20rpx;width: 316rpx;display: flex;align-items: center;justify-content: center;font-weight: bold;
  1057. font-size: 26rpx;box-sizing: border-box;
  1058. &.btn1{border: 2rpx solid #FF6969;background: #FFF8F8;color: #FF6969;}
  1059. &.btn2{background: #0256FD;color: #ffffff;}
  1060. }
  1061. }
  1062. </style>