input.vue 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480
  1. <template>
  2. <view style="padding: 30rpx;">
  3. <nav-bar title="填写审核资料"></nav-bar>
  4. <view v-show="!agreementModal">
  5. <view class="topBox">
  6. <view>
  7. <u-icon name="error-circle-fill" color="#FF3B30" size="28"></u-icon>
  8. <text style="color: #FF3B30;margin-left: 10rpx;">学习前请提交完整审核资料</text>
  9. </view>
  10. <view style="color: #007AFF;" @click="backPage">稍后再填</view>
  11. </view>
  12. <u-collapse v-show="remarkStatus" :item-style="itemStyle" event-type="close" ref="collapse">
  13. <u-collapse-item title="审核结果反馈">
  14. <view style="padding-bottom: 30rpx;">
  15. <text class="collapse-item">{{ remark || '' }}</text>
  16. </view>
  17. </u-collapse-item>
  18. </u-collapse>
  19. <view class="bodyBox" style="margin-top: 30rpx;padding:0 20rpx;">
  20. <u-form :model="form" ref="uForm" :error-type="errorType">
  21. <template v-for="(item,index) in listData" >
  22. <u-form-item
  23. :key="index"
  24. v-if="item.fieldKey == 'name'"
  25. :label="item.fieldName"
  26. :required="item.required"
  27. :label-width="auto"
  28. :prop="item.required ? item.fieldKey : ''"
  29. >
  30. <u-input v-model="form.name" :placeholder="`请输入${item.fieldName}`" />
  31. </u-form-item>
  32. <u-form-item
  33. :key="index"
  34. v-if="item.fieldKey == 'idcard'"
  35. :label="item.fieldName"
  36. :required="item.required"
  37. :label-width="auto"
  38. :prop="item.required ? item.fieldKey : ''"
  39. >
  40. <u-input v-model="form.idcard" :placeholder="`请输入${item.fieldName}`" />
  41. </u-form-item>
  42. <u-form-item
  43. :key="index"
  44. v-if="item.fieldKey == 'telphone'"
  45. :label="item.fieldName"
  46. :required="item.required"
  47. :label-width="auto"
  48. :prop="item.required ? item.fieldKey : ''"
  49. >
  50. <u-input v-model="form.telphone" :placeholder="`请输入${item.fieldName}`" />
  51. </u-form-item>
  52. <u-form-item
  53. :key="index"
  54. v-if="item.fieldKey == 'school'"
  55. :label="item.fieldName"
  56. :required="item.required"
  57. :label-width="auto"
  58. :prop="item.required ? item.fieldKey : ''"
  59. >
  60. <u-input v-model="form.school" :placeholder="`请输入${item.fieldName}`" />
  61. </u-form-item>
  62. <u-form-item
  63. :key="index"
  64. v-if="item.fieldKey == 'work_unit'"
  65. :label="item.fieldName"
  66. :required="item.required"
  67. :label-width="auto"
  68. :prop="item.required ? item.fieldKey : ''"
  69. >
  70. <u-input v-model="form.work_unit" :placeholder="`请输入${item.fieldName}`" />
  71. </u-form-item>
  72. <u-form-item
  73. :key="index"
  74. v-if="item.fieldKey == 'unit_contact'"
  75. :label="item.fieldName"
  76. :required="item.required"
  77. :label-width="auto"
  78. :prop="item.required ? item.fieldKey : ''"
  79. >
  80. <u-input v-model="form.unit_contact" :placeholder="`请输入${item.fieldName}`" />
  81. </u-form-item>
  82. <u-form-item
  83. :key="index"
  84. v-if="item.fieldKey == 'unit_tel'"
  85. :label="item.fieldName"
  86. :required="item.required"
  87. :label-width="auto"
  88. :prop="item.required ? item.fieldKey : ''"
  89. >
  90. <u-input v-model="form.unit_tel" :placeholder="`请输入${item.fieldName}`" />
  91. </u-form-item>
  92. <u-form-item
  93. :key="index"
  94. v-if="item.fieldKey == 'apply_post'"
  95. :label="item.fieldName"
  96. :required="item.required"
  97. :label-width="auto"
  98. :prop="item.required ? item.fieldKey : ''"
  99. >
  100. <u-input v-model="form.apply_post" :disabled="apply_post_disabled" :placeholder="`请输入${item.fieldName}`" />
  101. </u-form-item>
  102. <u-form-item
  103. :key="index"
  104. v-if="item.fieldKey == 'major'"
  105. :label="item.fieldName"
  106. :required="item.required"
  107. :label-width="auto"
  108. :prop="item.required ? item.fieldKey : ''"
  109. >
  110. <u-input v-model="form.major" :placeholder="`请输入${item.fieldName}`" />
  111. </u-form-item>
  112. <u-form-item
  113. :key="index"
  114. v-if="item.inputType == 2"
  115. :label="item.fieldName"
  116. :label-width="auto"
  117. :required="item.required"
  118. :prop="item.required ? item.fieldKey : ''"
  119. >
  120. <picker @change="bindPickerChange(item.fieldKey, $event)" :value="form[item.fieldKey]" :range="getarrays(item.fieldKey)">
  121. <view class="picker">
  122. {{ returnName(item.fieldKey) }}
  123. <image
  124. src="@/static/icon/clears.png"
  125. v-if="clearWatch(item.fieldKey)"
  126. @click.stop="clearFun(item.fieldKey)"
  127. mode=""
  128. style="width:30rpx;height:30rpx;vertical-align: middle;margin-left:10rpx;"
  129. ></image>
  130. </view>
  131. </picker>
  132. </u-form-item>
  133. <u-form-item
  134. :key="index"
  135. v-if="item.inputType == 5"
  136. :label="item.fieldName"
  137. :label-width="auto"
  138. :required="item.required"
  139. :prop="item.required ? item.fieldKey : ''"
  140. >
  141. <picker mode="date" :value="form[item.fieldKey]" @change="bindDateChange(item.fieldKey, $event)">
  142. <view class="picker">
  143. {{ getTimes(item.fieldKey) }}
  144. <image
  145. src="@/static/icon/clears.png"
  146. v-if="clearWatch(item.fieldKey)"
  147. @click.stop="clearFun(item.fieldKey)"
  148. mode=""
  149. style="width:30rpx;height:30rpx;vertical-align: middle;margin-left:10rpx;"
  150. ></image>
  151. </view>
  152. </picker>
  153. </u-form-item>
  154. <u-form-item
  155. :key="index"
  156. v-if="item.inputType == 3 && item.fieldKey !== 'commitment_electr_signature'"
  157. :label="item.fieldName"
  158. :required="item.required"
  159. :label-width="auto"
  160. label-position="top"
  161. :prop="item.required ? item.fieldKey : ''"
  162. >
  163. <text v-if="item.fieldKey === 'recent_photos'" style="color: #999999;position: absolute;top: 20rpx;left: 130rpx;">竖向证件照 文件大小≤2M</text>
  164. <text
  165. v-if="item.fieldKey === 'idcard_face_photo' || item.fieldKey === 'idcard_national_photo'"
  166. style="color: #999999;position: absolute;top: 20rpx;left: 180rpx;"
  167. >
  168. 文件大小≤2M
  169. </text>
  170. <u-upload
  171. :show-progress="false"
  172. :max-size="2097152"
  173. :ref="
  174. item.fieldKey === 'recent_photos'
  175. ? 'recent_photos'
  176. : item.fieldKey === 'idcard_face_photo'
  177. ? 'idcard_face_photo'
  178. : item.fieldKey === 'idcard_national_photo'
  179. ? 'idcard_national_photo'
  180. : ''
  181. "
  182. @on-list-change="
  183. item.fieldKey === 'recent_photos'
  184. ? changePhotoListHeader1($event)
  185. : item.fieldKey === 'idcard_face_photo'
  186. ? changePhotoListHeader2($event)
  187. : item.fieldKey === 'idcard_national_photo'
  188. ? changePhotoListHeader3($event)
  189. : ''
  190. "
  191. :auto-upload="false"
  192. custom-btn="true"
  193. :action="action"
  194. :file-list="
  195. item.fieldKey === 'recent_photos'
  196. ? fileList1
  197. : item.fieldKey === 'idcard_face_photo'
  198. ? fileList2
  199. : item.fieldKey === 'idcard_national_photo'
  200. ? fileList3
  201. : ''
  202. "
  203. width="120"
  204. height="120"
  205. size-type="['compressed']"
  206. max-count="1"
  207. >
  208. <template v-slot:addBtn>
  209. <image
  210. :src="
  211. item.fieldKey === 'recent_photos'
  212. ? '/static/info_1.png'
  213. : item.fieldKey === 'idcard_face_photo'
  214. ? '/static/info_2.png'
  215. : item.fieldKey === 'idcard_national_photo'
  216. ? '/static/info_3.png'
  217. : ''
  218. "
  219. :style="
  220. item.fieldKey === 'recent_photos'
  221. ? 'width: 120rpx; height: 169rpx;'
  222. : item.fieldKey === 'idcard_face_photo'
  223. ? 'width: 120rpx; height: 82rpx;'
  224. : item.fieldKey === 'idcard_national_photo'
  225. ? 'width: 120rpx; height: 82rpx;'
  226. : ''
  227. "
  228. ></image>
  229. </template>
  230. </u-upload>
  231. </u-form-item>
  232. <view :key="index" v-if="item.inputType == 3 && item.fieldKey === 'commitment_electr_signature'">
  233. <u-form-item
  234. v-if="item.inputType == 3 && item.fieldKey === 'commitment_electr_signature'"
  235. label="承诺书"
  236. :required="item.required"
  237. :label-width="auto"
  238. label-position="top"
  239. >
  240. <view style="line-height: 40rpx;text-indent:2em">
  241. <text>
  242. 本人自愿做出如下承诺:本人己仔细阅读《广东省住房和城乡建设厅关于推进住房和城乡建设领域施工现场专业人员职业培训工作的通知》
  243. 全部内容并知晓和理解,本人的学历证书、身份证、工作年限、相片等所有资料完全真实、符合报名条件、资格审查要求和相关规定,本人在报名、审查、培训、测试等有关的事项中会严格道守相关规定和要求,如有虛假或与实际规定不符等情况造成的一切后果由本人承担。
  244. </text>
  245. <view style="line-height: 40rpx;text-indent:2em"><text>特此承诺!</text></view>
  246. </view>
  247. </u-form-item>
  248. <u-form-item
  249. v-if="item.inputType == 3 && item.fieldKey === 'commitment_electr_signature'"
  250. label="签名板"
  251. :required="item.required"
  252. :label-width="auto"
  253. label-position="top"
  254. :prop="item.required ? item.fieldKey : ''"
  255. >
  256. <view class="dis_stys">
  257. <text style="color: #999999;">请在下方签名区进行签名</text>
  258. <text @click="retDraw" mode="">清空</text>
  259. </view>
  260. <view class="handCenter">
  261. <canvas
  262. v-if="!form[item.fieldKey]"
  263. class="handWriting"
  264. disable-scroll="true"
  265. :catchtouchmove="true"
  266. @touchstart="uploadScaleStart"
  267. @touchmove="uploadScaleMove"
  268. @touchend="uploadScaleEnd"
  269. canvas-id="handWriting"
  270. ></canvas>
  271. <view v-else style="width:100%;height: 100%;position: relative;">
  272. <view class="ctoples">图片</view>
  273. <image style="width:100%;height:100%;" :src="$method.splitImgHost(form[item.fieldKey])" mode=""></image>
  274. </view>
  275. </view>
  276. </u-form-item>
  277. </view>
  278. </template>
  279. </u-form>
  280. </view>
  281. <view @click="submits" class="submit_btn">提交资料</view>
  282. </view>
  283. <u-popup class="modal" catchtouchmove='return' v-model="agreementModal" mode="center" border-radius="24" :mask-close-able="false">
  284. <view class="agreement">
  285. <view class="body">
  286. <scroll-view scroll-y="true" style="height:600rpx;">
  287. <view class="content">
  288. <view>本产品(或服务)提供【{{goodsData.goodsName}}】课程的在线学习功能,为使用这些功能,我们需要使用您设备上的摄像头,并收集以下个人信息:
  289. <text v-for="(item,listIndex) in listData" :key="listIndex">{{item.fieldName}}、</text>
  290. <!-- 姓名、性别、身份证号码、移动电话号码、身份证照片、一寸照、证书名称/岗位、证书编号、有效期、人脸照片(每节课随机拍摄三张)、 -->
  291. 学习详细记录。</view>
  292. <view>我们会将上述信息提供至广东省建设执业注册管理中心等第三方组织使用,用于继续教育备案等。如果您拒绝,将导致这些功能无法实现,但不影响您使用本产品(或服务)的其他业务功能。</view>
  293. </view>
  294. </scroll-view>
  295. </view>
  296. <view class="footer">
  297. <view class="btn cancel" @click="refuseAgreement">取消</view>
  298. <view class="btn ok" @click="agree">同意并继续</view>
  299. </view>
  300. </view>
  301. </u-popup>
  302. </view>
  303. </template>
  304. <script>
  305. import * as baseUrls from '@/common/request.js';
  306. import { mapGetters } from 'vuex';
  307. import Handwriting from '@/common/signature.js';
  308. export default {
  309. data() {
  310. return {
  311. gradeId:0,
  312. errorType: ['message'],
  313. agreementModal:true,
  314. goodsData:{},
  315. itemStyle: {
  316. marginTop: '20px',
  317. backgroundColor: '#fff',
  318. borderRadius: '24rpx',
  319. padding: '0rpx 20rpx'
  320. },
  321. isUploading:false,
  322. form: {
  323. name: '',
  324. sex: '',
  325. idcard: '',
  326. telphone: '',
  327. education: '',
  328. school: '',
  329. graduation_time: '',
  330. work_unit: '',
  331. unit_contact: '',
  332. unit_tel: '',
  333. apply_post: '',
  334. major: '',
  335. working_years: '',
  336. recent_photos: '',
  337. idcard_face_photo: '',
  338. idcard_national_photo: '',
  339. commitment_electr_signature: ''
  340. },
  341. lineColor: 'black',
  342. slideValue: 50,
  343. handwriting: '',
  344. goodsId: null,
  345. listData: [], //页面数据
  346. fileList1: [], //个人近照
  347. fileList2: [], //人像
  348. fileList3: [], //国徽
  349. openVerify: false, // 控制是否手动验证
  350. id: null, //获取修改ID内容
  351. remark: '', //反馈文本
  352. remarkStatus: false, //是否存在审核结果反馈
  353. // nextStatus: false, //是否有下一步
  354. copyData: [], //备份数据
  355. rules: {
  356. name: [
  357. {
  358. required: true,
  359. message: '请输入姓名',
  360. trigger: ['change', 'blur']
  361. }
  362. ],
  363. sex: [
  364. {
  365. required: true,
  366. message: '请选择性别',
  367. trigger: 'change'
  368. }
  369. ],
  370. idcard: [
  371. {
  372. required: true,
  373. message: '请输入身份证号',
  374. trigger: ['change', 'blur']
  375. },
  376. {
  377. validator: (rule, value, callback) => {
  378. return this.$u.test.idCard(value);
  379. },
  380. message: '身份证号不正确',
  381. trigger: ['change', 'blur']
  382. }
  383. ],
  384. telphone: [
  385. {
  386. required: true,
  387. message: '请输入手机号码',
  388. trigger: ['change', 'blur']
  389. },
  390. {
  391. validator: (rule, value, callback) => {
  392. var vartest = /^([0-9]{3,4}-)?[0-9]{7,8}$/;
  393. if (this.$u.test.mobile(value) || vartest.test(value)) {
  394. return true;
  395. } else {
  396. return false;
  397. }
  398. },
  399. message: '手机号码不正确',
  400. trigger: ['change', 'blur']
  401. }
  402. ],
  403. education: [
  404. {
  405. required: true,
  406. message: '请选择学历',
  407. trigger: 'change'
  408. }
  409. ],
  410. school: [
  411. {
  412. required: true,
  413. message: '请输入毕业院校',
  414. trigger: ['change', 'blur']
  415. }
  416. ],
  417. graduation_time: [
  418. {
  419. required: true,
  420. message: '请选择毕业时间',
  421. trigger: 'change'
  422. }
  423. ],
  424. work_unit: [
  425. {
  426. required: true,
  427. message: '请输入工作单位',
  428. trigger: ['change', 'blur']
  429. }
  430. ],
  431. unit_contact: [
  432. {
  433. required: true,
  434. message: '请输入单位联系人',
  435. trigger: ['change', 'blur']
  436. }
  437. ],
  438. unit_tel: [
  439. {
  440. required: true,
  441. message: '请输入单位联系电话',
  442. trigger: ['change', 'blur']
  443. },
  444. {
  445. validator: (rule, value, callback) => {
  446. var vartest = /^([0-9]{3,4}-)?[0-9]{7,8}$/;
  447. var vartest1 = /^([0-9]{3,4})?[0-9]{7,8}$/;
  448. if (this.$u.test.mobile(value) || vartest.test(value) || vartest1.test(value)) {
  449. return true;
  450. } else {
  451. return false;
  452. }
  453. },
  454. message: '单位联系电话不正确',
  455. trigger: ['change', 'blur']
  456. }
  457. ],
  458. apply_post: [
  459. {
  460. required: true,
  461. message: '请输入报名岗位',
  462. trigger: ['change', 'blur']
  463. }
  464. ],
  465. major: [
  466. {
  467. required: true,
  468. message: '请输入所学专业',
  469. trigger: ['change', 'blur']
  470. }
  471. ],
  472. working_years: [
  473. {
  474. required: true,
  475. message: '请选择工作年限',
  476. trigger: 'change'
  477. }
  478. ],
  479. recent_photos: [
  480. {
  481. required: true,
  482. message: '请上传个人近照',
  483. trigger: ['change', 'blur']
  484. }
  485. ],
  486. idcard_face_photo: [
  487. {
  488. required: true,
  489. message: '请上传身份证人像面',
  490. trigger: ['change', 'blur']
  491. }
  492. ],
  493. idcard_national_photo: [
  494. {
  495. required: true,
  496. message: '请上传身份证国徽面',
  497. trigger: ['change', 'blur']
  498. }
  499. ],
  500. commitment_electr_signature: [
  501. {
  502. required: true,
  503. message: '请签写承诺书电子签',
  504. trigger: ['change', 'blur']
  505. }
  506. ]
  507. },
  508. apply_post_disabled:false,
  509. isRequired: false,
  510. orderGoodsId:0,
  511. veryIdCard:'',
  512. veryIdName:'',
  513. };
  514. },
  515. created() {
  516. this.$store.getters.dictObj;
  517. },
  518. async onLoad(option) {
  519. this.orderGoodsId = Number(option.orderGoodsId)
  520. this.goodsId = Number(option.id);
  521. this.gradeId = Number(option.gradeId)
  522. await this.getGoodsDetail()
  523. this.getInfo();
  524. },
  525. onReady(res) {
  526. this.handwriting = new Handwriting({
  527. lineColor: this.lineColor,
  528. slideValue: this.slideValue, // 0, 25, 50, 75, 100
  529. canvasName: 'handWriting'
  530. });
  531. this.$refs.uForm.setRules(this.rules);
  532. },
  533. computed: { ...mapGetters(['dictObj','userInfo']) },
  534. watch:{
  535. userInfo(val, oldVal){//普通的watch监听
  536. if(val){
  537. this.listData.forEach(item => {
  538. if(item.fieldKey == "idcard") {
  539. this.form.idcard = this.userInfo.idCard;
  540. }
  541. if(item.fieldKey == "telphone") {
  542. this.form.telphone = this.userInfo.telphone;
  543. }
  544. if(item.fieldKey == "name") {
  545. this.form.name = this.userInfo.realname
  546. }
  547. })
  548. }
  549. },
  550. },
  551. methods: {
  552. getGoodsDetail() {
  553. return new Promise(resolve => {
  554. this.$api.orderInfo({
  555. orderGoodsId:this.orderGoodsId
  556. }).then(res => {
  557. this.goodsData = res.data.data;
  558. if(this.goodsData.categoryName) {
  559. this.form.apply_post = this.goodsData.categoryName;
  560. if(this.goodsData.categoryName) {
  561. this.apply_post_disabled = true;
  562. }
  563. }
  564. resolve()
  565. })
  566. })
  567. },
  568. agree() {
  569. this.agreementModal = false;
  570. setTimeout(() => {
  571. this.$refs.collapse.init()
  572. },1000)
  573. },
  574. refuseAgreement() {
  575. uni.navigateBack({
  576. delta:1
  577. })
  578. },
  579. clearFun(key) {
  580. this.form[key] = '';
  581. },
  582. //清除按钮
  583. clearWatch(key) {
  584. if (this.form[key]) {
  585. return true;
  586. } else {
  587. return false;
  588. }
  589. },
  590. cahngeText() {
  591. this.$set(this.form, 'name', '唐');
  592. console.log(this.form.name, 123);
  593. },
  594. async uploadDatas(data) {
  595. if(this.form.recent_photos && this.form.idcard_face_photo) {
  596. uni.downloadFile({
  597. url: this.$method.splitImgHost(this.form.idcard_face_photo),
  598. success:async (res) => {
  599. if (res.statusCode === 200) {
  600. let resData = await this.faceCertificationIDCardOCR(1,res.tempFilePath);
  601. if(!resData.data.data) {
  602. uni.showModal({
  603. title:'提示',
  604. content:'身份证人像面照片异常,请重新上传',
  605. showCancel:false,
  606. })
  607. this.isUploading = false;
  608. return;
  609. }
  610. this.veryIdCard = resData.data.data.IdNum
  611. this.veryIdName = resData.data.data.IdName
  612. if(this.form.idcard) {
  613. if(this.form.idcard != this.veryIdCard) {
  614. uni.showModal({
  615. title:'提示',
  616. content:'输入的身份证号和身份证人像面照片身份证号不匹配',
  617. showCancel:false,
  618. })
  619. this.isUploading = false;
  620. return;
  621. }
  622. }
  623. uni.downloadFile({
  624. url: this.$method.splitImgHost(this.form.recent_photos),
  625. success: (res) => {
  626. if (res.statusCode === 200) {
  627. console.log('下载成功');
  628. let fileSystem = uni.getFileSystemManager();
  629. fileSystem.readFile({
  630. filePath: res.tempFilePath,
  631. encoding: 'base64',
  632. position: 0,
  633. success:(res) => {
  634. let base64 = 'data:image/jpg;base64,' + res.data;
  635. let newdata = {
  636. urlA:this.form.idcard_face_photo,
  637. oneInchPhotos:base64
  638. }
  639. this.$api.faceCertificationIdCardCompareFace(newdata).then(res1 => {
  640. if(res1.data.data >= 70) {
  641. var self = this;
  642. if (self.remarkStatus) {
  643. var arsty = {};
  644. for (let k in data) {
  645. for (let j in self.copyData) {
  646. if (k === j) {
  647. if (self.copyData[j].value === data[k]) {
  648. arsty[k] = {
  649. fieldKey: k,
  650. value: data[k],
  651. fieldName: (function() {
  652. for (let i = 0; i < self.listData.length; i++) {
  653. if (self.listData[i].fieldKey == k) {
  654. return self.listData[i].fieldName;
  655. }
  656. }
  657. })(),
  658. status: 0
  659. };
  660. } else {
  661. arsty[k] = {
  662. fieldKey: k,
  663. value: data[k],
  664. fieldName: (function() {
  665. for (let i = 0; i < self.listData.length; i++) {
  666. if (self.listData[i].fieldKey == k) {
  667. return self.listData[i].fieldName;
  668. }
  669. }
  670. })(),
  671. status: 1
  672. };
  673. }
  674. }
  675. }
  676. }
  677. var datas = {
  678. id: this.id,
  679. goodsId: this.goodsId,
  680. orderGoodsId:this.orderGoodsId,
  681. keyValue: JSON.stringify(arsty)
  682. };
  683. console.log(datas,'datas0')
  684. // this.isUploading = false;
  685. // return;
  686. this.$api.editbaseprofiletp(datas).then(res => {
  687. this.isUploading = false;
  688. if (res.data.code === 200) {
  689. this.$method.showToast('提交成功');
  690. uni.navigateBack();
  691. } else {
  692. this.$method.showToast(res.data.msg);
  693. this.isUploading = false;
  694. }
  695. });
  696. } else {
  697. var objs = {};
  698. for (let k in data) {
  699. objs[k] = {
  700. fieldKey: k,
  701. value: data[k],
  702. fieldName: (function() {
  703. for (let i = 0; i < self.listData.length; i++) {
  704. if (self.listData[i].fieldKey == k) {
  705. return self.listData[i].fieldName;
  706. }
  707. }
  708. })(),
  709. status: 0
  710. };
  711. }
  712. var datas = {
  713. goodsId: this.goodsId,
  714. profileTpId: this.goodsId,
  715. orderGoodsId:this.orderGoodsId,
  716. keyValue: JSON.stringify(objs)
  717. };
  718. console.log(data,'datas')
  719. // this.isUploading = false;
  720. // return;
  721. this.$api.addbaseprofiletp(datas).then(res => {
  722. this.isUploading = false;
  723. if (res.data.code === 200) {
  724. this.$method.showToast('提交成功');
  725. uni.navigateBack();
  726. } else {
  727. this.$method.showToast(res.data.msg);
  728. this.isUploading = false;
  729. }
  730. });
  731. }
  732. } else {
  733. this.isUploading = false;
  734. uni.showModal({
  735. title:'提示',
  736. content:'个人近照和身份证人像面照片不匹配',
  737. showCancel:false,
  738. })
  739. }
  740. })
  741. },
  742. fail(err) {
  743. this.isUploading = false;
  744. console.error(err,'err')
  745. }
  746. })
  747. }
  748. }
  749. });
  750. }
  751. },
  752. })
  753. return
  754. }
  755. var self = this;
  756. if (self.remarkStatus) {
  757. var arsty = {};
  758. for (let k in data) {
  759. for (let j in self.copyData) {
  760. if (k === j) {
  761. if (self.copyData[j].value === data[k]) {
  762. arsty[k] = {
  763. fieldKey: k,
  764. value: data[k],
  765. fieldName: (function() {
  766. for (let i = 0; i < self.listData.length; i++) {
  767. if (self.listData[i].fieldKey == k) {
  768. return self.listData[i].fieldName;
  769. }
  770. }
  771. })(),
  772. status: 0
  773. };
  774. } else {
  775. arsty[k] = {
  776. fieldKey: k,
  777. value: data[k],
  778. fieldName: (function() {
  779. for (let i = 0; i < self.listData.length; i++) {
  780. if (self.listData[i].fieldKey == k) {
  781. return self.listData[i].fieldName;
  782. }
  783. }
  784. })(),
  785. status: 1
  786. };
  787. }
  788. }
  789. }
  790. }
  791. console.log(arsty,'arsty')
  792. if(Object.keys(arsty).length == 0) {
  793. uni.showModal({
  794. title:'提示',
  795. content:'数据错误,请联系管理员'
  796. })
  797. this.isUploading = false;
  798. return;
  799. }
  800. var datas = {
  801. id: this.id,
  802. goodsId: this.goodsId,
  803. orderGoodsId:this.orderGoodsId,
  804. keyValue: JSON.stringify(arsty)
  805. };
  806. console.log(datas,'datas1')
  807. // return;
  808. this.$api.editbaseprofiletp(datas).then(res => {
  809. this.isUploading = false;
  810. if (res.data.code === 200) {
  811. this.$method.showToast('提交成功');
  812. uni.navigateBack();
  813. } else {
  814. this.$method.showToast(res.data.msg);
  815. this.isUploading = false;
  816. }
  817. });
  818. } else {
  819. var objs = {};
  820. for (let k in data) {
  821. objs[k] = {
  822. fieldKey: k,
  823. value: data[k],
  824. fieldName: (function() {
  825. for (let i = 0; i < self.listData.length; i++) {
  826. if (self.listData[i].fieldKey == k) {
  827. return self.listData[i].fieldName;
  828. }
  829. }
  830. })(),
  831. status: 0
  832. };
  833. }
  834. var datas = {
  835. goodsId: this.goodsId,
  836. profileTpId: this.goodsId,
  837. orderGoodsId:this.orderGoodsId,
  838. keyValue: JSON.stringify(objs)
  839. };
  840. console.log(datas,'datas2')
  841. // this.isUploading = false;
  842. // return;
  843. this.$api.addbaseprofiletp(datas).then(res => {
  844. this.isUploading = false;
  845. if (res.data.code === 200) {
  846. this.$method.showToast('提交成功');
  847. uni.navigateBack();
  848. } else {
  849. this.$method.showToast(res.data.msg);
  850. this.isUploading = false;
  851. }
  852. }).catch(err => {});
  853. }
  854. },
  855. backPage() {
  856. uni.navigateBack();
  857. },
  858. //提交表单
  859. async submitApi() {
  860. var data = JSON.parse(JSON.stringify(this.form));
  861. if (data['sex']) {
  862. data.sex = this.dictObj['sys_user_sex'][Number(data.sex)];
  863. }
  864. if (data['education']) {
  865. data.education = this.dictObj['edu_level'][Number(data.education)];
  866. }
  867. if (data['working_years']) {
  868. data.working_years = this.dictObj['working_years'][Number(data.working_years)];
  869. }
  870. if (data['recent_photos']) {
  871. data.recent_photos = await this.$method.uploadFile(data.recent_photos, 0);
  872. }
  873. if (data['idcard_face_photo']) {
  874. console.log('idcard_face_photo')
  875. data.idcard_face_photo = await this.$method.uploadFile(data.idcard_face_photo, 0);
  876. }
  877. if (data['idcard_national_photo']) {
  878. data.idcard_national_photo = await this.$method.uploadFile(data.idcard_national_photo, 0);
  879. }
  880. if (data['commitment_electr_signature']) {
  881. data.commitment_electr_signature = await this.$method.uploadFile(data.commitment_electr_signature, 0);
  882. }
  883. this.uploadDatas(data);
  884. },
  885. //验证表单
  886. resultForm(int) {
  887. console.log(this.openVerify,'openVerify')
  888. console.log(this.isRequired,'isRequired')
  889. if (this.openVerify) {
  890. if (this.isRequired) {
  891. this.submitApi();
  892. } else {
  893. if(int === 1) {
  894. this.errorType = ['toast'];
  895. } else {
  896. this.errorType = ['message'];
  897. }
  898. this.$nextTick(() => {
  899. this.$refs.uForm.validate(valid => {
  900. if (valid) {
  901. if (int === 1) {
  902. this.submitApi();
  903. }
  904. } else {
  905. this.isUploading = false;
  906. this.errorType = ['message'];
  907. console.log(this.form)
  908. console.log('验证失败');
  909. }
  910. });
  911. })
  912. }
  913. }
  914. },
  915. async submits() {
  916. if(this.isUploading) {
  917. return;
  918. }
  919. this.isUploading = true;
  920. var ast = this.listData.some(item => {
  921. return item.fieldKey === 'commitment_electr_signature';
  922. });
  923. if (ast) {
  924. await this.subCanvas();
  925. }
  926. this.openVerify = true;
  927. this.resultForm(1);
  928. },
  929. faceCertificationIDCardOCR(cardSide,url) {
  930. return new Promise(resolve => {
  931. let fileSystem = uni.getFileSystemManager();
  932. fileSystem.readFile({
  933. filePath: url,
  934. encoding: 'base64',
  935. position: 0,
  936. success:(res) => {
  937. let base64 = 'data:image/jpg;base64,' + res.data;
  938. this.$api.faceCertificationIDCardOCR({
  939. cardSide:cardSide, //1人像 2 国徽
  940. cardImageBase64:base64,
  941. gradeId:this.gradeId
  942. }).then(res => {
  943. resolve(res)
  944. })
  945. },
  946. fail(err) {
  947. console.error(err,'err')
  948. }
  949. })
  950. })
  951. },
  952. async changePhotoListHeader1(lists, name) {
  953. console.log(lists)
  954. if (lists.length) {
  955. this.fileList1 = lists;
  956. console.log(lists,'lists1')
  957. if (lists[0].url.indexOf('//tmp') !== -1 || lists[0].url.indexOf('//temp') !== -1) {
  958. this.$set(this.form, 'recent_photos', await this.$method.imageInfos(lists[0].url));
  959. }
  960. } else {
  961. this.fileList1 = [];
  962. this.$set(this.form, 'recent_photos', '');
  963. console.log(3, this.form.recent_photos);
  964. }
  965. this.openVerify = false;
  966. this.$nextTick(function() {
  967. console.log(4);
  968. this.resultForm();
  969. });
  970. },
  971. async changePhotoListHeader2(lists, name) {
  972. if (lists.length) {
  973. this.fileList2 = lists;
  974. if (lists[0].url.indexOf('//tmp') !== -1 || lists[0].url.indexOf('//temp') !== -1) {
  975. let url = lists[0].url
  976. this.$refs.idcard_face_photo[0].remove(0)
  977. uni.compressImage({
  978. src: url,
  979. quality: 75,
  980. width: '50%',
  981. height: '50%',
  982. success: async rest => {
  983. let res = await this.faceCertificationIDCardOCR(1,rest.tempFilePath);
  984. if(res.data.code == 500) {
  985. uni.showToast({
  986. icon:'none',
  987. title:'请上传正确清晰的身份证人像面照片'
  988. })
  989. return;
  990. }
  991. this.$refs.idcard_face_photo[0].lists = [{
  992. url:this.$method.splitImgHost(res.data.data.IdImgPath)
  993. }];
  994. this.$set(this.form, 'idcard_face_photo', res.data.data.IdImgPath);
  995. console.log(this.form,'idcard_face_photo')
  996. }
  997. });
  998. }
  999. } else {
  1000. this.fileList2 = [];
  1001. this.$set(this.form, 'idcard_face_photo', '');
  1002. }
  1003. this.openVerify = false;
  1004. this.$nextTick(function() {
  1005. this.resultForm();
  1006. });
  1007. },
  1008. async changePhotoListHeader3(lists, name) {
  1009. if (lists.length) {
  1010. this.fileList3 = lists;
  1011. if (lists[0].url.indexOf('//tmp') !== -1 || lists[0].url.indexOf('//temp') !== -1) {
  1012. console.log('//tem')
  1013. let url = lists[0].url
  1014. this.$refs.idcard_national_photo[0].remove(0)
  1015. uni.compressImage({
  1016. src: url,
  1017. quality: 75,
  1018. width: '50%',
  1019. height: '50%',
  1020. success: async rest => {
  1021. let res = await this.faceCertificationIDCardOCR(2,rest.tempFilePath);
  1022. if(res.data.code == 500) {
  1023. uni.showToast({
  1024. icon:'none',
  1025. title:'请上传正确清晰的身份证国徽面照片'
  1026. })
  1027. return;
  1028. }
  1029. this.$refs.idcard_national_photo[0].lists = [{
  1030. url:this.$method.splitImgHost(res.data.data.IdImgPath)
  1031. }];
  1032. this.$set(this.form, 'idcard_national_photo', res.data.data.IdImgPath);
  1033. console.log(this.form,'idcard_national_photo')
  1034. }
  1035. });
  1036. }
  1037. } else {
  1038. this.fileList3 = [];
  1039. this.$set(this.form, 'idcard_national_photo', '');
  1040. }
  1041. this.openVerify = false;
  1042. this.$nextTick(function() {
  1043. this.resultForm();
  1044. });
  1045. },
  1046. getTimes(key) {
  1047. if (this.form[key]) {
  1048. return this.form[key];
  1049. } else {
  1050. return '请选择时间';
  1051. }
  1052. },
  1053. getarrays(key) {
  1054. if (key === 'sex') {
  1055. return this.dictObj['sys_user_sex'];
  1056. }
  1057. if (key === 'education') {
  1058. return this.dictObj['edu_level'];
  1059. }
  1060. if (key === 'working_years') {
  1061. return this.dictObj['working_years'];
  1062. }
  1063. },
  1064. returnName(key) {
  1065. if (key === 'sex') {
  1066. if (this.form[key]) {
  1067. return this.dictObj['sys_user_sex'][Number(this.form[key])];
  1068. } else {
  1069. return '请选择性别';
  1070. }
  1071. }
  1072. if (key === 'education') {
  1073. if (this.form[key]) {
  1074. return this.dictObj['edu_level'][Number(this.form[key])];
  1075. } else {
  1076. return '请选择学历';
  1077. }
  1078. }
  1079. if (key === 'working_years') {
  1080. if (this.form[key]) {
  1081. return this.dictObj['working_years'][Number(this.form[key])];
  1082. } else {
  1083. return '请选择工作年限';
  1084. }
  1085. }
  1086. },
  1087. /**
  1088. * getbaseprofiletpgetInfo接口返回值result.data.data不存在的话说明是第一次填写资料
  1089. */
  1090. getInfo() {
  1091. console.log('getInfo')
  1092. var self = this;
  1093. this.$api.getbaseprofiletpId(this.goodsId).then(res => {
  1094. self.listData = JSON.parse(res.data.data.keyValue);
  1095. self.listData.forEach(item => {
  1096. if(item.fieldKey == "idcard") {
  1097. this.form.idcard = this.userInfo.idCard;
  1098. }
  1099. if(item.fieldKey == "telphone") {
  1100. this.form.telphone = this.userInfo.telphone;
  1101. }
  1102. if(item.fieldKey == "name") {
  1103. this.form.name = this.userInfo.realname
  1104. }
  1105. })
  1106. self.isRequired = self.listData.every(ims => {
  1107. return ims.required === false;
  1108. });
  1109. console.log(self.isRequired ,'self.isRequired ')
  1110. this.$nextTick(() => {
  1111. this.agreementModal = true;
  1112. })
  1113. self.$api.getbaseprofiletpgetInfo({ goodsId: self.goodsId ,orderGoodsId:self.orderGoodsId}).then(result => {
  1114. if (result.data.code === 200) {
  1115. if (!result.data.data) {
  1116. self.$api.getbaseprofiletplistProfile({ pageNum: 1, pageSize: 1, status: 1 }).then(kit => {
  1117. if (kit.data.rows.length) {
  1118. var ajson = JSON.parse(kit.data.rows[0].keyValue);
  1119. self.listData.forEach((zyitem, zyindex) => {
  1120. for (let k in ajson) {
  1121. if (zyitem.fieldKey == k && ajson[k].value) {
  1122. if (k === 'sex') {
  1123. const sexIndex = self.dictObj['sys_user_sex'].indexOf(ajson[k].value) + '';
  1124. self.$set(self.form, k, sexIndex);
  1125. } else if (k === 'education') {
  1126. const sexIndex = self.dictObj['edu_level'].indexOf(ajson[k].value) + '';
  1127. self.$set(self.form, k, sexIndex);
  1128. } else if (k === 'working_years') {
  1129. const sexIndex = self.dictObj['working_years'].indexOf(ajson[k].value) + '';
  1130. self.$set(self.form, k, sexIndex);
  1131. } else if (k === 'recent_photos') {
  1132. self.$set(self.form, k, ajson[k].value);
  1133. if (ajson[k].value) {
  1134. self.fileList1 = [{ url: baseUrls.BASE_IMG_URL + ajson[k].value }];
  1135. }
  1136. } else if (k === 'idcard_face_photo') {
  1137. self.$set(self.form, k, ajson[k].value);
  1138. if (ajson[k].value) {
  1139. self.fileList2 = [{ url: baseUrls.BASE_IMG_URL + ajson[k].value }];
  1140. }
  1141. } else if (k === 'idcard_national_photo') {
  1142. self.$set(self.form, k, ajson[k].value);
  1143. if (ajson[k].value) {
  1144. self.fileList3 = [{ url: baseUrls.BASE_IMG_URL + ajson[k].value }];
  1145. }
  1146. } else {
  1147. if(k === 'name'){
  1148. self.$set(self.form, k, this.$store.state.userInfo.realname);
  1149. } else if(k === 'idcard'){
  1150. self.$set(self.form, k, this.$store.state.userInfo.idCard);
  1151. } else if(k === 'telphone'){
  1152. self.$set(self.form, k, this.$store.state.userInfo.telphone);
  1153. } else if(k !== 'commitment_electr_signature'){
  1154. self.$set(self.form, k, ajson[k].value);
  1155. }
  1156. }
  1157. }
  1158. }
  1159. });
  1160. }
  1161. });
  1162. }
  1163. console.log(result.data.data,'result.data.data')
  1164. if (result.data.data && result.data.data.status === 3) {
  1165. self.remark = result.data.data.text;
  1166. self.remarkStatus = true;
  1167. self.id = result.data.data.id;
  1168. var arrays = JSON.parse(result.data.data.keyValue);
  1169. self.copyData = JSON.parse(JSON.stringify(arrays));
  1170. for (let k in arrays) {
  1171. if (k === 'sex') {
  1172. if (arrays[k].value) {
  1173. const sexIndex = self.dictObj['sys_user_sex'].indexOf(arrays[k].value) + '';
  1174. self.$set(self.form, k, sexIndex);
  1175. }
  1176. } else if (k === 'education') {
  1177. if (arrays[k].value) {
  1178. const sexIndex = self.dictObj['edu_level'].indexOf(arrays[k].value) + '';
  1179. self.$set(self.form, k, sexIndex);
  1180. }
  1181. } else if (k === 'working_years') {
  1182. if (arrays[k].value) {
  1183. const sexIndex = self.dictObj['working_years'].indexOf(arrays[k].value) + '';
  1184. self.$set(self.form, k, sexIndex);
  1185. }
  1186. } else if (k === 'recent_photos') {
  1187. self.$set(self.form, k, arrays[k].value);
  1188. if (arrays[k].value) {
  1189. self.fileList1 = [{ url: baseUrls.BASE_IMG_URL + arrays[k].value }];
  1190. }
  1191. } else if (k === 'idcard_face_photo') {
  1192. self.$set(self.form, k, arrays[k].value);
  1193. if (arrays[k].value) {
  1194. self.fileList2 = [{ url: baseUrls.BASE_IMG_URL + arrays[k].value }];
  1195. }
  1196. } else if (k === 'idcard_national_photo') {
  1197. self.$set(self.form, k, arrays[k].value);
  1198. if (arrays[k].value) {
  1199. self.fileList3 = [{ url: baseUrls.BASE_IMG_URL + arrays[k].value }];
  1200. }
  1201. } else {
  1202. self.$set(self.form, k, arrays[k].value);
  1203. }
  1204. }
  1205. } else if (result.data.data && (result.data.data.status === 1 || result.data.data.status === 2)) {
  1206. uni.showModal({
  1207. showCancel: false,
  1208. content:
  1209. result.data.data.status === 1
  1210. ? '该商品审核资料已通过,不可重复提交资料'
  1211. : result.data.data.status === 2
  1212. ? '该商品审核资料处于待审核状态,不可重复提交资料'
  1213. : '请联系管理员',
  1214. success: function(k) {
  1215. if (k.confirm) {
  1216. uni.navigateBack();
  1217. }
  1218. }
  1219. });
  1220. }
  1221. }
  1222. });
  1223. });
  1224. },
  1225. bindPickerChange(key, e) {
  1226. this.$set(this.form, key, e.detail.value);
  1227. this.openVerify = false;
  1228. this.$nextTick(function() {
  1229. this.resultForm();
  1230. });
  1231. },
  1232. bindDateChange(key, e) {
  1233. this.form[key] = e.detail.value;
  1234. },
  1235. retDraw() {
  1236. this.handwriting.retDraw();
  1237. this.$set(this.form, 'commitment_electr_signature', '');
  1238. this.openVerify = false;
  1239. this.$nextTick(function() {
  1240. this.resultForm();
  1241. });
  1242. },
  1243. uploadScaleStart(event) {
  1244. this.handwriting.uploadScaleStart(event);
  1245. },
  1246. uploadScaleMove(event) {
  1247. this.handwriting.uploadScaleMove(event);
  1248. },
  1249. uploadScaleEnd(event) {
  1250. this.handwriting.uploadScaleEnd(event);
  1251. },
  1252. subCanvas() {
  1253. return new Promise((resolve, reject) => {
  1254. var self = this;
  1255. if (self.form.commitment_electr_signature) {
  1256. resolve();
  1257. return;
  1258. }
  1259. self.handwriting
  1260. .saveCanvas()
  1261. .then(res => {
  1262. if (this.handwriting.linePrack.length) {
  1263. this.$set(this.form, 'commitment_electr_signature', res);
  1264. }
  1265. resolve(res);
  1266. })
  1267. .catch(err => {
  1268. uni.showToast({
  1269. title: '签名上传失败',
  1270. icon: 'error'
  1271. });
  1272. this.isUploading = false;
  1273. });
  1274. });
  1275. }
  1276. }
  1277. };
  1278. </script>
  1279. <style>
  1280. page {
  1281. background: #eaeef1;
  1282. }
  1283. </style>
  1284. <style scope lang="scss">
  1285. .ctoples {
  1286. position: absolute;
  1287. top: 0;
  1288. left: 0;
  1289. padding: 2rpx 23rpx;
  1290. display: inline-block;
  1291. background-color: rgba(0, 0, 0, 0.4);
  1292. font-size: 28rpx;
  1293. color: #fff;
  1294. border-bottom-right-radius: 24rpx;
  1295. }
  1296. .handWriting {
  1297. width: 100%;
  1298. height: 100%;
  1299. }
  1300. /deep/ .u-collapse-title {
  1301. color: #FF3B30;
  1302. font-size: 24rpx;
  1303. }
  1304. .collapse-item {
  1305. color: #666;
  1306. font-size: 24rpx;
  1307. padding-bottom: 30rpx;
  1308. }
  1309. .dis_stys {
  1310. display: flex;
  1311. align-items: center;
  1312. justify-content: space-between;
  1313. }
  1314. .handCenter {
  1315. background: #f7f7f7;
  1316. border: 2rpx solid #eeeeee;
  1317. border-radius: 24rpx;
  1318. width: 100%;
  1319. height: 300rpx;
  1320. overflow: hidden;
  1321. }
  1322. .headerSDels {
  1323. height: 58rpx;
  1324. padding: 0rpx 24rpx;
  1325. font-weight: bold;
  1326. display: flex;
  1327. align-items: center;
  1328. flex-direction: row-reverse;
  1329. }
  1330. .listBox {
  1331. margin: 24rpx 32rpx 0rpx;
  1332. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  1333. border-radius: 32rpx;
  1334. background-color: #fff;
  1335. overflow: hidden;
  1336. }
  1337. .imgBoxs {
  1338. width: 156rpx;
  1339. height: 203rpx;
  1340. }
  1341. .imgBoxs2 {
  1342. width: 171rpx;
  1343. height: 108rpx;
  1344. }
  1345. .submit_btn {
  1346. width: 526rpx;
  1347. height: 80rpx;
  1348. background: #007aff;
  1349. border-radius: 40rpx;
  1350. text-align: center;
  1351. line-height: 80rpx;
  1352. color: #ffffff;
  1353. margin: 30rpx auto;
  1354. }
  1355. .picker {
  1356. text-align: right;
  1357. }
  1358. input {
  1359. text-align: right;
  1360. }
  1361. .bodyBox {
  1362. background: #ffffff;
  1363. border-radius: 24rpx;
  1364. width: 100%;
  1365. }
  1366. .topBox {
  1367. height: 80rpx;
  1368. background: #ffffff;
  1369. border-radius: 24rpx;
  1370. width: 100%;
  1371. display: flex;
  1372. justify-content: space-between;
  1373. line-height: 80rpx;
  1374. padding: 0 20rpx;
  1375. font-size: 24rpx;
  1376. }
  1377. .modal {
  1378. .agreement {
  1379. width: 640rpx;
  1380. height: 740rpx;
  1381. background: #FFFFFF;
  1382. display: flex;
  1383. flex-direction: column;
  1384. .body {
  1385. flex:1;
  1386. .content {
  1387. padding:30rpx 40rpx 28rpx;
  1388. line-height: 40rpx;
  1389. font-size: 26rpx;
  1390. color:#666;
  1391. .bold {
  1392. color:#333;
  1393. font-size: 26rpx;
  1394. font-weight: bold;
  1395. }
  1396. .center {
  1397. text-align: center;
  1398. }
  1399. }
  1400. }
  1401. .footer {
  1402. height:140rpx;
  1403. border-top:1px solid #EEEEEE;
  1404. display: flex;
  1405. align-items: center;
  1406. justify-content: center;
  1407. .btn {
  1408. margin:0 12rpx;
  1409. width: 200rpx;
  1410. height: 80rpx;
  1411. color:#007AFF;
  1412. font-size: 30rpx;
  1413. text-align: center;
  1414. line-height: 80rpx;
  1415. background: #F5F5F5;
  1416. border-radius: 40rpx 40rpx 40rpx 40rpx;
  1417. &.ok {
  1418. width: 336rpx;
  1419. height: 80rpx;
  1420. background: #007AFF;
  1421. color:#fff;
  1422. }
  1423. &.close {
  1424. color:#fff;
  1425. width: 560rpx;
  1426. height: 80rpx;
  1427. background: #007AFF;
  1428. border-radius: 40rpx 40rpx 40rpx 40rpx;
  1429. }
  1430. }
  1431. }
  1432. }
  1433. }
  1434. </style>