add.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612
  1. <template>
  2. <!-- :style="'padding-top:'+nvaHeight+'px;'" -->
  3. <view class="check">
  4. <!-- <view class="navbox">
  5. <uni-nav-bar color="#ffffff" left-icon="left" title="健康档案" :background-color="backgroundColor" :border="false" statusBar='true' fixed="true" @clickLeft="getBackFn">
  6. </uni-nav-bar>
  7. </view> -->
  8. <uni-forms ref="form" :model="datainfo" :rules="rules">
  9. <view class="cbox">
  10. <view class="chmain">
  11. <view class="plr6">
  12. <view class="rztit">请上传身份证照片</view>
  13. <view class="flexcj mb10">
  14. <view class="carbox" @click="getaddImagea('front')">
  15. <image :src="baseUrl+datainfo.idCardBack" class="img" v-if="datainfo.idCardBack"></image>
  16. <image :src="cardz" class="img" v-else></image>
  17. <view class="tit">拍摄人像面</view>
  18. </view>
  19. <view class="carbox" @click="getaddImagea('back')">
  20. <image :src="baseUrl+datainfo.idCardFront" class="img" v-if="datainfo.idCardFront"></image>
  21. <image :src="cardf" class="img" v-else></image>
  22. <view class="tit">拍摄国徽面</view>
  23. </view>
  24. </view>
  25. <view class="mb4">
  26. <view class="cardtip">身份信息会根据上传的证件照片自动识别,支持手动输入。</view>
  27. <view class="cardtip">如果识别错误,可尝试再次拍照。</view>
  28. </view>
  29. </view>
  30. <uni-forms-item label="身份证号" required name="residentIdCard">
  31. <view class="flexc">
  32. <uni-easyinput disabled v-model="datainfo.residentIdCard" :inputBorder='false' placeholder="自动识别" />
  33. </view>
  34. </uni-forms-item>
  35. <uni-forms-item label="姓名" required name="residentName">
  36. <view class="flexc">
  37. <uni-easyinput disabled v-model="datainfo.residentName" :inputBorder='false' placeholder="自动识别" />
  38. </view>
  39. </uni-forms-item>
  40. <uni-forms-item label="性别" required name="residentGender">
  41. <view class="flexc">
  42. <view class="flex1"></view>
  43. <uni-data-checkbox :map="map" :disabled="isdisabled" selectedColor="#0156FE" selectedTextColor="#272727" v-model="datainfo.residentGender" :localdata="xbList" />
  44. </view>
  45. </uni-forms-item>
  46. <uni-forms-item label="家庭地址" required name="idCardAddress">
  47. <view class="flexc">
  48. <uni-easyinput disabled v-model="datainfo.idCardAddress" :inputBorder='false' placeholder="自动识别" />
  49. </view>
  50. </uni-forms-item>
  51. <uni-forms-item label="手机号码" required name="residentPhone">
  52. <view class="flexc">
  53. <uni-easyinput :disabled="isdisabled" v-model="datainfo.residentPhone" :inputBorder='false' placeholder="请输入手机号码" />
  54. </view>
  55. </uni-forms-item>
  56. <uni-forms-item label="居住门户" required name="houseId">
  57. <w-select
  58. style="margin-left: 20rpx;"
  59. v-model="datainfo.houseId"
  60. :list='fwlist'
  61. valueName='dictLabel'
  62. keyName="dictValue"
  63. :chosevalue="datainfo.detailedAddress"
  64. :filterable='filterable'
  65. @change='getchange'
  66. >
  67. </w-select>
  68. </uni-forms-item>
  69. <picker range-key='dictLabel' :disabled="isdisabled" :value="sfhzidx" :range="sfList" @change='bindDateChange'>
  70. <uni-forms-item label="是否户主" required name="isHouseholder">
  71. <view class="flexc mh35">
  72. <view class="flex1 txr f13 co27" v-if="datainfo.isHouseholder&&!sfhz">{{statusFormats(datainfo.isHouseholder,sfList,'sfhz')}}</view>
  73. <view class="flex1 txr f13" v-else :class="sfhz?'co27':'coa'">{{sfhz||"请选择是/否"}}</view>
  74. </view>
  75. </uni-forms-item>
  76. </picker>
  77. <picker range-key='dictLabel' :disabled="isdisabled" :value="hzgxidx" :range="hzgxList" @change='bindDateChangea'>
  78. <uni-forms-item label="与户主关系" required name="residentRelationship">
  79. <view class="flexc mh35">
  80. <view class="flex1 txr f13 co27" v-if="datainfo.residentRelationship&&!hzgx">{{statusFormats(datainfo.residentRelationship,hzgxList,'hzgx')}}</view>
  81. <view class="flex1 txr f13" v-else :class="hzgx?'co27':'coa'">{{hzgx||"请选择与户主关系"}}</view>
  82. </view>
  83. </uni-forms-item>
  84. </picker>
  85. <picker range-key='dictLabel' :disabled="isdisabled" :value="sfzhidx" :range="sfList" @change='bindDateChangeb'>
  86. <uni-forms-item label="是否租户" required name="isTenant">
  87. <view class="flexc mh35">
  88. <view class="flex1 txr f13 co27" v-if="datainfo.isTenant&&!sfzh">{{statusFormats(datainfo.isTenant,sfList,'sfzh')}}</view>
  89. <view class="flex1 txr f13" v-else :class="sfzh?'co27':'coa'">{{sfzh||"请选择是/否"}}</view>
  90. </view>
  91. </uni-forms-item>
  92. </picker>
  93. <picker range-key='dictLabel' :disabled="isdisabled" :value="rymmidx" :range="rymmList" @change='bindDateChangec'>
  94. <uni-forms-item label="人员面貌" required name="residentAppearance">
  95. <view class="flexc mh35">
  96. <view class="flex1 txr f13 co27" v-if="datainfo.residentAppearance&&!rymm">{{statusFormats(datainfo.residentAppearance,rymmList,'rymm')}}</view>
  97. <view class="flex1 txr f13" v-else :class="rymm?'co27':'coa'">{{rymm||"请选择人员面貌"}}</view>
  98. </view>
  99. </uni-forms-item>
  100. </picker>
  101. <picker range-key='dictLabel' :disabled="isdisabled" :value="dslxidx" :range="dslxList" @change='bindDateChanged'>
  102. <uni-forms-item label="特殊类型" name="specialType">
  103. <view class="flexc mh35">
  104. <view class="flex1 txr f13 co27" v-if="datainfo.specialType&&!dslx">{{statusFormats(datainfo.residentAppearance,dslxList,'dslx')}}</view>
  105. <view class="flex1 txr f13" v-else :class="dslx?'co27':'coa'">{{dslx||"如有五保户等特殊类型,请选择"}}</view>
  106. </view>
  107. </uni-forms-item>
  108. </picker>
  109. <uni-forms-item label="工作单位" name="residentEmployer">
  110. <view class="flexc">
  111. <uni-easyinput :disabled="isdisabled" v-model="datainfo.residentEmployer" :inputBorder='false' placeholder="请输入工作单位" />
  112. </view>
  113. </uni-forms-item>
  114. <uni-forms-item label="兴趣爱好" name="residentHobby">
  115. <view class="flexc ml10">
  116. <uni-easyinput type="textarea" :disabled="isdisabled" autoHeight v-model="datainfo.residentHobby" :inputBorder='false' placeholder="请输入兴趣爱好" />
  117. </view>
  118. </uni-forms-item>
  119. <uni-forms-item label="上传头像" name="facePhoto">
  120. <view class="addimgs">
  121. <block v-if="phofile&&phofile.length">
  122. <view class="assimg" v-for="(ite,idx) in phofile" :key="idx" @click="getPreview(idx,phofile)">
  123. <image :src="baseUrl+ite" class="img"></image>
  124. <image :src="rdelimg" class="delimg" @click.stop="getDelFn(idx,'fm')"></image>
  125. </view>
  126. </block>
  127. <view class="addbox" @click="getaddImage">
  128. <image :src="aphoto"></image>
  129. <view>添加图片</view>
  130. </view>
  131. </view>
  132. </uni-forms-item>
  133. </view>
  134. <view class="rhbtn mt30 bga" @click="getEditFn" v-if="isdisabled">修改</view>
  135. <view class="rhbtn mt30 bga" @click="getSubmit" v-else>提交</view>
  136. </view>
  137. </uni-forms>
  138. <loading></loading>
  139. </view>
  140. </template>
  141. <script>
  142. import config from '@/config'
  143. import {checkPermi,checkRole} from "@/utils/permission"; // 权限判断函数
  144. import {uploadIdentify,uploadmore} from '@/utils/common.js'
  145. import {houseInfolistNoPage} from "@/api/work/work.js"
  146. import {residentInfoAdd,residentInfoPut,residentInfoDet} from "@/api/work/people.js"
  147. import {getDictionaryFn} from "@/api/system/user.js"
  148. import {selectValueKey} from "@/utils/common.js"
  149. import {getOcrIdCard} from "@/api/system/card.js"
  150. import wSelect from "@/work/components/w-select/w-select.vue"
  151. export default {
  152. components: {wSelect},
  153. data() {
  154. return {
  155. cardz:require('@/health/static/health/cardz.png'),
  156. cardf:require('@/health/static/health/cardf.png'),
  157. aphoto: require('@/work/static/service/photo.png'),
  158. rdelimg: require('@/work/static/service/rdel.png'),
  159. baseUrl: config.baseUrl,
  160. checkflag:true,
  161. nvaHeight:44,
  162. backgroundColor: "transparent",
  163. datainfo: {
  164. // "residentId":"",//居住人员主键
  165. "houseId":"",//关联房屋信息表的house_id
  166. // "userId":"",//关联sys_user表中user_id
  167. "detailedAddress":"",//居住人员的详细门牌号
  168. "residentName":"",//居住人员姓名
  169. "residentIdCard":"",//居住人员身份证号码,18位
  170. "residentBirthday":"",//居住人员出生日期
  171. // "yearsOld":"",//年龄
  172. "residentPhone":"",//居住人员手机号
  173. "residentGender":'',//居住人员性别:1-男,2-女
  174. "residentRelationship":"",//居住人员与户主的关系,如父子、夫妻等
  175. "isHouseholder":"",//是否是户主 N不是 Y是
  176. "isTenant":"",//是否是租户:Y-是,N-否
  177. "residentEmployer":"",//居住人员工作单位
  178. "residentAppearance":"",//居住人员面貌,如党员、群众等
  179. "residentHobby":"",//爱好
  180. "facePhoto":"",//人脸地址
  181. "idCardAddress":"",//身份证住址
  182. "specialType":"",//特殊类型
  183. "idCardFront":"",//身份证正面
  184. "idCardBack":"",//身份证反面
  185. },
  186. rules:{
  187. residentIdCard: {rules: [{required: true,errorMessage: '请输入身份证号码' }]},
  188. residentName: {rules: [{required: true,errorMessage: '请输入姓名' }]},
  189. residentGender: {rules: [{required: true,errorMessage: '请选择性别' }]},
  190. houseId: {rules: [{required: true,errorMessage: '请选择居住门户' }]},
  191. detailedAddress: {rules: [{required: true,errorMessage: '请输入居住地址' }]},
  192. isHouseholder: {rules: [{required: true,errorMessage: '请选择是否户主' }]},
  193. // residentRelationship: {rules: [{required: true,errorMessage: '请选择与户主关系' }]},
  194. // isTenant: {rules: [{required: true,errorMessage: '请选择是否租户' }]},
  195. // residentAppearance: {rules: [{required: true,errorMessage: '请选择人员面貌' }]},
  196. residentPhone: {rules: [{required: true,errorMessage: '请输入手机号'}, {pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,errorMessage:'请输入正确的手机号码'}]},
  197. },
  198. sfhz:"",
  199. hzgx:"",
  200. sfzh:"",
  201. rymm:"",
  202. dslx:"",
  203. sfhzidx:0,
  204. hzgxidx:0,
  205. sfzhidx:0,
  206. rymmidx:0,
  207. sfhzidx:0,
  208. dslxidx:0,
  209. list:[],
  210. sfList:[],
  211. hzgxList:[],
  212. rymmList:[],
  213. dslxList:[],
  214. xbList:[],
  215. phofile:[],
  216. fwlist:[],
  217. isdisabled:false,
  218. ptype:'add',
  219. filterable:true,
  220. chooseValue:'',
  221. map:{text:'dictLabel',value:'dictValue'},
  222. userId:this.$store.state.user.userId,
  223. }
  224. },
  225. onLoad: function(e) {
  226. if(e.id){
  227. this.id=e.id;
  228. this.ptype="edit";
  229. this.isdisabled=true;
  230. this.getDetail()
  231. }
  232. this.init()
  233. uni.getSystemInfo({
  234. success: (e) => {
  235. this.nvaHeight = Number(e.statusBarHeight)+44;
  236. }
  237. })
  238. },
  239. onPageScroll(e) {
  240. var scrollTop = Number(e.scrollTop);
  241. if (scrollTop > 0) {
  242. this.backgroundColor = '#48CC9A'
  243. } else {
  244. this.backgroundColor = 'transparent'
  245. }
  246. },
  247. methods: {
  248. checkPermi,
  249. checkRole,
  250. getEditFn(){
  251. this.isdisabled=false;
  252. },
  253. statusFormats(data, list,type) {
  254. var aite=selectValueKey(list, data);
  255. if(type=='sfhz'){
  256. this.sfhzidx=aite.key
  257. }else if(type=='hzgx'){
  258. this.hzgxidx=aite.key;
  259. }else if(type=='sfzh'){
  260. this.sfzhidx=aite.key;
  261. }else if(type=='rymm'){
  262. this.rymmidx=aite.key;
  263. }
  264. return aite.actions;
  265. },
  266. getchange(e){
  267. this.datainfo.houseId=e.dictValue;
  268. this.datainfo.detailedAddress=e.dictLabel;
  269. },
  270. init(){
  271. var params={
  272. userId:this.userId,
  273. pageSize: 100,
  274. pageNum: 1,
  275. }
  276. houseInfolistNoPage(params).then(res=>{
  277. if(res.code==200){
  278. this.fwlist= res.rows.map(v => {
  279. return {
  280. dictLabel: v.detailedAddress,
  281. dictValue: v.houseId,
  282. location: v.location
  283. }
  284. })
  285. if(res.rows&&res.rows.length<2){
  286. var newObj=res.rows[0];
  287. this.datainfo.houseId=newObj.houseId;
  288. this.datainfo.detailedAddress=newObj.detailedAddress
  289. }
  290. }
  291. })
  292. // 是否
  293. getDictionaryFn('sys_yes_no').then(res=>{
  294. if(res.code==200){
  295. this.sfList = res.data.map(v => {
  296. return {
  297. dictLabel: v.dictLabel,
  298. dictValue: v.dictValue
  299. }
  300. })
  301. }
  302. })
  303. //户主关系
  304. getDictionaryFn('relationship_householder').then(res=>{
  305. if(res.code==200){
  306. this.hzgxList = res.data.map(v => {
  307. return {
  308. dictLabel: v.dictLabel,
  309. dictValue: v.dictValue
  310. }
  311. })
  312. }
  313. })
  314. //人员面貌
  315. getDictionaryFn('affiliation_personnel').then(res=>{
  316. if(res.code==200){
  317. this.rymmList = res.data.map(v => {
  318. return {
  319. dictLabel: v.dictLabel,
  320. dictValue: v.dictValue
  321. }
  322. })
  323. }
  324. })
  325. // 特殊类型
  326. getDictionaryFn('special_type').then(res=>{
  327. if(res.code==200){
  328. this.dslxList = res.data.map(v => {
  329. return {
  330. dictLabel: v.dictLabel,
  331. dictValue: v.dictValue
  332. }
  333. })
  334. }
  335. })
  336. //性别
  337. getDictionaryFn('gender').then(res=>{
  338. if(res.code==200){
  339. this.xbList = res.data.map(v => {
  340. return {
  341. dictLabel: v.dictLabel,
  342. dictValue: Number(v.dictValue)
  343. }
  344. })
  345. }
  346. })
  347. },
  348. getBackFn(){
  349. uni.navigateBack({
  350. delta:1
  351. })
  352. },
  353. bindDateChange(e){
  354. var val=e.detail.value;
  355. this.datainfo.isHouseholder=this.sfList[val].dictValue;
  356. this.sfhz=this.sfList[val].dictLabel;
  357. },
  358. bindDateChangea(e){
  359. var val=e.detail.value;
  360. this.datainfo.residentRelationship=this.hzgxList[val].dictValue;
  361. this.hzgx=this.hzgxList[val].dictLabel;
  362. },
  363. bindDateChangeb(e){
  364. var val=e.detail.value;
  365. this.datainfo.isTenant=this.sfList[val].dictValue;
  366. this.sfzh=this.sfList[val].dictLabel;
  367. },
  368. bindDateChangec(e){
  369. var val=e.detail.value;
  370. this.datainfo.residentAppearance=this.rymmList[val].dictValue;
  371. this.rymm=this.rymmList[val].dictLabel;
  372. },
  373. bindDateChanged(e){
  374. var val=e.detail.value;
  375. this.datainfo.specialType=this.dslxList[val].dictValue;
  376. this.dslx=this.dslxList[val].dictLabel;
  377. },
  378. getDetail(){
  379. residentInfoDet(this.id).then(res=>{
  380. if(res.code==200){
  381. this.datainfo=res.data
  382. }
  383. })
  384. },
  385. getSubmit(){
  386. var that=this;
  387. this.$refs.form.validate().then(res => {
  388. var params=JSON.parse(JSON.stringify(this.datainfo))
  389. // var phofile=JSON.parse(JSON.stringify(this.phofile))
  390. // if(phofile&&phofile.length){
  391. // params.equipmentPhotos=this.phofile.join(',');
  392. // }
  393. // if(!params.assetId){
  394. // this.$toast('请选择资产类型')
  395. // return
  396. // }
  397. // if(!params.equipmentName){
  398. // this.$toast('请输入资产名称')
  399. // return
  400. // }
  401. if(!params.detailedAddress){
  402. this.$toast('请选择居住门户')
  403. return
  404. }
  405. let _IDRe18 =
  406. /^([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]$/
  407. 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}$/
  408. // 校验身份证:
  409. if (params.residentIdCard&&!_IDRe18.test(params.residentIdCard) && !_IDre15.test(params.residentIdCard)) {
  410. this.$toast("请输入正确身份证号")
  411. return
  412. }
  413. if(this.ptype=='add'){
  414. residentInfoAdd(params).then(res=>{
  415. if(res.code==200){
  416. this.$toast("新增成功")
  417. setTimeout(function(){
  418. uni.$emit("residentInfoList")
  419. uni.navigateBack({
  420. delta:1
  421. })
  422. },1500)
  423. }
  424. })
  425. }else{
  426. residentInfoPut(params).then(res=>{
  427. if(res.code==200){
  428. this.$toast("修改成功")
  429. setTimeout(function(){
  430. uni.$emit("residentInfoList")
  431. uni.navigateBack({
  432. delta:1
  433. })
  434. },1500)
  435. }
  436. })
  437. }
  438. })
  439. },
  440. getPreview(idx,arr) {
  441. var newArr=[];
  442. arr.forEach(ite=>{
  443. var ds=this.baseUrl+ite
  444. newArr.push(ds)
  445. })
  446. uni.previewImage({
  447. urls: newArr,
  448. current:idx,
  449. success: function(data) {},
  450. fail: function(err) {}
  451. });
  452. },
  453. getDelFn(idx,type){
  454. var that=this;
  455. uni.showModal({
  456. title: '确认删除',
  457. content: "是否确认删除",
  458. cancelText: '取消',
  459. confirmText: '确认',
  460. success: function(res) {
  461. if (res.confirm) {
  462. that.phofile.splice(idx,1)
  463. } else if (res.cancel) {
  464. }
  465. }
  466. });
  467. },
  468. getaddImage(type){
  469. if(this.isdisabled){
  470. return
  471. }
  472. let that = this;
  473. let file =[],count=9
  474. uni.chooseImage({
  475. success:function(res){
  476. let img= res.tempFilePaths;
  477. if(img.length + file.length > count){
  478. uni.showToast({
  479. title: '最多上传'+count+'张图片',
  480. icon: 'none',
  481. duration: 2000
  482. })
  483. }else{
  484. let imglen = res.tempFilePaths.length;
  485. var fuwufile = [];
  486. uploadmore('/common/upload',img,0,0,0,imglen,fuwufile,function(rs){
  487. that.phofile = that.phofile.concat(rs);
  488. })
  489. }
  490. }
  491. });
  492. },
  493. getaddImagea(e) {
  494. let that = this;
  495. let file = []
  496. uni.chooseImage({
  497. count: 1,
  498. success: function(res) {
  499. let img = res.tempFilePaths;
  500. let imglen = res.tempFilePaths.length;
  501. var fuwufile = [];
  502. uploadIdentify('/common/upload', img, 0, 0, 0, imglen, fuwufile, function(rs) {
  503. var resurl = rs[0];
  504. if (e == 'front') {
  505. that.datainfo.idCardBack = resurl.fileName;
  506. if (rs && rs.length > 0) {
  507. var obj = {
  508. type: e,
  509. url: resurl.urlOnline
  510. }
  511. that.getOcrIdCard(obj)
  512. }
  513. } else {
  514. that.datainfo.idCardFront = resurl.fileName;
  515. }
  516. })
  517. }
  518. });
  519. },
  520. getOcrIdCard(obj) {
  521. var params = {
  522. image: obj.url,
  523. idCardSide: obj.type
  524. }
  525. getOcrIdCard(params).then(res => {
  526. if (res.code == 200) {
  527. var datainfo = res.data;
  528. if (obj.type == 'front') {
  529. this.datainfo.residentName = datainfo.realName;
  530. this.datainfo.residentIdCard = datainfo.idCard;
  531. this.datainfo.idCardAddress = datainfo.address;
  532. // } else {
  533. // this.datainfo.expirationDate = datainfo.expirationDate
  534. }
  535. }
  536. })
  537. }
  538. }
  539. }
  540. </script>
  541. <style>
  542. page{background: #F3F3F0;}
  543. </style>
  544. <style lang="scss" scoped>
  545. .bga{background-color: #46CB99;}
  546. .check /deep/ .select-wrap{border: none;width: 100%;}
  547. .mh35{min-height: 70rpx;display: flex;align-items: center;}
  548. .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;}
  549. // .check .cbox /deep/ .uni-forms-item:last-child{border: none;}
  550. .check /deep/ .uni-forms-item__label{font-weight: bold;font-size: 26rpx;color: #222327;flex: 0 0 auto;width: auto !important;}
  551. .check /deep/ .uni-easyinput{flex: 1;text-align: right;font-size: 26rpx;color: #222327;}
  552. .check /deep/ .uni-easyinput__content-textarea{min-height: 40rpx;font-size: 26rpx;}
  553. .check /deep/ .uni-easyinput__placeholder-class{font-size: 26rpx;color: #AAAAAA;}
  554. .check /deep/ .uni-input-input{font-size: 26rpx;}
  555. .check /deep/ .uni-textarea-textarea{font-size: 26rpx;}
  556. .check /deep/ .is-disabled{color: #222327;background-color: #ffffff !important;}
  557. .check /deep/ .uni-data-checklist .checklist-group .checklist-box{margin:10rpx 8rpx 10rpx 16rpx;}
  558. .check /deep/ .uni-data-checklist{flex: 0 0 auto;}
  559. .check /deep/ .is-required{font-size: 26rpx;color: #F40027;margin-right: 4rpx;}
  560. .check{background: linear-gradient(180deg, #45CB99 0%, rgba(238,227,197,0) 100%) no-repeat;background-size: 100% 782rpx;min-height: 100vh;box-sizing: border-box;padding: 0 18rpx 22rpx;}
  561. .cbox{background: #FFFFFF;border-radius: 20rpx;flex: 1;padding: 30rpx 24rpx 46rpx;
  562. .chmain{
  563. padding: 0 8rpx;
  564. .upbox{height: 224rpx;background: #EFF4FF;border-radius: 20rpx;display: flex;align-items: center;justify-content: center;flex-direction: column;margin-bottom: 8rpx;overflow: auto;
  565. .img{width: 100%;height: 100%;}
  566. .addimg{width: 70rpx;height: 70rpx;margin-bottom: 16rpx;}
  567. view{font-weight: bold;font-size: 26rpx;color: #4C6686;}
  568. }
  569. .rimg{width: 16rpx;height: 28rpx;flex: 0 0 auto;margin-left: 20rpx;
  570. image{width: 100%;height: 100%;}
  571. }
  572. .checkimg{width: 80rpx;height: 40rpx;margin-right: 8rpx;}
  573. .aphoto{padding: 0 24rpx;border-left: 2rpx solid #e6e6e6;margin-left: 26rpx;
  574. image{width: 40rpx;height: 38rpx;}
  575. }
  576. }
  577. }
  578. .navbox{position: fixed;left: 0;right: 0;top: 0;z-index: 4; }
  579. .rztit{font-weight: bold;font-size: 30rpx;color: #222327;margin-bottom: 30rpx;}
  580. .carbox{width: 300rpx;border-radius: 14rpx;overflow: hidden;
  581. .img{width: 300rpx;height: 208rpx;}
  582. .tit{width: 100%;height: 56rpx;background: #7CC2A8;text-align: center;font-weight: 500;
  583. font-size: 26rpx;line-height: 56rpx;
  584. color: #FFFFFF;}
  585. }
  586. .cardtip{font-weight: 500;font-size: 24rpx;color: #999999;line-height: 40rpx;}
  587. .addimgs{display: flex;align-items: center;flex-wrap: wrap;justify-content: flex-end;
  588. .assimg{width: 128rpx;height: 128rpx;position: relative;overflow: hidden;margin: 0 0 20rpx 24rpx;
  589. .img{width: 100%;height: 100%;}
  590. .delimg{width: 24rpx;height: 24rpx;position: absolute;right: 0;top: 0;}
  591. }
  592. }
  593. .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;
  594. image{width: 48rpx;height: 42rpx;margin-bottom: 12rpx;}
  595. view{font-weight: 500;font-size: 24rpx;color: #666666;}
  596. }
  597. .tips{font-weight: bold;color: #272727;font-size: 26rpx;margin-left: 8rpx;}
  598. </style>