housedetail.vue 39 KB

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