input.vue 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481
  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. idNum:this.veryIdCard,
  637. idName:this.veryIdName,
  638. oneInchPhotos:base64
  639. }
  640. this.$api.facCertificationImageRecognition(newdata).then(res1 => {
  641. if(res1.data.data.sim >= 70) {
  642. var self = this;
  643. if (self.remarkStatus) {
  644. var arsty = {};
  645. for (let k in data) {
  646. for (let j in self.copyData) {
  647. if (k === j) {
  648. if (self.copyData[j].value === data[k]) {
  649. arsty[k] = {
  650. fieldKey: k,
  651. value: data[k],
  652. fieldName: (function() {
  653. for (let i = 0; i < self.listData.length; i++) {
  654. if (self.listData[i].fieldKey == k) {
  655. return self.listData[i].fieldName;
  656. }
  657. }
  658. })(),
  659. status: 0
  660. };
  661. } else {
  662. arsty[k] = {
  663. fieldKey: k,
  664. value: data[k],
  665. fieldName: (function() {
  666. for (let i = 0; i < self.listData.length; i++) {
  667. if (self.listData[i].fieldKey == k) {
  668. return self.listData[i].fieldName;
  669. }
  670. }
  671. })(),
  672. status: 1
  673. };
  674. }
  675. }
  676. }
  677. }
  678. var datas = {
  679. id: this.id,
  680. goodsId: this.goodsId,
  681. orderGoodsId:this.orderGoodsId,
  682. keyValue: JSON.stringify(arsty)
  683. };
  684. console.log(datas,'datas0')
  685. // this.isUploading = false;
  686. // return;
  687. this.$api.editbaseprofiletp(datas).then(res => {
  688. this.isUploading = false;
  689. if (res.data.code === 200) {
  690. this.$method.showToast('提交成功');
  691. uni.navigateBack();
  692. } else {
  693. this.$method.showToast(res.data.msg);
  694. this.isUploading = false;
  695. }
  696. });
  697. } else {
  698. var objs = {};
  699. for (let k in data) {
  700. objs[k] = {
  701. fieldKey: k,
  702. value: data[k],
  703. fieldName: (function() {
  704. for (let i = 0; i < self.listData.length; i++) {
  705. if (self.listData[i].fieldKey == k) {
  706. return self.listData[i].fieldName;
  707. }
  708. }
  709. })(),
  710. status: 0
  711. };
  712. }
  713. var datas = {
  714. goodsId: this.goodsId,
  715. profileTpId: this.goodsId,
  716. orderGoodsId:this.orderGoodsId,
  717. keyValue: JSON.stringify(objs)
  718. };
  719. console.log(data,'datas')
  720. // this.isUploading = false;
  721. // return;
  722. this.$api.addbaseprofiletp(datas).then(res => {
  723. this.isUploading = false;
  724. if (res.data.code === 200) {
  725. this.$method.showToast('提交成功');
  726. uni.navigateBack();
  727. } else {
  728. this.$method.showToast(res.data.msg);
  729. this.isUploading = false;
  730. }
  731. });
  732. }
  733. } else {
  734. this.isUploading = false;
  735. uni.showModal({
  736. title:'提示',
  737. content:'个人近照和身份证人像面照片不匹配',
  738. showCancel:false,
  739. })
  740. }
  741. })
  742. },
  743. fail(err) {
  744. this.isUploading = false;
  745. console.error(err,'err')
  746. }
  747. })
  748. }
  749. }
  750. });
  751. }
  752. },
  753. })
  754. return
  755. }
  756. var self = this;
  757. if (self.remarkStatus) {
  758. var arsty = {};
  759. for (let k in data) {
  760. for (let j in self.copyData) {
  761. if (k === j) {
  762. if (self.copyData[j].value === data[k]) {
  763. arsty[k] = {
  764. fieldKey: k,
  765. value: data[k],
  766. fieldName: (function() {
  767. for (let i = 0; i < self.listData.length; i++) {
  768. if (self.listData[i].fieldKey == k) {
  769. return self.listData[i].fieldName;
  770. }
  771. }
  772. })(),
  773. status: 0
  774. };
  775. } else {
  776. arsty[k] = {
  777. fieldKey: k,
  778. value: data[k],
  779. fieldName: (function() {
  780. for (let i = 0; i < self.listData.length; i++) {
  781. if (self.listData[i].fieldKey == k) {
  782. return self.listData[i].fieldName;
  783. }
  784. }
  785. })(),
  786. status: 1
  787. };
  788. }
  789. }
  790. }
  791. }
  792. console.log(arsty,'arsty')
  793. if(Object.keys(arsty).length == 0) {
  794. uni.showModal({
  795. title:'提示',
  796. content:'数据错误,请联系管理员'
  797. })
  798. this.isUploading = false;
  799. return;
  800. }
  801. var datas = {
  802. id: this.id,
  803. goodsId: this.goodsId,
  804. orderGoodsId:this.orderGoodsId,
  805. keyValue: JSON.stringify(arsty)
  806. };
  807. console.log(datas,'datas1')
  808. // return;
  809. this.$api.editbaseprofiletp(datas).then(res => {
  810. this.isUploading = false;
  811. if (res.data.code === 200) {
  812. this.$method.showToast('提交成功');
  813. uni.navigateBack();
  814. } else {
  815. this.$method.showToast(res.data.msg);
  816. this.isUploading = false;
  817. }
  818. });
  819. } else {
  820. var objs = {};
  821. for (let k in data) {
  822. objs[k] = {
  823. fieldKey: k,
  824. value: data[k],
  825. fieldName: (function() {
  826. for (let i = 0; i < self.listData.length; i++) {
  827. if (self.listData[i].fieldKey == k) {
  828. return self.listData[i].fieldName;
  829. }
  830. }
  831. })(),
  832. status: 0
  833. };
  834. }
  835. var datas = {
  836. goodsId: this.goodsId,
  837. profileTpId: this.goodsId,
  838. orderGoodsId:this.orderGoodsId,
  839. keyValue: JSON.stringify(objs)
  840. };
  841. console.log(datas,'datas2')
  842. // this.isUploading = false;
  843. // return;
  844. this.$api.addbaseprofiletp(datas).then(res => {
  845. this.isUploading = false;
  846. if (res.data.code === 200) {
  847. this.$method.showToast('提交成功');
  848. uni.navigateBack();
  849. } else {
  850. this.$method.showToast(res.data.msg);
  851. this.isUploading = false;
  852. }
  853. }).catch(err => {});
  854. }
  855. },
  856. backPage() {
  857. uni.navigateBack();
  858. },
  859. //提交表单
  860. async submitApi() {
  861. var data = JSON.parse(JSON.stringify(this.form));
  862. if (data['sex']) {
  863. data.sex = this.dictObj['sys_user_sex'][Number(data.sex)];
  864. }
  865. if (data['education']) {
  866. data.education = this.dictObj['edu_level'][Number(data.education)];
  867. }
  868. if (data['working_years']) {
  869. data.working_years = this.dictObj['working_years'][Number(data.working_years)];
  870. }
  871. if (data['recent_photos']) {
  872. data.recent_photos = await this.$method.uploadFile(data.recent_photos, 0);
  873. }
  874. if (data['idcard_face_photo']) {
  875. console.log('idcard_face_photo')
  876. data.idcard_face_photo = await this.$method.uploadFile(data.idcard_face_photo, 0);
  877. }
  878. if (data['idcard_national_photo']) {
  879. data.idcard_national_photo = await this.$method.uploadFile(data.idcard_national_photo, 0);
  880. }
  881. if (data['commitment_electr_signature']) {
  882. data.commitment_electr_signature = await this.$method.uploadFile(data.commitment_electr_signature, 0);
  883. }
  884. this.uploadDatas(data);
  885. },
  886. //验证表单
  887. resultForm(int) {
  888. console.log(this.openVerify,'openVerify')
  889. console.log(this.isRequired,'isRequired')
  890. if (this.openVerify) {
  891. if (this.isRequired) {
  892. this.submitApi();
  893. } else {
  894. if(int === 1) {
  895. this.errorType = ['toast'];
  896. } else {
  897. this.errorType = ['message'];
  898. }
  899. this.$nextTick(() => {
  900. this.$refs.uForm.validate(valid => {
  901. if (valid) {
  902. if (int === 1) {
  903. this.submitApi();
  904. }
  905. } else {
  906. this.isUploading = false;
  907. this.errorType = ['message'];
  908. console.log(this.form)
  909. console.log('验证失败');
  910. }
  911. });
  912. })
  913. }
  914. }
  915. },
  916. async submits() {
  917. if(this.isUploading) {
  918. return;
  919. }
  920. this.isUploading = true;
  921. var ast = this.listData.some(item => {
  922. return item.fieldKey === 'commitment_electr_signature';
  923. });
  924. if (ast) {
  925. await this.subCanvas();
  926. }
  927. this.openVerify = true;
  928. this.resultForm(1);
  929. },
  930. faceCertificationIDCardOCR(cardSide,url) {
  931. return new Promise(resolve => {
  932. let fileSystem = uni.getFileSystemManager();
  933. fileSystem.readFile({
  934. filePath: url,
  935. encoding: 'base64',
  936. position: 0,
  937. success:(res) => {
  938. let base64 = 'data:image/jpg;base64,' + res.data;
  939. this.$api.faceCertificationIDCardOCR({
  940. cardSide:cardSide, //1人像 2 国徽
  941. cardImageBase64:base64,
  942. gradeId:this.gradeId
  943. }).then(res => {
  944. resolve(res)
  945. })
  946. },
  947. fail(err) {
  948. console.error(err,'err')
  949. }
  950. })
  951. })
  952. },
  953. async changePhotoListHeader1(lists, name) {
  954. console.log(lists)
  955. if (lists.length) {
  956. this.fileList1 = lists;
  957. console.log(lists,'lists1')
  958. if (lists[0].url.indexOf('//tmp') !== -1 || lists[0].url.indexOf('//temp') !== -1) {
  959. this.$set(this.form, 'recent_photos', await this.$method.imageInfos(lists[0].url));
  960. }
  961. } else {
  962. this.fileList1 = [];
  963. this.$set(this.form, 'recent_photos', '');
  964. console.log(3, this.form.recent_photos);
  965. }
  966. this.openVerify = false;
  967. this.$nextTick(function() {
  968. console.log(4);
  969. this.resultForm();
  970. });
  971. },
  972. async changePhotoListHeader2(lists, name) {
  973. if (lists.length) {
  974. this.fileList2 = lists;
  975. if (lists[0].url.indexOf('//tmp') !== -1 || lists[0].url.indexOf('//temp') !== -1) {
  976. let url = lists[0].url
  977. this.$refs.idcard_face_photo[0].remove(0)
  978. uni.compressImage({
  979. src: url,
  980. quality: 75,
  981. width: '50%',
  982. height: '50%',
  983. success: async rest => {
  984. let res = await this.faceCertificationIDCardOCR(1,rest.tempFilePath);
  985. if(res.data.code == 500) {
  986. uni.showToast({
  987. icon:'none',
  988. title:'请上传正确清晰的身份证人像面照片'
  989. })
  990. return;
  991. }
  992. this.$refs.idcard_face_photo[0].lists = [{
  993. url:this.$method.splitImgHost(res.data.data.IdImgPath)
  994. }];
  995. this.$set(this.form, 'idcard_face_photo', res.data.data.IdImgPath);
  996. console.log(this.form,'idcard_face_photo')
  997. }
  998. });
  999. }
  1000. } else {
  1001. this.fileList2 = [];
  1002. this.$set(this.form, 'idcard_face_photo', '');
  1003. }
  1004. this.openVerify = false;
  1005. this.$nextTick(function() {
  1006. this.resultForm();
  1007. });
  1008. },
  1009. async changePhotoListHeader3(lists, name) {
  1010. if (lists.length) {
  1011. this.fileList3 = lists;
  1012. if (lists[0].url.indexOf('//tmp') !== -1 || lists[0].url.indexOf('//temp') !== -1) {
  1013. console.log('//tem')
  1014. let url = lists[0].url
  1015. this.$refs.idcard_national_photo[0].remove(0)
  1016. uni.compressImage({
  1017. src: url,
  1018. quality: 75,
  1019. width: '50%',
  1020. height: '50%',
  1021. success: async rest => {
  1022. let res = await this.faceCertificationIDCardOCR(2,rest.tempFilePath);
  1023. if(res.data.code == 500) {
  1024. uni.showToast({
  1025. icon:'none',
  1026. title:'请上传正确清晰的身份证国徽面照片'
  1027. })
  1028. return;
  1029. }
  1030. this.$refs.idcard_national_photo[0].lists = [{
  1031. url:this.$method.splitImgHost(res.data.data.IdImgPath)
  1032. }];
  1033. this.$set(this.form, 'idcard_national_photo', res.data.data.IdImgPath);
  1034. console.log(this.form,'idcard_national_photo')
  1035. }
  1036. });
  1037. }
  1038. } else {
  1039. this.fileList3 = [];
  1040. this.$set(this.form, 'idcard_national_photo', '');
  1041. }
  1042. this.openVerify = false;
  1043. this.$nextTick(function() {
  1044. this.resultForm();
  1045. });
  1046. },
  1047. getTimes(key) {
  1048. if (this.form[key]) {
  1049. return this.form[key];
  1050. } else {
  1051. return '请选择时间';
  1052. }
  1053. },
  1054. getarrays(key) {
  1055. if (key === 'sex') {
  1056. return this.dictObj['sys_user_sex'];
  1057. }
  1058. if (key === 'education') {
  1059. return this.dictObj['edu_level'];
  1060. }
  1061. if (key === 'working_years') {
  1062. return this.dictObj['working_years'];
  1063. }
  1064. },
  1065. returnName(key) {
  1066. if (key === 'sex') {
  1067. if (this.form[key]) {
  1068. return this.dictObj['sys_user_sex'][Number(this.form[key])];
  1069. } else {
  1070. return '请选择性别';
  1071. }
  1072. }
  1073. if (key === 'education') {
  1074. if (this.form[key]) {
  1075. return this.dictObj['edu_level'][Number(this.form[key])];
  1076. } else {
  1077. return '请选择学历';
  1078. }
  1079. }
  1080. if (key === 'working_years') {
  1081. if (this.form[key]) {
  1082. return this.dictObj['working_years'][Number(this.form[key])];
  1083. } else {
  1084. return '请选择工作年限';
  1085. }
  1086. }
  1087. },
  1088. /**
  1089. * getbaseprofiletpgetInfo接口返回值result.data.data不存在的话说明是第一次填写资料
  1090. */
  1091. getInfo() {
  1092. console.log('getInfo')
  1093. var self = this;
  1094. this.$api.getbaseprofiletpId(this.goodsId).then(res => {
  1095. self.listData = JSON.parse(res.data.data.keyValue);
  1096. self.listData.forEach(item => {
  1097. if(item.fieldKey == "idcard") {
  1098. this.form.idcard = this.userInfo.idCard;
  1099. }
  1100. if(item.fieldKey == "telphone") {
  1101. this.form.telphone = this.userInfo.telphone;
  1102. }
  1103. if(item.fieldKey == "name") {
  1104. this.form.name = this.userInfo.realname
  1105. }
  1106. })
  1107. self.isRequired = self.listData.every(ims => {
  1108. return ims.required === false;
  1109. });
  1110. console.log(self.isRequired ,'self.isRequired ')
  1111. this.$nextTick(() => {
  1112. this.agreementModal = true;
  1113. })
  1114. self.$api.getbaseprofiletpgetInfo({ goodsId: self.goodsId ,orderGoodsId:self.orderGoodsId}).then(result => {
  1115. if (result.data.code === 200) {
  1116. if (!result.data.data) {
  1117. self.$api.getbaseprofiletplistProfile({ pageNum: 1, pageSize: 1, status: 1 }).then(kit => {
  1118. if (kit.data.rows.length) {
  1119. var ajson = JSON.parse(kit.data.rows[0].keyValue);
  1120. self.listData.forEach((zyitem, zyindex) => {
  1121. for (let k in ajson) {
  1122. if (zyitem.fieldKey == k && ajson[k].value) {
  1123. if (k === 'sex') {
  1124. const sexIndex = self.dictObj['sys_user_sex'].indexOf(ajson[k].value) + '';
  1125. self.$set(self.form, k, sexIndex);
  1126. } else if (k === 'education') {
  1127. const sexIndex = self.dictObj['edu_level'].indexOf(ajson[k].value) + '';
  1128. self.$set(self.form, k, sexIndex);
  1129. } else if (k === 'working_years') {
  1130. const sexIndex = self.dictObj['working_years'].indexOf(ajson[k].value) + '';
  1131. self.$set(self.form, k, sexIndex);
  1132. } else if (k === 'recent_photos') {
  1133. self.$set(self.form, k, ajson[k].value);
  1134. if (ajson[k].value) {
  1135. self.fileList1 = [{ url: baseUrls.BASE_IMG_URL + ajson[k].value }];
  1136. }
  1137. } else if (k === 'idcard_face_photo') {
  1138. self.$set(self.form, k, ajson[k].value);
  1139. if (ajson[k].value) {
  1140. self.fileList2 = [{ url: baseUrls.BASE_IMG_URL + ajson[k].value }];
  1141. }
  1142. } else if (k === 'idcard_national_photo') {
  1143. self.$set(self.form, k, ajson[k].value);
  1144. if (ajson[k].value) {
  1145. self.fileList3 = [{ url: baseUrls.BASE_IMG_URL + ajson[k].value }];
  1146. }
  1147. } else {
  1148. if(k === 'name'){
  1149. self.$set(self.form, k, this.$store.state.userInfo.realname);
  1150. } else if(k === 'idcard'){
  1151. self.$set(self.form, k, this.$store.state.userInfo.idCard);
  1152. } else if(k === 'telphone'){
  1153. self.$set(self.form, k, this.$store.state.userInfo.telphone);
  1154. } else if(k !== 'commitment_electr_signature'){
  1155. self.$set(self.form, k, ajson[k].value);
  1156. }
  1157. }
  1158. }
  1159. }
  1160. });
  1161. }
  1162. });
  1163. }
  1164. console.log(result.data.data,'result.data.data')
  1165. if (result.data.data && result.data.data.status === 3) {
  1166. self.remark = result.data.data.text;
  1167. self.remarkStatus = true;
  1168. self.id = result.data.data.id;
  1169. var arrays = JSON.parse(result.data.data.keyValue);
  1170. self.copyData = JSON.parse(JSON.stringify(arrays));
  1171. for (let k in arrays) {
  1172. if (k === 'sex') {
  1173. if (arrays[k].value) {
  1174. const sexIndex = self.dictObj['sys_user_sex'].indexOf(arrays[k].value) + '';
  1175. self.$set(self.form, k, sexIndex);
  1176. }
  1177. } else if (k === 'education') {
  1178. if (arrays[k].value) {
  1179. const sexIndex = self.dictObj['edu_level'].indexOf(arrays[k].value) + '';
  1180. self.$set(self.form, k, sexIndex);
  1181. }
  1182. } else if (k === 'working_years') {
  1183. if (arrays[k].value) {
  1184. const sexIndex = self.dictObj['working_years'].indexOf(arrays[k].value) + '';
  1185. self.$set(self.form, k, sexIndex);
  1186. }
  1187. } else if (k === 'recent_photos') {
  1188. self.$set(self.form, k, arrays[k].value);
  1189. if (arrays[k].value) {
  1190. self.fileList1 = [{ url: baseUrls.BASE_IMG_URL + arrays[k].value }];
  1191. }
  1192. } else if (k === 'idcard_face_photo') {
  1193. self.$set(self.form, k, arrays[k].value);
  1194. if (arrays[k].value) {
  1195. self.fileList2 = [{ url: baseUrls.BASE_IMG_URL + arrays[k].value }];
  1196. }
  1197. } else if (k === 'idcard_national_photo') {
  1198. self.$set(self.form, k, arrays[k].value);
  1199. if (arrays[k].value) {
  1200. self.fileList3 = [{ url: baseUrls.BASE_IMG_URL + arrays[k].value }];
  1201. }
  1202. } else {
  1203. self.$set(self.form, k, arrays[k].value);
  1204. }
  1205. }
  1206. } else if (result.data.data && (result.data.data.status === 1 || result.data.data.status === 2)) {
  1207. uni.showModal({
  1208. showCancel: false,
  1209. content:
  1210. result.data.data.status === 1
  1211. ? '该商品审核资料已通过,不可重复提交资料'
  1212. : result.data.data.status === 2
  1213. ? '该商品审核资料处于待审核状态,不可重复提交资料'
  1214. : '请联系管理员',
  1215. success: function(k) {
  1216. if (k.confirm) {
  1217. uni.navigateBack();
  1218. }
  1219. }
  1220. });
  1221. }
  1222. }
  1223. });
  1224. });
  1225. },
  1226. bindPickerChange(key, e) {
  1227. this.$set(this.form, key, e.detail.value);
  1228. this.openVerify = false;
  1229. this.$nextTick(function() {
  1230. this.resultForm();
  1231. });
  1232. },
  1233. bindDateChange(key, e) {
  1234. this.form[key] = e.detail.value;
  1235. },
  1236. retDraw() {
  1237. this.handwriting.retDraw();
  1238. this.$set(this.form, 'commitment_electr_signature', '');
  1239. this.openVerify = false;
  1240. this.$nextTick(function() {
  1241. this.resultForm();
  1242. });
  1243. },
  1244. uploadScaleStart(event) {
  1245. this.handwriting.uploadScaleStart(event);
  1246. },
  1247. uploadScaleMove(event) {
  1248. this.handwriting.uploadScaleMove(event);
  1249. },
  1250. uploadScaleEnd(event) {
  1251. this.handwriting.uploadScaleEnd(event);
  1252. },
  1253. subCanvas() {
  1254. return new Promise((resolve, reject) => {
  1255. var self = this;
  1256. if (self.form.commitment_electr_signature) {
  1257. resolve();
  1258. return;
  1259. }
  1260. self.handwriting
  1261. .saveCanvas()
  1262. .then(res => {
  1263. if (this.handwriting.linePrack.length) {
  1264. this.$set(this.form, 'commitment_electr_signature', res);
  1265. }
  1266. resolve(res);
  1267. })
  1268. .catch(err => {
  1269. uni.showToast({
  1270. title: '签名上传失败',
  1271. icon: 'error'
  1272. });
  1273. this.isUploading = false;
  1274. });
  1275. });
  1276. }
  1277. }
  1278. };
  1279. </script>
  1280. <style>
  1281. page {
  1282. background: #eaeef1;
  1283. }
  1284. </style>
  1285. <style scope lang="scss">
  1286. .ctoples {
  1287. position: absolute;
  1288. top: 0;
  1289. left: 0;
  1290. padding: 2rpx 23rpx;
  1291. display: inline-block;
  1292. background-color: rgba(0, 0, 0, 0.4);
  1293. font-size: 28rpx;
  1294. color: #fff;
  1295. border-bottom-right-radius: 24rpx;
  1296. }
  1297. .handWriting {
  1298. width: 100%;
  1299. height: 100%;
  1300. }
  1301. /deep/ .u-collapse-title {
  1302. color: #FF3B30;
  1303. font-size: 24rpx;
  1304. }
  1305. .collapse-item {
  1306. color: #666;
  1307. font-size: 24rpx;
  1308. padding-bottom: 30rpx;
  1309. }
  1310. .dis_stys {
  1311. display: flex;
  1312. align-items: center;
  1313. justify-content: space-between;
  1314. }
  1315. .handCenter {
  1316. background: #f7f7f7;
  1317. border: 2rpx solid #eeeeee;
  1318. border-radius: 24rpx;
  1319. width: 100%;
  1320. height: 300rpx;
  1321. overflow: hidden;
  1322. }
  1323. .headerSDels {
  1324. height: 58rpx;
  1325. padding: 0rpx 24rpx;
  1326. font-weight: bold;
  1327. display: flex;
  1328. align-items: center;
  1329. flex-direction: row-reverse;
  1330. }
  1331. .listBox {
  1332. margin: 24rpx 32rpx 0rpx;
  1333. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  1334. border-radius: 32rpx;
  1335. background-color: #fff;
  1336. overflow: hidden;
  1337. }
  1338. .imgBoxs {
  1339. width: 156rpx;
  1340. height: 203rpx;
  1341. }
  1342. .imgBoxs2 {
  1343. width: 171rpx;
  1344. height: 108rpx;
  1345. }
  1346. .submit_btn {
  1347. width: 526rpx;
  1348. height: 80rpx;
  1349. background: #007aff;
  1350. border-radius: 40rpx;
  1351. text-align: center;
  1352. line-height: 80rpx;
  1353. color: #ffffff;
  1354. margin: 30rpx auto;
  1355. }
  1356. .picker {
  1357. text-align: right;
  1358. }
  1359. input {
  1360. text-align: right;
  1361. }
  1362. .bodyBox {
  1363. background: #ffffff;
  1364. border-radius: 24rpx;
  1365. width: 100%;
  1366. }
  1367. .topBox {
  1368. height: 80rpx;
  1369. background: #ffffff;
  1370. border-radius: 24rpx;
  1371. width: 100%;
  1372. display: flex;
  1373. justify-content: space-between;
  1374. line-height: 80rpx;
  1375. padding: 0 20rpx;
  1376. font-size: 24rpx;
  1377. }
  1378. .modal {
  1379. .agreement {
  1380. width: 640rpx;
  1381. height: 740rpx;
  1382. background: #FFFFFF;
  1383. display: flex;
  1384. flex-direction: column;
  1385. .body {
  1386. flex:1;
  1387. .content {
  1388. padding:30rpx 40rpx 28rpx;
  1389. line-height: 40rpx;
  1390. font-size: 26rpx;
  1391. color:#666;
  1392. .bold {
  1393. color:#333;
  1394. font-size: 26rpx;
  1395. font-weight: bold;
  1396. }
  1397. .center {
  1398. text-align: center;
  1399. }
  1400. }
  1401. }
  1402. .footer {
  1403. height:140rpx;
  1404. border-top:1px solid #EEEEEE;
  1405. display: flex;
  1406. align-items: center;
  1407. justify-content: center;
  1408. .btn {
  1409. margin:0 12rpx;
  1410. width: 200rpx;
  1411. height: 80rpx;
  1412. color:#007AFF;
  1413. font-size: 30rpx;
  1414. text-align: center;
  1415. line-height: 80rpx;
  1416. background: #F5F5F5;
  1417. border-radius: 40rpx 40rpx 40rpx 40rpx;
  1418. &.ok {
  1419. width: 336rpx;
  1420. height: 80rpx;
  1421. background: #007AFF;
  1422. color:#fff;
  1423. }
  1424. &.close {
  1425. color:#fff;
  1426. width: 560rpx;
  1427. height: 80rpx;
  1428. background: #007AFF;
  1429. border-radius: 40rpx 40rpx 40rpx 40rpx;
  1430. }
  1431. }
  1432. }
  1433. }
  1434. }
  1435. </style>