input.vue 75 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292
  1. <template>
  2. <view class="infos" 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"
  9. >学习前请提交完整审核资料</text
  10. >
  11. </view>
  12. <view style="color: #007aff" @click="refuseAgreement">稍后再填</view>
  13. </view>
  14. <u-collapse
  15. v-show="remarkStatus"
  16. :item-style="itemStyle"
  17. event-type="close"
  18. ref="collapse"
  19. >
  20. <u-collapse-item title="审核结果反馈">
  21. <view style="padding-bottom: 30rpx">
  22. <text class="collapse-item">{{ remark || "" }}</text>
  23. </view>
  24. </u-collapse-item>
  25. </u-collapse>
  26. <view class="bodyBox" style="margin-top: 30rpx; padding: 0 20rpx">
  27. <u-form :model="form" ref="uForm" :error-type="errorType">
  28. <template v-for="(item, index) in listData">
  29. <u-form-item
  30. :key="index"
  31. v-if="item.fieldKey == 'name'"
  32. :label="item.fieldName"
  33. :required="item.required"
  34. :label-width="auto"
  35. :prop="item.required ? item.fieldKey : ''"
  36. >
  37. <u-input
  38. v-model="form.name"
  39. :disabled="disName"
  40. :placeholder="`请输入${item.fieldName}`"
  41. />
  42. </u-form-item>
  43. <u-form-item
  44. :key="index"
  45. v-if="item.fieldKey == 'idcard'"
  46. :label="item.fieldName"
  47. :required="item.required"
  48. :label-width="auto"
  49. :prop="item.required ? item.fieldKey : ''"
  50. >
  51. <u-input
  52. :disabled="disCard"
  53. v-model="form.idcard"
  54. :placeholder="`请输入${item.fieldName}`"
  55. />
  56. </u-form-item>
  57. <u-form-item
  58. :key="index"
  59. v-if="item.fieldKey == 'telphone'"
  60. :label="item.fieldName"
  61. :required="item.required"
  62. :label-width="auto"
  63. :disabled="true"
  64. :prop="item.required ? item.fieldKey : ''"
  65. >
  66. <u-input
  67. disabled
  68. v-model="form.telphone"
  69. :placeholder="`请输入${item.fieldName}`"
  70. />
  71. </u-form-item>
  72. <u-form-item
  73. :key="index"
  74. v-if="item.fieldKey == 'school'"
  75. :label="item.fieldName"
  76. :required="item.required"
  77. :label-width="auto"
  78. :prop="item.required ? item.fieldKey : ''"
  79. >
  80. <u-input
  81. v-model="form.school"
  82. :placeholder="`请输入${item.fieldName}`"
  83. />
  84. </u-form-item>
  85. <u-form-item
  86. :key="index"
  87. v-if="item.fieldKey == 'work_unit'"
  88. :label="item.fieldName"
  89. :required="item.required"
  90. :label-width="auto"
  91. :prop="item.required ? item.fieldKey : ''"
  92. >
  93. <u-input
  94. v-model="form.work_unit"
  95. :placeholder="`请输入${item.fieldName}`"
  96. />
  97. </u-form-item>
  98. <u-form-item
  99. :key="index"
  100. v-if="item.fieldKey == 'unit_contact'"
  101. :label="item.fieldName"
  102. :required="item.required"
  103. :label-width="auto"
  104. :prop="item.required ? item.fieldKey : ''"
  105. >
  106. <u-input
  107. v-model="form.unit_contact"
  108. :placeholder="`请输入${item.fieldName}`"
  109. />
  110. </u-form-item>
  111. <u-form-item
  112. :key="index"
  113. v-if="item.fieldKey == 'unit_tel'"
  114. :label="item.fieldName"
  115. :required="item.required"
  116. :label-width="auto"
  117. :prop="item.required ? item.fieldKey : ''"
  118. >
  119. <u-input
  120. v-model="form.unit_tel"
  121. :placeholder="`请输入${item.fieldName}`"
  122. />
  123. </u-form-item>
  124. <u-form-item
  125. :key="index"
  126. v-if="item.fieldKey == 'apply_post'"
  127. :label="item.fieldName"
  128. :required="item.required"
  129. :label-width="auto"
  130. :prop="item.required ? item.fieldKey : ''"
  131. >
  132. <u-input
  133. v-model="form.apply_post"
  134. :disabled="apply_post_disabled"
  135. :placeholder="`请输入${item.fieldName}`"
  136. />
  137. </u-form-item>
  138. <u-form-item
  139. :key="index"
  140. v-if="item.fieldKey == 'major'"
  141. :label="item.fieldName"
  142. :required="item.required"
  143. :label-width="auto"
  144. :prop="item.required ? item.fieldKey : ''"
  145. >
  146. <u-input
  147. v-model="form.major"
  148. :placeholder="`请输入${item.fieldName}`"
  149. />
  150. </u-form-item>
  151. <u-form-item
  152. :key="index"
  153. v-if="item.inputType == 2"
  154. :label="item.fieldName"
  155. :label-width="auto"
  156. :required="item.required"
  157. :prop="item.required ? item.fieldKey : ''"
  158. >
  159. <picker
  160. @change="bindPickerChange(item.fieldKey, $event)"
  161. :value="form[item.fieldKey]"
  162. :range="getarrays(item.fieldKey)"
  163. >
  164. <view class="picker">
  165. {{ returnName(item.fieldKey) }}
  166. <image
  167. src="@/static/icon/clears.png"
  168. v-if="clearWatch(item.fieldKey)"
  169. @click.stop="clearFun(item.fieldKey)"
  170. mode=""
  171. style="
  172. width: 30rpx;
  173. height: 30rpx;
  174. vertical-align: middle;
  175. margin-left: 10rpx;
  176. "
  177. ></image>
  178. </view>
  179. </picker>
  180. </u-form-item>
  181. <u-form-item
  182. :key="index"
  183. v-if="item.inputType == 5"
  184. :label="item.fieldName"
  185. :label-width="auto"
  186. :required="item.required"
  187. :prop="item.required ? item.fieldKey : ''"
  188. >
  189. <picker
  190. mode="date"
  191. :value="form[item.fieldKey]"
  192. @change="bindDateChange(item.fieldKey, $event)"
  193. >
  194. <view class="picker">
  195. {{ getTimes(item.fieldKey) }}
  196. <image
  197. src="@/static/icon/clears.png"
  198. v-if="clearWatch(item.fieldKey)"
  199. @click.stop="clearFun(item.fieldKey)"
  200. mode=""
  201. style="
  202. width: 30rpx;
  203. height: 30rpx;
  204. vertical-align: middle;
  205. margin-left: 10rpx;
  206. "
  207. ></image>
  208. </view>
  209. </picker>
  210. </u-form-item>
  211. <u-form-item
  212. :key="index"
  213. v-if="
  214. item.inputType == 3 &&
  215. item.fieldKey !== 'commitment_electr_signature'
  216. "
  217. :label="item.fieldName"
  218. :required="item.required"
  219. :label-width="auto"
  220. label-position="top"
  221. :prop="item.required ? item.fieldKey : ''"
  222. >
  223. <text
  224. v-if="item.fieldKey === 'recent_photos'"
  225. style="
  226. color: #999999;
  227. position: absolute;
  228. top: 20rpx;
  229. left: 130rpx;
  230. "
  231. >竖向白底证件照 文件大小≤2M</text
  232. >
  233. <text
  234. v-if="
  235. item.fieldKey === 'idcard_face_photo' ||
  236. item.fieldKey === 'idcard_national_photo'
  237. "
  238. style="
  239. color: #999999;
  240. position: absolute;
  241. top: 20rpx;
  242. left: 180rpx;
  243. "
  244. >
  245. 文件大小≤2M
  246. </text>
  247. <!-- :max-size="2097152" -->
  248. <!-- @on-list-change="
  249. item.fieldKey === 'recent_photos'
  250. ? changePhotoListHeader1($event)
  251. : item.fieldKey === 'idcard_face_photo'
  252. ? changePhotoListHeader2($event)
  253. : item.fieldKey === 'idcard_national_photo'
  254. ? changePhotoListHeader3($event)
  255. : ''
  256. " -->
  257. <u-upload
  258. :show-progress="false"
  259. :ref="
  260. item.fieldKey === 'recent_photos'
  261. ? 'recent_photos'
  262. : item.fieldKey === 'idcard_face_photo'
  263. ? 'idcard_face_photo'
  264. : item.fieldKey === 'idcard_national_photo'
  265. ? 'idcard_national_photo'
  266. : ''
  267. "
  268. @on-list-change="changePhotoListHeader($event, item.fieldKey)"
  269. :auto-upload="false"
  270. custom-btn="true"
  271. :action="action"
  272. :file-list="
  273. item.fieldKey === 'recent_photos'
  274. ? fileList1
  275. : item.fieldKey === 'idcard_face_photo'
  276. ? fileList2
  277. : item.fieldKey === 'idcard_national_photo'
  278. ? fileList3
  279. : ''
  280. "
  281. width="120"
  282. height="120"
  283. size-type="['compressed']"
  284. max-count="1"
  285. >
  286. <template v-slot:addBtn>
  287. <image
  288. :src="
  289. item.fieldKey === 'recent_photos'
  290. ? '/static/info_1.png'
  291. : item.fieldKey === 'idcard_face_photo'
  292. ? '/static/info_2.png'
  293. : item.fieldKey === 'idcard_national_photo'
  294. ? '/static/info_3.png'
  295. : ''
  296. "
  297. :style="
  298. item.fieldKey === 'recent_photos'
  299. ? 'width: 120rpx; height: 169rpx;'
  300. : item.fieldKey === 'idcard_face_photo'
  301. ? 'width: 120rpx; height: 82rpx;'
  302. : item.fieldKey === 'idcard_national_photo'
  303. ? 'width: 120rpx; height: 82rpx;'
  304. : ''
  305. "
  306. ></image>
  307. </template>
  308. </u-upload>
  309. </u-form-item>
  310. <view
  311. :key="index"
  312. v-if="
  313. item.inputType == 3 &&
  314. item.fieldKey === 'commitment_electr_signature'
  315. "
  316. >
  317. <u-form-item
  318. v-if="
  319. item.inputType == 3 &&
  320. item.fieldKey === 'commitment_electr_signature'
  321. "
  322. label="承诺书"
  323. :required="item.required"
  324. :label-width="auto"
  325. label-position="top"
  326. >
  327. <view style="line-height: 40rpx; text-indent: 2em">
  328. <text>
  329. 本人自愿做出如下承诺:本人己仔细阅读《广东省住房和城乡建设厅关于推进住房和城乡建设领域施工现场专业人员职业培训工作的通知》
  330. 全部内容并知晓和理解,本人的学历证书、身份证、工作年限、相片等所有资料完全真实、符合报名条件、资格审查要求和相关规定,本人在报名、审查、培训、测试等有关的事项中会严格道守相关规定和要求,如有虛假或与实际规定不符等情况造成的一切后果由本人承担。
  331. </text>
  332. <view style="line-height: 40rpx; text-indent: 2em"
  333. ><text>特此承诺!</text></view
  334. >
  335. </view>
  336. </u-form-item>
  337. <u-form-item
  338. v-if="
  339. item.inputType == 3 &&
  340. item.fieldKey === 'commitment_electr_signature'
  341. "
  342. label="签名板"
  343. :required="item.required"
  344. :label-width="auto"
  345. label-position="top"
  346. :prop="item.required ? item.fieldKey : ''"
  347. >
  348. <view class="dis_stys">
  349. <text style="color: #999999">请在下方签名区进行签名</text>
  350. <text @click="retDraw" mode="">清空</text>
  351. </view>
  352. <view class="handCenter">
  353. <canvas
  354. v-if="!form[item.fieldKey]"
  355. class="handWriting"
  356. disable-scroll="true"
  357. :catchtouchmove="true"
  358. @touchstart="uploadScaleStart"
  359. @touchmove="uploadScaleMove"
  360. @touchend="uploadScaleEnd"
  361. canvas-id="handWriting"
  362. ></canvas>
  363. <view
  364. v-else
  365. style="width: 100%; height: 100%; position: relative"
  366. >
  367. <view class="ctoples">图片</view>
  368. <image
  369. style="width: 100%; height: 100%"
  370. :src="$method.splitImgHost(form[item.fieldKey])"
  371. mode=""
  372. ></image>
  373. </view>
  374. </view>
  375. </u-form-item>
  376. </view>
  377. <u-form-item
  378. v-if="item.inputType == 4"
  379. :key="index"
  380. :label="item.fieldName"
  381. :required="item.required"
  382. :label-width="auto"
  383. :prop="item.required ? item.fieldKey : ''"
  384. label-position="top"
  385. >
  386. <text
  387. style="
  388. color: #007aff;
  389. position: absolute;
  390. top: 20rpx;
  391. left: 180rpx;
  392. text-decoration: underline;
  393. "
  394. @click="downDocx(item.url)"
  395. >点击下载</text
  396. >
  397. <view class="dis_stys"
  398. ><text style="color: #999999"
  399. >下载承诺书进行填写并签名盖章后上传(≤2M)</text
  400. ></view
  401. >
  402. <image
  403. v-if="!form[item.fieldKey]"
  404. style="width: 169rpx; height: 169rpx"
  405. @click="getChast"
  406. src="@/static/info_4.png"
  407. ></image>
  408. <view class="quzw" v-if="form[item.fieldKey]">
  409. <view
  410. v-if="
  411. form[item.fieldKey].split('.').splice(-1)[0] == 'docx' ||
  412. form[item.fieldKey].split('.').splice(-1)[0] == 'doc'
  413. "
  414. class="borsrs"
  415. >
  416. <image
  417. src="@/static/icon/jy_icon.png"
  418. style="width: 168rpx; height: 168rpx"
  419. ></image>
  420. <text>{{ titleName }}</text>
  421. </view>
  422. <image
  423. v-else
  424. :src="$method.splitImgHost(form[item.fieldKey])"
  425. style="width: 100%; height: 100%"
  426. mode="aspectFit"
  427. @click="seePhotos(form[item.fieldKey])"
  428. ></image>
  429. <u-icon
  430. name="close-circle-fill"
  431. color="red"
  432. size="44"
  433. class="optionsAbs"
  434. @click="clearWord"
  435. ></u-icon>
  436. </view>
  437. </u-form-item>
  438. </template>
  439. </u-form>
  440. </view>
  441. <view @click="submits" class="submit_btn">提交资料</view>
  442. </view>
  443. <u-popup
  444. class="modal"
  445. catchtouchmove="return"
  446. v-model="agreementModal"
  447. mode="center"
  448. border-radius="24"
  449. :mask-close-able="false"
  450. >
  451. <view class="agreement">
  452. <view class="body">
  453. <scroll-view scroll-y="true" style="height: 600rpx">
  454. <view class="content">
  455. <view
  456. >本产品(或服务)提供【{{
  457. goodsData.goodsName
  458. }}】课程的在线学习功能,为使用这些功能,我们需要使用您设备上的摄像头,并收集以下个人信息:
  459. <text v-for="(item, listIndex) in listData" :key="listIndex"
  460. >{{ item.fieldName }}、</text
  461. >
  462. <!-- 姓名、性别、身份证号码、移动电话号码、身份证照片、一寸照、证书名称/岗位、证书编号、有效期、人脸照片(每节课随机拍摄三张)、 -->
  463. 学习详细记录。</view
  464. >
  465. <view
  466. >我们会将上述信息提供至广东省建设执业注册管理中心等第三方组织使用,用于继续教育备案等。如果您拒绝,将导致这些功能无法实现,但不影响您使用本产品(或服务)的其他业务功能。</view
  467. >
  468. </view>
  469. </scroll-view>
  470. </view>
  471. <view class="footer">
  472. <view class="btn cancel" @click="refuseAgreement">取消</view>
  473. <view class="btn ok" @click="agree">同意并继续</view>
  474. </view>
  475. </view>
  476. </u-popup>
  477. <u-action-sheet
  478. :list="list"
  479. v-model="showTableDown"
  480. @click="clickIndex"
  481. ></u-action-sheet>
  482. <!--用于图片压缩的canvas画布,不在页面中展示,且id固定不可变 position: absolute; z-index: -1; left: -10000rpx;; top: -10000rpx;-->
  483. <!-- style="width: {{cw}}px; height: {{cw}}px;" -->
  484. <view class="photo_can">
  485. <canvas class="zip_canvas" canvas-id="zipCanvas"></canvas>
  486. </view>
  487. </view>
  488. </template>
  489. <script>
  490. import config from "@/common/config";
  491. import { mapGetters, mapActions } from "vuex";
  492. import Handwriting from "@/common/signature.js";
  493. import getLessLimitSizeImage from "@/common/compressPhoto.js";
  494. export default {
  495. data() {
  496. return {
  497. baseUrls: config.BASE_IMG_URL,
  498. cw: wx.getSystemInfoSync().windowWidth, //画板边长默认是屏幕宽度,正方形画布
  499. list: [
  500. {
  501. text: "上传图片",
  502. },
  503. // {
  504. // text: '上传文件'
  505. // }
  506. ],
  507. showTableDown: false,
  508. gradeId: 0,
  509. errorType: ["message"],
  510. agreementModal: false,
  511. goodsData: {},
  512. itemStyle: {
  513. marginTop: "20px",
  514. backgroundColor: "#fff",
  515. borderRadius: "24rpx",
  516. padding: "0rpx 20rpx",
  517. },
  518. isUploading: false,
  519. form: {
  520. name: "",
  521. sex: "",
  522. idcard: "",
  523. telphone: "",
  524. education: "",
  525. school: "",
  526. graduation_time: "",
  527. work_unit: "",
  528. unit_contact: "",
  529. unit_tel: "",
  530. apply_post: "",
  531. major: "",
  532. working_years: "",
  533. recent_photos: "",
  534. idcard_face_photo: "",
  535. idcard_national_photo: "",
  536. commitment_electr_signature: "",
  537. commitment_seal: "",
  538. },
  539. lineColor: "black",
  540. slideValue: 50,
  541. handwriting: "",
  542. goodsId: null,
  543. listData: [], //页面数据
  544. ast: [],
  545. fileList1: [], //个人近照
  546. fileList2: [], //人像
  547. fileList3: [], //国徽
  548. openVerify: false, // 控制是否手动验证
  549. id: null, //获取修改ID内容
  550. remark: "", //反馈文本
  551. remarkStatus: false, //是否存在审核结果反馈
  552. // nextStatus: false, //是否有下一步
  553. copyData: [], //备份数据
  554. rules: {
  555. name: [
  556. {
  557. required: true,
  558. message: "请输入姓名",
  559. trigger: ["change", "blur"],
  560. },
  561. ],
  562. sex: [
  563. {
  564. required: true,
  565. message: "请选择性别",
  566. trigger: "change",
  567. },
  568. ],
  569. idcard: [
  570. {
  571. required: true,
  572. message: "请输入身份证号",
  573. trigger: ["change", "blur"],
  574. },
  575. // {
  576. // validator: (rule, value, callback) => {
  577. // return this.$u.test.idCard(value);
  578. // },
  579. // message: '身份证号不正确',
  580. // trigger: ['change', 'blur']
  581. // }
  582. ],
  583. telphone: [
  584. {
  585. required: true,
  586. message: "请输入手机号码",
  587. trigger: ["change", "blur"],
  588. },
  589. // {
  590. // validator: (rule, value, callback) => {
  591. // var vartest = /^([0-9]{3,4}-)?[0-9]{7,8}$/;
  592. // if (this.$u.test.mobile(value) || vartest.test(value)) {
  593. // return true;
  594. // } else {
  595. // return false;
  596. // }
  597. // },
  598. // message: '手机号码不正确',
  599. // trigger: ['change', 'blur']
  600. // }
  601. ],
  602. education: [
  603. {
  604. required: true,
  605. message: "请选择学历",
  606. trigger: "change",
  607. },
  608. ],
  609. school: [
  610. {
  611. required: true,
  612. message: "请输入毕业院校",
  613. trigger: ["change", "blur"],
  614. },
  615. ],
  616. graduation_time: [
  617. {
  618. required: true,
  619. message: "请选择毕业时间",
  620. trigger: "change",
  621. },
  622. ],
  623. work_unit: [
  624. {
  625. required: true,
  626. message: "请输入工作单位",
  627. trigger: ["change", "blur"],
  628. },
  629. ],
  630. unit_contact: [
  631. {
  632. required: true,
  633. message: "请输入单位联系人",
  634. trigger: ["change", "blur"],
  635. },
  636. ],
  637. unit_tel: [
  638. {
  639. required: true,
  640. message: "请输入单位联系电话",
  641. trigger: ["change", "blur"],
  642. },
  643. {
  644. validator: (rule, value, callback) => {
  645. var vartest = /^([0-9]{3,4}-)?[0-9]{7,8}$/;
  646. var vartest1 = /^([0-9]{3,4})?[0-9]{7,8}$/;
  647. if (
  648. this.$u.test.mobile(value) ||
  649. vartest.test(value) ||
  650. vartest1.test(value)
  651. ) {
  652. return true;
  653. } else {
  654. return false;
  655. }
  656. },
  657. message: "单位联系电话不正确",
  658. trigger: ["change", "blur"],
  659. },
  660. ],
  661. apply_post: [
  662. {
  663. required: true,
  664. message: "请输入报名岗位",
  665. trigger: ["change", "blur"],
  666. },
  667. ],
  668. major: [
  669. {
  670. required: true,
  671. message: "请输入所学专业",
  672. trigger: ["change", "blur"],
  673. },
  674. ],
  675. working_years: [
  676. {
  677. required: true,
  678. message: "请选择工作年限",
  679. trigger: "change",
  680. },
  681. ],
  682. recent_photos: [
  683. {
  684. required: true,
  685. message: "请上传个人近照",
  686. trigger: ["change", "blur"],
  687. },
  688. ],
  689. idcard_face_photo: [
  690. {
  691. required: true,
  692. message: "请上传身份证人像面",
  693. trigger: ["change", "blur"],
  694. },
  695. ],
  696. idcard_national_photo: [
  697. {
  698. required: true,
  699. message: "请上传身份证国徽面",
  700. trigger: ["change", "blur"],
  701. },
  702. ],
  703. commitment_electr_signature: [
  704. {
  705. required: true,
  706. message: "请签写承诺书电子签",
  707. trigger: ["change", "blur"],
  708. },
  709. ],
  710. commitment_seal: [
  711. {
  712. required: true,
  713. message: "请上传承诺书盖章",
  714. trigger: ["change", "blur"],
  715. },
  716. ],
  717. },
  718. apply_post_disabled: false,
  719. isRequired: false,
  720. orderGoodsId: 0,
  721. veryIdCard: "",
  722. veryIdName: "",
  723. disName: false, // 姓名是否禁止输入
  724. disCard: false, // 身份证是否禁止输入
  725. auto: "180rpx",
  726. };
  727. },
  728. created() {
  729. this.$store.getters.dictObj;
  730. },
  731. async onLoad(option) {
  732. this.orderGoodsId = Number(option.orderGoodsId);
  733. this.goodsId = Number(option.id);
  734. this.gradeId = Number(option.gradeId);
  735. !this.userInfo && this.$api.refreshUserInfo();
  736. await this.getInfo();
  737. await this.getGoodsDetail();
  738. },
  739. onReady(res) {
  740. this.handwriting = new Handwriting({
  741. lineColor: this.lineColor,
  742. slideValue: this.slideValue, // 0, 25, 50, 75, 100
  743. canvasName: "handWriting",
  744. });
  745. this.$refs.uForm.setRules(this.rules);
  746. },
  747. computed: { ...mapGetters(["dictObj", "userInfo"]) },
  748. watch: {
  749. userInfo(val, oldVal) {
  750. //普通的watch监听
  751. if (val) {
  752. console.log(val, "val");
  753. this.listData.forEach((item) => {
  754. if (item.fieldKey == "idcard") {
  755. this.form.idcard = this.userInfo.idCard;
  756. console.log("监听监听111");
  757. }
  758. if (item.fieldKey == "telphone") {
  759. this.form.telphone = this.userInfo.telphone;
  760. }
  761. if (item.fieldKey == "name") {
  762. this.form.name = this.userInfo.realname;
  763. console.log("监听监听");
  764. }
  765. });
  766. }
  767. },
  768. },
  769. methods: {
  770. ...mapActions(["getUserInfo"]),
  771. inputName(event) {
  772. console.log("enevt", event, this.form.name);
  773. },
  774. clickIndex(inds) {
  775. if (inds === 0) {
  776. this.uploadImgs();
  777. }
  778. if (inds === 1) {
  779. this.uploadFieds();
  780. }
  781. },
  782. getChast() {
  783. this.showTableDown = true;
  784. },
  785. seePhotos(url) {
  786. uni.previewImage({
  787. urls: [url],
  788. });
  789. },
  790. async downDocx(url) {
  791. let self = this;
  792. var ast = this.listData.some((item) => {
  793. return item.fieldKey === "commitment_electr_signature";
  794. });
  795. if (ast) {
  796. await this.subCanvas();
  797. }
  798. let data = JSON.parse(JSON.stringify(this.form));
  799. if (data["commitment_electr_signature"]) {
  800. data.commitment_electr_signature = await this.$method.uploadFile(
  801. data.commitment_electr_signature,
  802. 0
  803. );
  804. }
  805. if (this.remarkStatus) {
  806. var arsty = {};
  807. for (let k in data) {
  808. for (let j in self.copyData) {
  809. if (k === j) {
  810. if (self.copyData[j].value === data[k]) {
  811. arsty[k] = {
  812. fieldKey: k,
  813. value: data[k],
  814. fieldName: (function () {
  815. for (let i = 0; i < self.listData.length; i++) {
  816. if (self.listData[i].fieldKey == k) {
  817. return self.listData[i].fieldName;
  818. }
  819. }
  820. })(),
  821. status: 0,
  822. };
  823. } else {
  824. arsty[k] = {
  825. fieldKey: k,
  826. value: data[k],
  827. fieldName: (function () {
  828. for (let i = 0; i < self.listData.length; i++) {
  829. if (self.listData[i].fieldKey == k) {
  830. return self.listData[i].fieldName;
  831. }
  832. }
  833. })(),
  834. status: 1,
  835. };
  836. }
  837. }
  838. }
  839. }
  840. } else {
  841. var arsty = {};
  842. for (let k in data) {
  843. arsty[k] = {
  844. fieldKey: k,
  845. value: data[k],
  846. fieldName: (function () {
  847. for (let i = 0; i < self.listData.length; i++) {
  848. if (self.listData[i].fieldKey == k) {
  849. return self.listData[i].fieldName;
  850. }
  851. }
  852. })(),
  853. status: 0,
  854. };
  855. }
  856. }
  857. console.log(arsty);
  858. this.$api
  859. .baseProfileStampV2AddWord({
  860. goodsId: this.goodsId,
  861. keyValue: JSON.stringify(arsty),
  862. })
  863. .then((res) => {
  864. uni.downloadFile({
  865. url: this.$method.splitImgHost(res.data.msg),
  866. success: (result) => {
  867. if (result.statusCode === 200) {
  868. const filePath = result.tempFilePath;
  869. console.log(this.$method.splitImgHost(res.data.msg));
  870. this.$method.showToast("下载成功");
  871. uni.saveImageToPhotosAlbum({
  872. filePath: filePath,
  873. success: function (errMsg) {
  874. uni.showToast({
  875. mask: true,
  876. title: "保存成功",
  877. });
  878. },
  879. fail: (errMsg) => {
  880. uni.showToast({
  881. mask: true,
  882. title: "保存失败",
  883. });
  884. },
  885. complete: (errMsg) => {},
  886. });
  887. }
  888. },
  889. });
  890. });
  891. },
  892. getGoodsDetail() {
  893. return new Promise((resolve) => {
  894. this.$api
  895. .orderInfo({
  896. orderGoodsId: this.orderGoodsId,
  897. })
  898. .then((res) => {
  899. this.goodsData = res.data.data;
  900. if (this.goodsData.categoryName) {
  901. this.$set(this.form, "apply_post", this.goodsData.categoryName);
  902. console.log(this.form);
  903. if (this.goodsData.categoryName) {
  904. this.apply_post_disabled = true;
  905. }
  906. }
  907. if (this.userInfo && this.userInfo.companyName) {
  908. this.$set(this.form, "work_unit", this.userInfo.companyName);
  909. }
  910. resolve();
  911. });
  912. });
  913. },
  914. uploadImgs() {
  915. uni.chooseImage({
  916. count: 1, //默认9
  917. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  918. success: (res) => {
  919. if (res.tempFiles[0].size > 2097152) {
  920. // this.$method.showToast("上传图片不得大于2M");
  921. // 需要压缩
  922. let canvasId = "zipCanvas";
  923. let imagePath = res.tempFiles[0].path; //原图的路径
  924. let limitSize = 2048; //大小限制2048kb
  925. let drawWidth = wx.getSystemInfoSync().windowWidth; //初始绘画区域是画布自身的宽度也就是屏幕宽度
  926. getLessLimitSizeImage(
  927. canvasId,
  928. imagePath,
  929. limitSize,
  930. drawWidth,
  931. async (resPath) => {
  932. //resPath就是压缩后图片的路径
  933. this.uploadImgsChild(resPath);
  934. }
  935. );
  936. return;
  937. } else {
  938. this.uploadImgsChild(res.tempFiles[0].path);
  939. }
  940. },
  941. });
  942. },
  943. uploadImgsChild(path) {
  944. var type = path.split(".").splice(-1);
  945. if (type[0] != "jpg" && type[0] != "png" && type[0] != "jpeg") {
  946. this.$method.showToast("请上传图片格式");
  947. return;
  948. }
  949. this.$set(this.form, "commitment_seal", path);
  950. this.$nextTick(() => {
  951. this.resultForm();
  952. });
  953. },
  954. uploadFieds() {
  955. var self = this;
  956. wx.chooseMessageFile({
  957. count: 1,
  958. size: 2097152,
  959. type: "file",
  960. success(res) {
  961. if (res.tempFiles[0].size > 2097152) {
  962. self.$method.showToast("上传文件不得大于2M");
  963. return;
  964. } else {
  965. var type = res.tempFiles[0].path.split(".").splice(-1);
  966. if (
  967. type[0] != "jpg" &&
  968. type[0] != "png" &&
  969. type[0] != "jpeg" &&
  970. type[0] != "docx" &&
  971. type[0] != "doc"
  972. ) {
  973. self.$method.showToast("请上传word文档或图片");
  974. return;
  975. }
  976. self.titleName = res.tempFiles[0].name;
  977. self.$set(self.form, "commitment_seal", res.tempFiles[0].path);
  978. self.$nextTick(function () {
  979. this.resultForm();
  980. });
  981. }
  982. },
  983. });
  984. },
  985. agree() {
  986. this.agreementModal = false;
  987. setTimeout(() => {
  988. this.$refs.collapse.init();
  989. }, 1000);
  990. },
  991. refuseAgreement() {
  992. uni.navigateBack({
  993. delta: 2,
  994. });
  995. },
  996. clearFun(key) {
  997. this.form[key] = "";
  998. },
  999. //清除按钮
  1000. clearWatch(key) {
  1001. if (this.form[key]) {
  1002. return true;
  1003. } else {
  1004. return false;
  1005. }
  1006. },
  1007. async uploadDatas(data) {
  1008. // console.log('sfsfg---data', data)
  1009. if (this.form.recent_photos && this.form.idcard_face_photo) {
  1010. uni.downloadFile({
  1011. url: this.$method.splitImgHost(this.form.idcard_face_photo),
  1012. success: async (res) => {
  1013. console.log(res, 999);
  1014. if (res.statusCode === 200) {
  1015. let resData = await this.faceCertificationIDCardOCR(
  1016. 1,
  1017. res.tempFilePath
  1018. );
  1019. if (!resData.data.data) {
  1020. uni.showModal({
  1021. title: "提示",
  1022. content: "身份证人像面照片异常,请重新上传",
  1023. showCancel: false,
  1024. });
  1025. this.isUploading = false;
  1026. return;
  1027. }
  1028. this.veryIdCard = resData.data.data.IdNum;
  1029. this.veryIdName = resData.data.data.IdName;
  1030. // if(this.form.idcard) {
  1031. // if(this.form.idcard != this.veryIdCard) {
  1032. // uni.showModal({
  1033. // title:'提示',
  1034. // content:'输入的身份证号和身份证人像面照片身份证号不匹配',
  1035. // showCancel:false,
  1036. // })
  1037. // this.isUploading = false;
  1038. // return;
  1039. // }
  1040. // }
  1041. uni.downloadFile({
  1042. url: this.$method.splitImgHost(this.form.recent_photos),
  1043. success: (res) => {
  1044. if (res.statusCode === 200) {
  1045. console.log("下载成功");
  1046. let fileSystem = uni.getFileSystemManager();
  1047. fileSystem.readFile({
  1048. filePath: res.tempFilePath,
  1049. encoding: "base64",
  1050. position: 0,
  1051. success: (res) => {
  1052. let base64 = "data:image/jpg;base64," + res.data;
  1053. let newdata = {
  1054. urlA: this.form.idcard_face_photo,
  1055. oneInchPhotos: base64,
  1056. };
  1057. this.$api
  1058. .faceCertificationIdCardCompareFace(newdata)
  1059. .then((res1) => {
  1060. if (res1.data.data >= 70) {
  1061. var self = this;
  1062. if (self.remarkStatus) {
  1063. var arsty = {};
  1064. for (let k in data) {
  1065. for (let j in self.copyData) {
  1066. if (k === j) {
  1067. if (self.copyData[j].value === data[k]) {
  1068. arsty[k] = {
  1069. fieldKey: k,
  1070. value: data[k],
  1071. fieldName: (function () {
  1072. for (
  1073. let i = 0;
  1074. i < self.listData.length;
  1075. i++
  1076. ) {
  1077. if (
  1078. self.listData[i].fieldKey == k
  1079. ) {
  1080. return self.listData[i]
  1081. .fieldName;
  1082. }
  1083. }
  1084. })(),
  1085. status: 0,
  1086. };
  1087. } else {
  1088. arsty[k] = {
  1089. fieldKey: k,
  1090. value: data[k],
  1091. fieldName: (function () {
  1092. for (
  1093. let i = 0;
  1094. i < self.listData.length;
  1095. i++
  1096. ) {
  1097. if (
  1098. self.listData[i].fieldKey == k
  1099. ) {
  1100. return self.listData[i]
  1101. .fieldName;
  1102. }
  1103. }
  1104. })(),
  1105. status: 1,
  1106. };
  1107. }
  1108. }
  1109. }
  1110. }
  1111. var datas = {
  1112. id: this.id,
  1113. goodsId: this.goodsId,
  1114. orderGoodsId: this.orderGoodsId,
  1115. keyValue: JSON.stringify(arsty),
  1116. };
  1117. console.log(datas, "datas0");
  1118. // this.isUploading = false;
  1119. // return;
  1120. this.$api
  1121. .editbaseprofiletp(datas)
  1122. .then((res) => {
  1123. this.isUploading = false;
  1124. if (res.data.code === 200) {
  1125. this.$method.showToast("提交成功");
  1126. this.getUserInfo();
  1127. setTimeout(() => {
  1128. console.log("延迟");
  1129. uni.navigateBack();
  1130. }, 1500);
  1131. } else {
  1132. this.$method.showToast(res.data.msg);
  1133. this.isUploading = false;
  1134. }
  1135. });
  1136. } else {
  1137. var objs = {};
  1138. for (let k in data) {
  1139. objs[k] = {
  1140. fieldKey: k,
  1141. value: data[k],
  1142. fieldName: (function () {
  1143. for (
  1144. let i = 0;
  1145. i < self.listData.length;
  1146. i++
  1147. ) {
  1148. if (self.listData[i].fieldKey == k) {
  1149. return self.listData[i].fieldName;
  1150. }
  1151. }
  1152. })(),
  1153. status: 0,
  1154. };
  1155. }
  1156. var datas = {
  1157. goodsId: this.goodsId,
  1158. profileTpId: this.goodsId,
  1159. orderGoodsId: this.orderGoodsId,
  1160. keyValue: JSON.stringify(objs),
  1161. };
  1162. console.log(data, "datas");
  1163. // this.isUploading = false;
  1164. // return;
  1165. this.$api
  1166. .addbaseprofiletp(datas)
  1167. .then((res) => {
  1168. this.isUploading = false;
  1169. if (res.data.code === 200) {
  1170. this.$method.showToast("提交成功");
  1171. this.getUserInfo();
  1172. setTimeout(() => {
  1173. console.log("延迟");
  1174. uni.navigateBack();
  1175. }, 1500);
  1176. } else {
  1177. this.$method.showToast(res.data.msg);
  1178. this.isUploading = false;
  1179. }
  1180. });
  1181. }
  1182. } else {
  1183. this.isUploading = false;
  1184. uni.showModal({
  1185. title: "提示",
  1186. content: "个人近照和身份证人像面照片不匹配",
  1187. showCancel: false,
  1188. });
  1189. }
  1190. });
  1191. },
  1192. fail(err) {
  1193. this.isUploading = false;
  1194. console.error(err, "err");
  1195. },
  1196. });
  1197. }
  1198. },
  1199. });
  1200. }
  1201. },
  1202. });
  1203. return;
  1204. }
  1205. var self = this;
  1206. if (self.remarkStatus) {
  1207. var arsty = {};
  1208. for (let k in data) {
  1209. for (let j in self.copyData) {
  1210. if (k === j) {
  1211. if (self.copyData[j].value === data[k]) {
  1212. arsty[k] = {
  1213. fieldKey: k,
  1214. value: data[k],
  1215. fieldName: (function () {
  1216. for (let i = 0; i < self.listData.length; i++) {
  1217. if (self.listData[i].fieldKey == k) {
  1218. return self.listData[i].fieldName;
  1219. }
  1220. }
  1221. })(),
  1222. status: 0,
  1223. };
  1224. } else {
  1225. arsty[k] = {
  1226. fieldKey: k,
  1227. value: data[k],
  1228. fieldName: (function () {
  1229. for (let i = 0; i < self.listData.length; i++) {
  1230. if (self.listData[i].fieldKey == k) {
  1231. return self.listData[i].fieldName;
  1232. }
  1233. }
  1234. })(),
  1235. status: 1,
  1236. };
  1237. }
  1238. }
  1239. }
  1240. }
  1241. console.log(arsty, "arsty");
  1242. if (Object.keys(arsty).length == 0) {
  1243. uni.showModal({
  1244. title: "提示",
  1245. content: "数据错误,请联系管理员",
  1246. });
  1247. this.isUploading = false;
  1248. return;
  1249. }
  1250. var datas = {
  1251. id: this.id,
  1252. goodsId: this.goodsId,
  1253. orderGoodsId: this.orderGoodsId,
  1254. keyValue: JSON.stringify(arsty),
  1255. };
  1256. console.log(datas, "datas1");
  1257. // return;
  1258. this.$api.editbaseprofiletp(datas).then((res) => {
  1259. this.isUploading = false;
  1260. if (res.data.code === 200) {
  1261. this.$method.showToast("提交成功");
  1262. this.getUserInfo();
  1263. setTimeout(() => {
  1264. console.log("延迟");
  1265. uni.navigateBack();
  1266. }, 1500);
  1267. } else {
  1268. this.$method.showToast(res.data.msg);
  1269. this.isUploading = false;
  1270. }
  1271. });
  1272. } else {
  1273. var objs = {};
  1274. for (let k in data) {
  1275. objs[k] = {
  1276. fieldKey: k,
  1277. value: data[k],
  1278. fieldName: (function () {
  1279. for (let i = 0; i < self.listData.length; i++) {
  1280. if (self.listData[i].fieldKey == k) {
  1281. return self.listData[i].fieldName;
  1282. }
  1283. }
  1284. })(),
  1285. status: 0,
  1286. };
  1287. }
  1288. var datas = {
  1289. goodsId: this.goodsId,
  1290. profileTpId: this.goodsId,
  1291. orderGoodsId: this.orderGoodsId,
  1292. keyValue: JSON.stringify(objs),
  1293. };
  1294. console.log(datas, "datas2");
  1295. // this.isUploading = false;
  1296. // return;
  1297. this.$api
  1298. .addbaseprofiletp(datas)
  1299. .then((res) => {
  1300. this.isUploading = false;
  1301. if (res.data.code === 200) {
  1302. this.$method.showToast("提交成功");
  1303. this.getUserInfo();
  1304. setTimeout(() => {
  1305. console.log("延迟");
  1306. uni.navigateBack();
  1307. }, 1500);
  1308. } else {
  1309. this.$method.showToast(res.data.msg);
  1310. this.isUploading = false;
  1311. }
  1312. })
  1313. .catch((err) => {});
  1314. }
  1315. },
  1316. clearWord() {
  1317. this.$set(this.form, "commitment_seal", "");
  1318. this.titleName = "";
  1319. },
  1320. //提交表单
  1321. async submitApi() {
  1322. var data = JSON.parse(JSON.stringify(this.form));
  1323. if (data["sex"]) {
  1324. data.sex = this.dictObj["sys_user_sex"][Number(data.sex)];
  1325. }
  1326. if (data["education"]) {
  1327. data.education = this.dictObj["edu_level"][Number(data.education)];
  1328. }
  1329. if (data["working_years"]) {
  1330. data.working_years =
  1331. this.dictObj["working_years"][Number(data.working_years)];
  1332. }
  1333. if (data["recent_photos"]) {
  1334. data.recent_photos = await this.$method.uploadFile(
  1335. data.recent_photos,
  1336. 0
  1337. );
  1338. }
  1339. if (data["idcard_face_photo"]) {
  1340. console.log("idcard_face_photo");
  1341. data.idcard_face_photo = await this.$method.uploadFile(
  1342. data.idcard_face_photo,
  1343. 0
  1344. );
  1345. }
  1346. if (data["idcard_national_photo"]) {
  1347. data.idcard_national_photo = await this.$method.uploadFile(
  1348. data.idcard_national_photo,
  1349. 0
  1350. );
  1351. }
  1352. if (data["commitment_electr_signature"]) {
  1353. data.commitment_electr_signature = await this.$method.uploadFile(
  1354. data.commitment_electr_signature,
  1355. 0
  1356. );
  1357. }
  1358. if (data["commitment_seal"]) {
  1359. data.commitment_seal = await this.$method.uploadFile(
  1360. data.commitment_seal,
  1361. 0
  1362. );
  1363. }
  1364. console.log(data,789)
  1365. this.uploadDatas(data);
  1366. },
  1367. //验证表单
  1368. resultForm(int) {
  1369. console.log(this.openVerify, "openVerify");
  1370. console.log(this.isRequired, "isRequired");
  1371. if (this.openVerify) {
  1372. if (this.isRequired) {
  1373. this.submitApi();
  1374. } else {
  1375. if (int === 1) {
  1376. this.errorType = ["toast"];
  1377. } else {
  1378. this.errorType = ["message"];
  1379. }
  1380. this.$nextTick(() => {
  1381. this.$refs.uForm.validate((valid) => {
  1382. if (valid) {
  1383. if (int === 1) {
  1384. this.submitApi();
  1385. }
  1386. } else {
  1387. this.isUploading = false;
  1388. this.errorType = ["message"];
  1389. console.log(this.form);
  1390. console.log("验证失败");
  1391. }
  1392. });
  1393. });
  1394. }
  1395. }
  1396. },
  1397. async submits() {
  1398. if (this.isUploading) {
  1399. return;
  1400. }
  1401. this.isUploading = true;
  1402. var ast = this.listData.some((item) => {
  1403. return item.fieldKey === "commitment_electr_signature";
  1404. });
  1405. if (ast) {
  1406. await this.subCanvas();
  1407. }
  1408. this.openVerify = true;
  1409. this.resultForm(1);
  1410. },
  1411. faceCertificationIDCardOCR(cardSide, url) {
  1412. return new Promise((resolve) => {
  1413. let fileSystem = uni.getFileSystemManager();
  1414. fileSystem.readFile({
  1415. filePath: url,
  1416. encoding: "base64",
  1417. position: 0,
  1418. success: (res) => {
  1419. let base64 = "data:image/jpg;base64," + res.data;
  1420. this.$api
  1421. .faceCertificationIDCardOCR({
  1422. cardSide: cardSide, //1人像 2 国徽
  1423. cardImageBase64: base64,
  1424. gradeId: this.gradeId,
  1425. })
  1426. .then((res) => {
  1427. resolve(res);
  1428. });
  1429. },
  1430. fail(err) {
  1431. console.error(err, "err");
  1432. },
  1433. });
  1434. });
  1435. },
  1436. h5FaceCertificationIDCardOCR(cardSide, file) {
  1437. return new Promise((resolve) => {
  1438. var reader = new FileReader();
  1439. // 将文件加载进入
  1440. reader.readAsDataURL(file);
  1441. reader.onload = (e) => {
  1442. // 转换完成输出该文件base64编码
  1443. let base64 = e.target.result;
  1444. this.$api
  1445. .faceCertificationIDCardOCR({
  1446. cardSide: cardSide, //1人像 2 国徽
  1447. cardImageBase64: base64,
  1448. gradeId: this.gradeId,
  1449. })
  1450. .then((res) => {
  1451. resolve(res);
  1452. });
  1453. };
  1454. });
  1455. },
  1456. async changePhotoListHeader(lists, key) {
  1457. const map = {
  1458. recent_photos: 1,
  1459. idcard_face_photo: 2,
  1460. idcard_national_photo: 3,
  1461. };
  1462. const index = map[key];
  1463. if (lists.length) {
  1464. this["fileList" + index] = lists;
  1465. // #ifdef MP-WEIXIN
  1466. const isJPG =
  1467. lists[0].url.indexOf("//tmp") !== -1 ||
  1468. lists[0].url.indexOf("//temp") !== -1;
  1469. // #endif
  1470. // #ifdef H5
  1471. const isJPG =
  1472. lists[0].file.type === "image/jpeg" ||
  1473. lists[0].file.type === "image/png" ||
  1474. lists[0].file.type === "image/jpg";
  1475. // #endif
  1476. if (isJPG) {
  1477. let size = lists[0].file.size;
  1478. if (size < 2 * 1024 * 1024) {
  1479. if (index == 1) {
  1480. let url = lists[0].url;
  1481. // #ifdef MP-WEIXIN
  1482. url = await this.$method.imageInfos(url);
  1483. // #endif
  1484. // #ifdef H5
  1485. url = await this.$method.uploadFile(url, 0);
  1486. // #endif
  1487. this.$set(this.form, "recent_photos", url);
  1488. } else {
  1489. // #ifdef MP-WEIXIN
  1490. let url = lists[0].url;
  1491. // #endif
  1492. // #ifdef H5
  1493. let url = lists[0].file;
  1494. // #endif
  1495. this.$refs[key][0].remove(0);
  1496. let titleMsg =
  1497. "请上传正确清晰的身份证" +
  1498. (index == 2 ? "人像" : "国徽") +
  1499. "面照片";
  1500. this.checkIdCard(index - 1, url, titleMsg, key);
  1501. }
  1502. } else {
  1503. uni.showModal({
  1504. title: "提示",
  1505. content: "上传图片大小不能超过 2MB!",
  1506. showCancel: false,
  1507. });
  1508. return;
  1509. }
  1510. }
  1511. } else {
  1512. this.fileList3 = [];
  1513. this.$set(this.form, "idcard_national_photo", "");
  1514. }
  1515. this.openVerify = false;
  1516. this.$nextTick(function () {
  1517. this.resultForm();
  1518. });
  1519. },
  1520. async changePhotoListHeader1(lists, name) {
  1521. if (lists.length) {
  1522. this.fileList1 = lists;
  1523. // console.log(lists, "lists1");
  1524. if (
  1525. lists[0].url.indexOf("//tmp") !== -1 ||
  1526. lists[0].url.indexOf("//temp") !== -1
  1527. ) {
  1528. if (lists[0].file.size < 2 * 1024 * 1024) {
  1529. // 以前的
  1530. this.$set(
  1531. this.form,
  1532. "recent_photos",
  1533. await this.$method.imageInfos(lists[0].url)
  1534. );
  1535. } else {
  1536. // 需要压缩
  1537. let canvasId = "zipCanvas";
  1538. let imagePath = lists[0].url; //原图的路径
  1539. let limitSize = 2048; //大小限制2048kb
  1540. let drawWidth = wx.getSystemInfoSync().windowWidth; //初始绘画区域是画布自身的宽度也就是屏幕宽度
  1541. getLessLimitSizeImage(
  1542. canvasId,
  1543. imagePath,
  1544. limitSize,
  1545. drawWidth,
  1546. async (resPath) => {
  1547. //resPath就是压缩后图片的路径
  1548. this.$set(
  1549. this.form,
  1550. "recent_photos",
  1551. await this.$method.imageInfos(resPath)
  1552. );
  1553. }
  1554. );
  1555. }
  1556. }
  1557. } else {
  1558. this.fileList1 = [];
  1559. this.$set(this.form, "recent_photos", "");
  1560. }
  1561. this.openVerify = false;
  1562. this.$nextTick(function () {
  1563. this.resultForm();
  1564. });
  1565. },
  1566. async changePhotoListHeader2(lists, name) {
  1567. // console.log('身份证照片zhengmian:', lists, this.$refs.idcard_face_photo)
  1568. if (lists.length) {
  1569. this.fileList2 = lists;
  1570. if (
  1571. lists[0].url.indexOf("//tmp") !== -1 ||
  1572. lists[0].url.indexOf("//temp") !== -1
  1573. ) {
  1574. let url = lists[0].url;
  1575. let size = lists[0].file.size;
  1576. this.$refs.idcard_face_photo[0].remove(0);
  1577. // console.log('url', url, size)
  1578. let titleMsg = "请上传正确清晰的身份证人像面照片";
  1579. if (size < 2 * 1024 * 1024) {
  1580. this.checkIdCard(1, url, titleMsg, "idcard_face_photo");
  1581. } else {
  1582. // 需要压缩
  1583. let canvasId = "zipCanvas";
  1584. let imagePath = url; //原图的路径
  1585. let limitSize = 2048; //大小限制2048kb
  1586. let drawWidth = wx.getSystemInfoSync().windowWidth; //初始绘画区域是画布自身的宽度也就是屏幕宽度
  1587. getLessLimitSizeImage(
  1588. canvasId,
  1589. imagePath,
  1590. limitSize,
  1591. drawWidth,
  1592. async (resPath) => {
  1593. //resPath就是压缩后图片的路径
  1594. this.checkIdCard(1, resPath, titleMsg, "idcard_face_photo");
  1595. }
  1596. );
  1597. }
  1598. // uni.compressImage({
  1599. // src: url,
  1600. // quality: 75,
  1601. // width: "50%",
  1602. // height: "50%",
  1603. // success: async (rest) => {
  1604. // let res = await this.faceCertificationIDCardOCR(
  1605. // 1,
  1606. // rest.tempFilePath
  1607. // );
  1608. // if (res.data.code == 500) {
  1609. // uni.showToast({
  1610. // icon: "none",
  1611. // title: "请上传正确清晰的身份证人像面照片",
  1612. // });
  1613. // return;
  1614. // }
  1615. // this.$refs.idcard_face_photo[0].lists = [
  1616. // {
  1617. // url: this.$method.splitImgHost(res.data.data.IdImgPath),
  1618. // },
  1619. // ];
  1620. // this.$set(
  1621. // this.form,
  1622. // "idcard_face_photo",
  1623. // res.data.data.IdImgPath
  1624. // );
  1625. // console.log(this.form, "idcard_face_photo");
  1626. // },
  1627. // });
  1628. }
  1629. } else {
  1630. this.fileList2 = [];
  1631. this.$set(this.form, "idcard_face_photo", "");
  1632. }
  1633. this.openVerify = false;
  1634. this.$nextTick(function () {
  1635. this.resultForm();
  1636. });
  1637. },
  1638. async changePhotoListHeader3(lists, name) {
  1639. if (lists.length) {
  1640. this.fileList3 = lists;
  1641. // #ifdef MP-WEIXIN
  1642. const isJPG =
  1643. lists[0].url.indexOf("//tmp") !== -1 ||
  1644. lists[0].url.indexOf("//temp") !== -1;
  1645. // #endif
  1646. // #ifdef H5
  1647. const isJPG =
  1648. lists[0].file.type === "image/jpeg" ||
  1649. lists[0].file.type === "image/png" ||
  1650. lists[0].file.type === "image/jpg";
  1651. // #endif
  1652. if (isJPG) {
  1653. console.log("//tem", lists[0]);
  1654. // #ifdef MP-WEIXIN
  1655. let url = lists[0].url;
  1656. // #endif
  1657. // #ifdef H5
  1658. let url = lists[0].file;
  1659. // #endif
  1660. let size = lists[0].file.size;
  1661. this.$refs.idcard_national_photo[0].remove(0);
  1662. let titleMsg = "请上传正确清晰的身份证国徽面照片";
  1663. if (size < 2 * 1024 * 1024) {
  1664. this.checkIdCard(2, url, titleMsg, "idcard_national_photo");
  1665. } else {
  1666. uni.showModal({
  1667. title: "提示",
  1668. content: "上传图片大小不能超过 2MB!",
  1669. showCancel: false,
  1670. });
  1671. return;
  1672. // 需要压缩
  1673. let canvasId = "zipCanvas";
  1674. let imagePath = url; //原图的路径
  1675. let limitSize = 2048; //大小限制2048kb
  1676. let drawWidth = wx.getSystemInfoSync().windowWidth; //初始绘画区域是画布自身的宽度也就是屏幕宽度
  1677. getLessLimitSizeImage(
  1678. canvasId,
  1679. imagePath,
  1680. limitSize,
  1681. drawWidth,
  1682. async (resPath) => {
  1683. //resPath就是压缩后图片的路径
  1684. this.checkIdCard(2, resPath, titleMsg, "idcard_national_photo");
  1685. }
  1686. );
  1687. }
  1688. }
  1689. } else {
  1690. this.fileList3 = [];
  1691. this.$set(this.form, "idcard_national_photo", "");
  1692. }
  1693. this.openVerify = false;
  1694. this.$nextTick(function () {
  1695. this.resultForm();
  1696. });
  1697. },
  1698. async checkIdCard(cardSide, url, titleMsg, paramType) {
  1699. // #ifdef MP-WEIXIN
  1700. let res = await this.faceCertificationIDCardOCR(cardSide, url);
  1701. // #endif
  1702. // #ifdef H5
  1703. let res = await this.h5FaceCertificationIDCardOCR(cardSide, url);
  1704. // #endif
  1705. if (res.data.code == 500) {
  1706. uni.showToast({
  1707. icon: "none",
  1708. title: titleMsg,
  1709. });
  1710. return;
  1711. }
  1712. let { IdName, IdNum } = res.data.data;
  1713. if (IdName != this.form.name || IdNum != this.form.idcard) {
  1714. // uni.showModal({
  1715. // content:
  1716. // IdName != this.form.name
  1717. // ? "输入的姓名和身份证人像面照片姓名不匹配,请联系客服"
  1718. // : "输入的身份证号和身份证人像面照片身份证号不匹配,请联系客服",
  1719. // showCancel: false,
  1720. // success: (resultst) => {
  1721. // if (resultst.confirm) {
  1722. // uni.navigateBack();
  1723. // }
  1724. // },
  1725. // });
  1726. // return;
  1727. }
  1728. this.$refs[paramType][0].lists = [
  1729. {
  1730. url: this.$method.splitImgHost(res.data.data.IdImgPath),
  1731. },
  1732. ];
  1733. this.$set(this.form, paramType, res.data.data.IdImgPath);
  1734. // console.log(this.form[paramType], '《===',paramType);
  1735. },
  1736. getTimes(key) {
  1737. if (this.form[key]) {
  1738. return this.form[key];
  1739. } else {
  1740. return "请选择时间";
  1741. }
  1742. },
  1743. getarrays(key) {
  1744. if (key === "sex") {
  1745. return this.dictObj["sys_user_sex"];
  1746. }
  1747. if (key === "education") {
  1748. return this.dictObj["edu_level"];
  1749. }
  1750. if (key === "working_years") {
  1751. return this.dictObj["working_years"];
  1752. }
  1753. },
  1754. returnName(key) {
  1755. if (key === "sex") {
  1756. if (this.form[key]) {
  1757. return this.dictObj["sys_user_sex"][Number(this.form[key])];
  1758. } else {
  1759. return "请选择性别";
  1760. }
  1761. }
  1762. if (key === "education") {
  1763. if (this.form[key]) {
  1764. return this.dictObj["edu_level"][Number(this.form[key])];
  1765. } else {
  1766. return "请选择学历";
  1767. }
  1768. }
  1769. if (key === "working_years") {
  1770. if (this.form[key]) {
  1771. return this.dictObj["working_years"][Number(this.form[key])];
  1772. } else {
  1773. return "请选择工作年限";
  1774. }
  1775. }
  1776. },
  1777. /**
  1778. * getbaseprofiletpgetInfo接口返回值result.data.data不存在的话说明是第一次填写资料
  1779. */
  1780. getInfo() {
  1781. console.log("getInfo", this.userInfo);
  1782. return new Promise((resolve) => {
  1783. var self = this;
  1784. this.$api.getbaseprofiletpId(this.goodsId).then((res) => {
  1785. self.listData = JSON.parse(res.data.data.keyValue);
  1786. var ast = JSON.parse(res.data.data.keyValue2);
  1787. self.listData = [...self.listData, ...ast];
  1788. console.log(self.listData, "listData");
  1789. self.listData.forEach((item) => {
  1790. if (item.fieldKey == "idcard") {
  1791. console.log(this.userInfo.idCard, "this.userInfo.idCard");
  1792. this.form.idcard = this.userInfo.idCard;
  1793. this.disCard = this.form.idcard ? true : false;
  1794. console.log(this.form.idcard);
  1795. }
  1796. if (item.fieldKey == "telphone") {
  1797. console.log(this.userInfo.telphone, "this.userInfo.telphone");
  1798. this.form.telphone = this.userInfo.telphone;
  1799. console.log(this.form.telphone);
  1800. }
  1801. if (item.fieldKey == "name") {
  1802. console.log(this.userInfo.realname, "this.userInfo.realname");
  1803. this.form.name = this.userInfo.realname;
  1804. this.disName = this.form.name ? true : false;
  1805. console.log("this.disName", this.form.name, this.disName);
  1806. }
  1807. });
  1808. self.isRequired = self.listData.every((ims) => {
  1809. return ims.required === false;
  1810. });
  1811. console.log(self.isRequired, "self.isRequired ");
  1812. this.$nextTick(() => {
  1813. // this.agreementModal = true;
  1814. });
  1815. self.$api
  1816. .getbaseprofiletpgetInfo({
  1817. goodsId: self.goodsId,
  1818. orderGoodsId: self.orderGoodsId,
  1819. })
  1820. .then((result) => {
  1821. if (result.data.code === 200) {
  1822. if (!result.data.data) {
  1823. self.$api
  1824. .getbaseprofiletplistProfile({ pageNum: 1, pageSize: 1 })
  1825. .then((kit) => {
  1826. if (kit.data.rows.length) {
  1827. var ajson = JSON.parse(kit.data.rows[0].keyValue);
  1828. self.listData.forEach((zyitem, zyindex) => {
  1829. for (let k in ajson) {
  1830. if (zyitem.fieldKey == k && ajson[k].value) {
  1831. if (k === "sex") {
  1832. const sexIndex =
  1833. self.dictObj["sys_user_sex"].indexOf(
  1834. ajson[k].value
  1835. ) + "";
  1836. self.$set(self.form, k, sexIndex);
  1837. } else if (k === "education") {
  1838. const sexIndex =
  1839. self.dictObj["edu_level"].indexOf(
  1840. ajson[k].value
  1841. ) + "";
  1842. self.$set(self.form, k, sexIndex);
  1843. } else if (k === "working_years") {
  1844. const sexIndex =
  1845. self.dictObj["working_years"].indexOf(
  1846. ajson[k].value
  1847. ) + "";
  1848. self.$set(self.form, k, sexIndex);
  1849. } else if (k === "recent_photos") {
  1850. self.$set(self.form, k, ajson[k].value);
  1851. if (ajson[k].value) {
  1852. self.fileList1 = [
  1853. {
  1854. url: baseUrls + ajson[k].value,
  1855. },
  1856. ];
  1857. }
  1858. } else if (k === "idcard_face_photo") {
  1859. self.$set(self.form, k, ajson[k].value);
  1860. if (ajson[k].value) {
  1861. self.fileList2 = [
  1862. {
  1863. url: baseUrls + ajson[k].value,
  1864. },
  1865. ];
  1866. }
  1867. } else if (k === "idcard_national_photo") {
  1868. self.$set(self.form, k, ajson[k].value);
  1869. if (ajson[k].value) {
  1870. self.fileList3 = [
  1871. {
  1872. url: baseUrls + ajson[k].value,
  1873. },
  1874. ];
  1875. }
  1876. } else {
  1877. if (k === "name") {
  1878. self.$set(
  1879. self.form,
  1880. k,
  1881. this.$store.state.userInfo.realname
  1882. );
  1883. } else if (k === "idcard") {
  1884. self.$set(
  1885. self.form,
  1886. k,
  1887. this.$store.state.userInfo.idCard
  1888. );
  1889. } else if (k === "telphone") {
  1890. self.$set(
  1891. self.form,
  1892. k,
  1893. this.$store.state.userInfo.telphone
  1894. );
  1895. } else if (
  1896. k !== "commitment_electr_signature"
  1897. ) {
  1898. self.$set(self.form, k, ajson[k].value);
  1899. }
  1900. }
  1901. }
  1902. }
  1903. });
  1904. resolve();
  1905. } else {
  1906. resolve();
  1907. }
  1908. });
  1909. }
  1910. console.log(result.data.data, "result.data.data");
  1911. if (result.data.data && result.data.data.status === 3) {
  1912. self.remark = result.data.data.text;
  1913. self.remarkStatus = true;
  1914. self.id = result.data.data.id;
  1915. console.log(result.data.data, "result.data.data");
  1916. var arrays = JSON.parse(result.data.data.keyValue);
  1917. // var arrays1 = JSON.parse(result.data.data.keyValue2);
  1918. self.copyData = JSON.parse(JSON.stringify(arrays));
  1919. for (let k in arrays) {
  1920. if (k === "sex") {
  1921. if (arrays[k].value) {
  1922. const sexIndex =
  1923. self.dictObj["sys_user_sex"].indexOf(
  1924. arrays[k].value
  1925. ) + "";
  1926. self.$set(self.form, k, sexIndex);
  1927. }
  1928. } else if (k === "education") {
  1929. if (arrays[k].value) {
  1930. const sexIndex =
  1931. self.dictObj["edu_level"].indexOf(arrays[k].value) +
  1932. "";
  1933. self.$set(self.form, k, sexIndex);
  1934. }
  1935. } else if (k === "working_years") {
  1936. if (arrays[k].value) {
  1937. const sexIndex =
  1938. self.dictObj["working_years"].indexOf(
  1939. arrays[k].value
  1940. ) + "";
  1941. self.$set(self.form, k, sexIndex);
  1942. }
  1943. } else if (k === "recent_photos") {
  1944. self.$set(self.form, k, arrays[k].value);
  1945. if (arrays[k].value) {
  1946. self.fileList1 = [{ url: baseUrls + arrays[k].value }];
  1947. }
  1948. } else if (k === "idcard_face_photo") {
  1949. self.$set(self.form, k, arrays[k].value);
  1950. if (arrays[k].value) {
  1951. self.fileList2 = [{ url: baseUrls + arrays[k].value }];
  1952. }
  1953. } else if (k === "idcard_national_photo") {
  1954. self.$set(self.form, k, arrays[k].value);
  1955. if (arrays[k].value) {
  1956. self.fileList3 = [{ url: baseUrls + arrays[k].value }];
  1957. }
  1958. } else if (k === "name") {
  1959. self.$set(
  1960. self.form,
  1961. k,
  1962. this.$store.state.userInfo.realname
  1963. );
  1964. } else if (k === "idcard") {
  1965. self.$set(
  1966. self.form,
  1967. k,
  1968. this.$store.state.userInfo.idCard
  1969. );
  1970. } else if (k === "telphone") {
  1971. self.$set(
  1972. self.form,
  1973. k,
  1974. this.$store.state.userInfo.telphone
  1975. );
  1976. } else {
  1977. self.$set(self.form, k, arrays[k].value);
  1978. }
  1979. }
  1980. resolve();
  1981. } else if (
  1982. result.data.data &&
  1983. (result.data.data.status === 1 ||
  1984. result.data.data.status === 2)
  1985. ) {
  1986. uni.showModal({
  1987. showCancel: false,
  1988. content:
  1989. result.data.data.status === 1
  1990. ? "该商品审核资料已通过,不可重复提交资料"
  1991. : result.data.data.status === 2
  1992. ? "该商品审核资料处于待审核状态,不可重复提交资料"
  1993. : "请联系管理员",
  1994. success: function (k) {
  1995. if (k.confirm) {
  1996. uni.navigateBack();
  1997. }
  1998. },
  1999. });
  2000. }
  2001. }
  2002. });
  2003. });
  2004. });
  2005. },
  2006. bindPickerChange(key, e) {
  2007. this.$set(this.form, key, e.detail.value + "");
  2008. this.openVerify = false;
  2009. this.$nextTick(function () {
  2010. this.resultForm();
  2011. });
  2012. },
  2013. bindDateChange(key, e) {
  2014. this.form[key] = e.detail.value;
  2015. },
  2016. retDraw() {
  2017. this.handwriting.retDraw();
  2018. this.$set(this.form, "commitment_electr_signature", "");
  2019. this.openVerify = false;
  2020. this.$nextTick(function () {
  2021. this.resultForm();
  2022. });
  2023. },
  2024. uploadScaleStart(event) {
  2025. this.handwriting.uploadScaleStart(event);
  2026. },
  2027. uploadScaleMove(event) {
  2028. this.handwriting.uploadScaleMove(event);
  2029. },
  2030. uploadScaleEnd(event) {
  2031. this.handwriting.uploadScaleEnd(event);
  2032. },
  2033. subCanvas() {
  2034. return new Promise((resolve, reject) => {
  2035. var self = this;
  2036. console.log(self.form, "self.form");
  2037. if (self.form.commitment_electr_signature) {
  2038. resolve();
  2039. return;
  2040. }
  2041. self.handwriting
  2042. .saveCanvas()
  2043. .then((res) => {
  2044. if (this.handwriting.linePrack.length) {
  2045. this.$set(this.form, "commitment_electr_signature", res);
  2046. }
  2047. resolve(res);
  2048. })
  2049. .catch((err) => {
  2050. uni.showToast({
  2051. title: "签名上传失败",
  2052. icon: "error",
  2053. });
  2054. this.isUploading = false;
  2055. });
  2056. });
  2057. },
  2058. },
  2059. };
  2060. </script>
  2061. <style>
  2062. page {
  2063. background: #eaeef1;
  2064. }
  2065. </style>
  2066. <style scope lang="scss">
  2067. .infos {
  2068. position: relative;
  2069. top: 0rpx;
  2070. left: 0rpx;
  2071. .photo_can {
  2072. width: 100%;
  2073. height: 100%;
  2074. position: absolute;
  2075. z-index: -1;
  2076. left: -10000rpx;
  2077. top: -10000rpx;
  2078. }
  2079. .zip_canvas {
  2080. width: 100%;
  2081. height: 600rpx;
  2082. border: 2rpx solid #333;
  2083. }
  2084. }
  2085. .ctoples {
  2086. position: absolute;
  2087. top: 0;
  2088. left: 0;
  2089. padding: 2rpx 23rpx;
  2090. display: inline-block;
  2091. background-color: rgba(0, 0, 0, 0.4);
  2092. font-size: 28rpx;
  2093. color: #fff;
  2094. border-bottom-right-radius: 24rpx;
  2095. }
  2096. .quzw {
  2097. width: 638rpx;
  2098. height: 638rpx;
  2099. position: relative;
  2100. border: 2rpx solid #eee;
  2101. border-radius: 8rpx;
  2102. }
  2103. .handWriting {
  2104. width: 100%;
  2105. height: 100%;
  2106. }
  2107. /deep/ .u-collapse-title {
  2108. color: #ff3b30;
  2109. font-size: 24rpx;
  2110. }
  2111. // /deep/ .u-input {
  2112. // text-align: right !important;
  2113. // }
  2114. .picker {
  2115. flex: 1;
  2116. }
  2117. /deep/ .u-form-item--right {
  2118. .u-input__input {
  2119. text-align: right;
  2120. }
  2121. uni-picker {
  2122. flex: 1;
  2123. }
  2124. }
  2125. .collapse-item {
  2126. color: #666;
  2127. font-size: 24rpx;
  2128. padding-bottom: 30rpx;
  2129. }
  2130. .dis_stys {
  2131. display: flex;
  2132. align-items: center;
  2133. justify-content: space-between;
  2134. }
  2135. .handCenter {
  2136. background: #f7f7f7;
  2137. border: 2rpx solid #eeeeee;
  2138. border-radius: 24rpx;
  2139. width: 100%;
  2140. height: 400rpx;
  2141. overflow: hidden;
  2142. }
  2143. .headerSDels {
  2144. height: 58rpx;
  2145. padding: 0rpx 24rpx;
  2146. font-weight: bold;
  2147. display: flex;
  2148. align-items: center;
  2149. flex-direction: row-reverse;
  2150. }
  2151. .listBox {
  2152. margin: 24rpx 32rpx 0rpx;
  2153. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  2154. border-radius: 32rpx;
  2155. background-color: #fff;
  2156. overflow: hidden;
  2157. }
  2158. .imgBoxs {
  2159. width: 156rpx;
  2160. height: 203rpx;
  2161. }
  2162. .imgBoxs2 {
  2163. width: 171rpx;
  2164. height: 108rpx;
  2165. }
  2166. .submit_btn {
  2167. width: 526rpx;
  2168. height: 80rpx;
  2169. background: #007aff;
  2170. border-radius: 40rpx;
  2171. text-align: center;
  2172. line-height: 80rpx;
  2173. color: #ffffff;
  2174. margin: 30rpx auto;
  2175. }
  2176. .picker {
  2177. text-align: right;
  2178. }
  2179. input {
  2180. text-align: right;
  2181. }
  2182. .bodyBox {
  2183. background: #ffffff;
  2184. border-radius: 24rpx;
  2185. width: 100%;
  2186. }
  2187. .topBox {
  2188. height: 80rpx;
  2189. background: #ffffff;
  2190. border-radius: 24rpx;
  2191. width: 100%;
  2192. display: flex;
  2193. justify-content: space-between;
  2194. line-height: 80rpx;
  2195. padding: 0 20rpx;
  2196. font-size: 24rpx;
  2197. }
  2198. .modal {
  2199. .agreement {
  2200. width: 640rpx;
  2201. height: 740rpx;
  2202. background: #ffffff;
  2203. display: flex;
  2204. flex-direction: column;
  2205. .body {
  2206. flex: 1;
  2207. .content {
  2208. padding: 30rpx 40rpx 28rpx;
  2209. line-height: 40rpx;
  2210. font-size: 26rpx;
  2211. color: #666;
  2212. .bold {
  2213. color: #333;
  2214. font-size: 26rpx;
  2215. font-weight: bold;
  2216. }
  2217. .center {
  2218. text-align: center;
  2219. }
  2220. }
  2221. }
  2222. .footer {
  2223. height: 140rpx;
  2224. border-top: 1px solid #eeeeee;
  2225. display: flex;
  2226. align-items: center;
  2227. justify-content: center;
  2228. .btn {
  2229. margin: 0 12rpx;
  2230. width: 200rpx;
  2231. height: 80rpx;
  2232. color: #007aff;
  2233. font-size: 30rpx;
  2234. text-align: center;
  2235. line-height: 80rpx;
  2236. background: #f5f5f5;
  2237. border-radius: 40rpx 40rpx 40rpx 40rpx;
  2238. &.ok {
  2239. width: 336rpx;
  2240. height: 80rpx;
  2241. background: #007aff;
  2242. color: #fff;
  2243. }
  2244. &.close {
  2245. color: #fff;
  2246. width: 560rpx;
  2247. height: 80rpx;
  2248. background: #007aff;
  2249. border-radius: 40rpx 40rpx 40rpx 40rpx;
  2250. }
  2251. }
  2252. }
  2253. }
  2254. }
  2255. </style>