certification.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. <template>
  2. <view class="page">
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <service-widget @btnClick="btn_click"></service-widget>
  6. <view class="posi p-3 d-flex j-center">
  7. <view class="posi2">推荐关系</view>
  8. <view class="posi2 on">实名认证</view>
  9. </view>
  10. <view class="IDcardInfo p-3 mb-3" style="background-color: #FFFFFF;">
  11. <view class="cardImages d-flex j-sb">
  12. <view :class="(IdCardBefore=='')?'idCardBefore':'imageBorder'" @click="chooseImage('IdCardBefore')">
  13. <template v-if="IdCardBefore!=''">
  14. <image :src="IdCardBefore" mode="aspectFill"></image>
  15. </template>
  16. </view>
  17. <view :class="(IdCardAfter=='')?'idCardAfter':'imageBorder'" @click="chooseImage('IdCardAfter')">
  18. <template v-if="IdCardAfter!=''">
  19. <image :src="IdCardAfter" mode="aspectFill"></image>
  20. </template>
  21. </view>
  22. </view>
  23. <view class="d-flex a-center j-center"><text class="IDcardNotice main-text-color"
  24. @tap="showPopup(1)">点击查看证件上传实例</text></view>
  25. <view class="inputView d-flex">
  26. <view class="d-flex a-center">姓名</view>
  27. <view class="d-flex a-center"><input placeholder="请输入姓名" v-model="staffInfo.name" /></view>
  28. </view>
  29. <view class="inputView d-flex">
  30. <view class="d-flex a-center">性别</view>
  31. <view class="d-flex a-center" style="width: 100%;">
  32. <picker style="width: 100%;" @change="bindPickerChange($event,'sex')" :value="sexList[sexIndex]"
  33. :range="sexList">
  34. <view style="color: #999;font-size: 30upx;">{{sexList[sexIndex]}}</view>
  35. </picker>
  36. </view>
  37. <view style="color: #999;font-size: 28upx;padding-right: 20upx;flex-shrink: 0;"
  38. class="icon iconfont icon-youjiantou d-flex a-center"></view>
  39. </view>
  40. <view class="inputView d-flex">
  41. <view class="d-flex a-center">出生日期</view>
  42. <view class="d-flex a-center"><input placeholder="请输入出生日期" v-model="staffInfo.birthday" /></view>
  43. </view>
  44. <view class="inputView d-flex">
  45. <view class="d-flex a-center">户口所在地</view>
  46. <view class="d-flex a-center"><input placeholder="请输入户口所在地" type="Textarea"
  47. v-model="staffInfo.addressresident" /></view>
  48. </view>
  49. <view class="inputView d-flex">
  50. <view class="d-flex a-center">证件号码</view>
  51. <view class="d-flex a-center"><input placeholder="请输入证件号码" @blur="validateIdCard"
  52. v-model="staffInfo.identity" /> </view>
  53. </view>
  54. <view class="inputView d-flex">
  55. <view class="d-flex a-center">民族</view>
  56. <view class="d-flex a-center" style="width: 100%;">
  57. <picker style="width: 100%;" @change="bindPickerChange($event,'nations')"
  58. :value="nationsList[nationsIndex]" :range="nationsList">
  59. <view style="color: #999;font-size: 30upx;">{{nationsList[nationsIndex]}}</view>
  60. </picker>
  61. </view>
  62. <view style="color: #999;font-size: 28upx;padding-right: 20upx;flex-shrink: 0;"
  63. class="icon iconfont icon-youjiantou d-flex a-center"></view>
  64. </view>
  65. <view class="inputView d-flex">
  66. <view class="d-flex a-center">学历</view>
  67. <view class="d-flex a-center" style="width: 100%;">
  68. <picker style="width: 100%;" @change="bindPickerChange($event,'education')"
  69. :value="educationList[educationIndex]" :range="educationList">
  70. <view style="color: #999;font-size: 30upx;">{{educationList[educationIndex]}}</view>
  71. </picker>
  72. </view>
  73. <view style="color: #999;font-size: 28upx;padding-right: 20upx;flex-shrink: 0;"
  74. class="icon iconfont icon-youjiantou d-flex a-center"></view>
  75. </view>
  76. <view class="inputView d-flex">
  77. <view class="d-flex a-center">居住地址</view>
  78. <view class="d-flex a-center"><input placeholder="请输入通讯地址" v-model="staffInfo.addressnow" /> </view>
  79. </view>
  80. <view class="inputView d-flex">
  81. <view class="d-flex a-center">毕业院校</view>
  82. <view class="d-flex a-center"><input placeholder="请输入毕业院校" v-model="staffInfo.college" /> </view>
  83. </view>
  84. <view class="inputView d-flex">
  85. <view class="d-flex a-center">邮箱号</view>
  86. <view class="d-flex a-center"><input placeholder="请输入邮箱号" v-model="staffInfo.email" /> </view>
  87. </view>
  88. <view class="inputView d-flex">
  89. <view class="d-flex a-center">婚姻状况</view>
  90. <view class="d-flex a-center" style="width: 100%;">
  91. <picker style="width: 100%;" @change="bindPickerChange($event,'marrycode')"
  92. :value="marrycodeList[marrycodeIndex]" :range="marrycodeList">
  93. <view style="color: #999;font-size: 30upx;">{{marrycodeList[marrycodeIndex]}}</view>
  94. </picker>
  95. </view>
  96. <view style="color: #999;font-size: 28upx;padding-right: 20upx;flex-shrink: 0;"
  97. class="icon iconfont icon-youjiantou d-flex a-center"></view>
  98. </view>
  99. <view class="inputView d-flex">
  100. <view class="d-flex a-center">血型</view>
  101. <view class="d-flex a-center" style="width: 100%;">
  102. <picker style="width: 100%;" @change="bindPickerChange($event,'blood')"
  103. :value="bloodList[bloodIndex]" :range="bloodList">
  104. <view style="color: #999;font-size: 30upx;">{{bloodList[bloodIndex]}}</view>
  105. </picker>
  106. </view>
  107. <view style="color: #999;font-size: 28upx;padding-right: 20upx;flex-shrink: 0;"
  108. class="icon iconfont icon-youjiantou d-flex a-center"></view>
  109. </view>
  110. <view class="inputView d-flex">
  111. <view class="d-flex a-center">政治面貌</view>
  112. <view class="d-flex a-center" style="width: 100%;">
  113. <picker style="width: 100%;" @change="bindPickerChange($event,'politicalstatus')"
  114. :value="politicalstatusList[politicalstatusIndex]" :range="politicalstatusList">
  115. <view style="color: #999;font-size: 30upx;">{{politicalstatusList[politicalstatusIndex]}}</view>
  116. </picker>
  117. </view>
  118. <view style="color: #999;font-size: 28upx;padding-right: 20upx;flex-shrink: 0;"
  119. class="icon iconfont icon-youjiantou d-flex a-center"></view>
  120. </view>
  121. <view class="inputView d-flex">
  122. <view class="d-flex a-center">紧急联系人姓名</view>
  123. <view class="d-flex a-center"><input placeholder="请输入紧急联系人姓名" v-model="staffInfo.namespecial" /> </view>
  124. </view>
  125. <view class="inputView d-flex">
  126. <view class="d-flex a-center">紧急联系人电话</view>
  127. <view class="d-flex a-center"><input placeholder="请输入紧急联系人电话" v-model="staffInfo.phonespecial" />
  128. </view>
  129. </view>
  130. <view class="inputView d-flex">
  131. <view class="d-flex a-center">开户行</view>
  132. <view class="d-flex a-center"><input disabled placeholder="系统自动识别" v-model="staffInfo.bankname" />
  133. </view>
  134. </view>
  135. <view class="inputView d-flex">
  136. <view class="d-flex a-center">银行卡号</view>
  137. <view class="d-flex a-center"><input placeholder="请输入银行卡号" @blur="validateBankCard"
  138. v-model="staffInfo.accountno" /> </view>
  139. </view>
  140. </view>
  141. <z-popup v-model="popupShow" :hideOnBlur="false" type="center" width="600upx" radius="12upx">
  142. <view class="popup_title">
  143. <text @click="popupShow = false">取消</text>
  144. <view>{{(popupType=='1')?'证件上传实例':'指定开户行'}}</view>
  145. <text @click="popupShow = false">确定</text>
  146. </view>
  147. <view class="popup_content">
  148. <view class="body d-flex a-center j-center">
  149. <template v-if="popupType=='1'">
  150. <image src="/static/image/certification/certification.jpg" mode="widthFix"></image>
  151. </template>
  152. <template v-if="popupType=='2'">
  153. <view>中国建设银行(储蓄卡)</view>
  154. </template>
  155. </view>
  156. </view>
  157. </z-popup>
  158. <button class="mx-3 my-5 d-flex a-center j-center main-bg-color" type="primary" @tap="submit">提 交</button>
  159. </view>
  160. </template>
  161. <script>
  162. import {
  163. mapState,
  164. mapMutations
  165. } from "vuex"
  166. import bankBin from "@/common/bankcardinfo.js"
  167. import {
  168. pathToBase64,
  169. base64ToPath
  170. } from '@/common/image-tools-base64.js';
  171. import zPopup from "@/components/common/z-popup.vue"
  172. export default {
  173. components: {
  174. zPopup
  175. },
  176. data() {
  177. return {
  178. popupShow: false, //弹窗开启关闭
  179. popupType: 1, //表示证件上传,2表示银行卡指定开户行
  180. IdCardBefore: "", //身份证正影像
  181. IdCardAfter: "", //身份证反影像
  182. bankCard: "", //银行卡影像
  183. validateBankCardStatus: false, //银行卡验证状态
  184. //民族
  185. nationsList: ['汉族', '壮族', '满族', '回族', '苗族', '维吾尔族', '土家族', '彝族', '蒙古族', '藏族', '布依族', '侗族', '瑶族', '朝鲜族',
  186. '白族', '哈尼族', '哈萨克族', '黎族', '傣族', '畲族', '傈僳族', '仡佬族', '东乡族', '高山族', '拉祜族', '水族', '佤族', '纳西族', '羌族',
  187. '土族', '仫佬族', '锡伯族', '柯尔克孜族', '达斡尔族', '景颇族', '毛南族', '撒拉族', '布朗族', '塔吉克族', '阿昌族', '普米族', '鄂温克族',
  188. '怒族', '京族', '基诺族', '德昂族', '保安族', '俄罗斯族', '裕固族', '乌兹别克族', '门巴族', '鄂伦春族', '独龙族', '塔塔尔族', '赫哲族', '珞巴族'
  189. ],
  190. nationsIndex: 0,
  191. userLoginId: "",
  192. //学历
  193. educationList: ["小学", "初中", "高中", "专科", "本科", "硕士", "博士"],
  194. educationIndex: 0,
  195. // 婚姻状况
  196. marrycodeList: ["未婚", "已婚", "离异", "再婚"],
  197. marrycodeIndex: 0,
  198. //政治面貌
  199. politicalstatusList: ["群众", "共青团员", "中共党员"],
  200. politicalstatusIndex: 0,
  201. //血型
  202. bloodList: ["A型", "B型", "O型", "AB型"],
  203. bloodIndex: 0,
  204. sexList: ["男", "女"],
  205. sexIndex: 0,
  206. staffInfo: {
  207. id: "",
  208. name: "", //姓名
  209. sex: "", //性别
  210. birthday: "", //出生日期
  211. addressresident: "", //户口地址
  212. email: "", //邮箱
  213. identity: '', //身份证号
  214. college: "", //毕业院校
  215. accountno: '', //开户账号
  216. bankname: '', //开户行
  217. namespecial: '', //紧急联系人姓名
  218. phonespecial: '', //紧急联系人电话
  219. marrycode: '未婚', //婚姻状况
  220. blood: 'A型', //血型
  221. education: '小学', //学历
  222. addressnow: '', //居住地址
  223. nations: '汉族', //民族
  224. politicalstatus: '群众', //政治面貌
  225. }
  226. }
  227. },
  228. async onLoad() {
  229. this.staffInfo.id = this.userInfo.sysUser.id;
  230. let res = await this.$http.get('/apps/getApplicationInfo?jobNumber=' + this.staffInfo.id);
  231. if (res.code == 200) {
  232. console.log(res)
  233. this.staffInfo = res.data;
  234. }
  235. },
  236. computed: {
  237. ...mapState(["userInfo", "userCheckInfo"]),
  238. },
  239. methods: {
  240. ...mapMutations(['setUserModules']),
  241. btn_click() {
  242. uni.navigateTo({
  243. url: '/pages/chat/chat'
  244. })
  245. },
  246. // 下拉选择
  247. bindPickerChange(e, type) {
  248. this[type + 'Index'] = e.detail.value;
  249. this.staffInfo[type] = this[type + 'List'][this[type + 'Index']];
  250. },
  251. // 验证身份证号
  252. validateIdCard() {
  253. var that = this;
  254. that.staffInfo.birthday = "";
  255. that.staffInfo.sex = "";
  256. let mPattern = /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X|x)$/;
  257. let validateResult = mPattern.test(this.staffInfo.identity);
  258. if (validateResult) {
  259. let upperCaseValue = this.staffInfo.identity.toUpperCase();
  260. var such = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2];
  261. var sum = 0;
  262. for (var i = 0; i < upperCaseValue.length - 1; i++) {
  263. var product = upperCaseValue[i] * such[i];
  264. sum += product;
  265. }
  266. var result = sum % 11;
  267. var example = ['1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2'];
  268. if (upperCaseValue[17] == example[result]) {
  269. that.staffInfo.identity = upperCaseValue;
  270. that.staffInfo.birthday = upperCaseValue.substr(6, 4) + '-' + upperCaseValue.substr(10, 2) + '-' +
  271. upperCaseValue.substr(12, 2);
  272. that.staffInfo.sex = (upperCaseValue.substr(16, 1) % 2 == 0) ? '女' : '男';
  273. return true;
  274. } else {
  275. return false;
  276. }
  277. } else {
  278. return false;
  279. }
  280. },
  281. // 验证银行卡号
  282. validateBankCard() {
  283. var that = this;
  284. that.staffInfo.bankname = "";
  285. bankBin.getBankBin(this.staffInfo.accountno)
  286. .then((data) => {
  287. that.staffInfo.bankname = data.bankName;
  288. if (data.bankCode == "CCB" && data.cardType == "DC") {
  289. that.validateBankCardStatus = true;
  290. } else {
  291. that.validateBankCardStatus = false;
  292. uni.showToast({
  293. title: '请选择中国建设银行储蓄卡',
  294. icon: "none",
  295. duration: 2000
  296. });
  297. }
  298. })
  299. .catch((err) => {
  300. that.validateBankCardStatus = false;
  301. uni.showToast({
  302. title: err.split(":")[1],
  303. icon: "none"
  304. });
  305. })
  306. },
  307. async chooseImage(type) {
  308. let [err, chooseImageRes] = await uni.chooseImage({
  309. count: 1,
  310. sizeType: ['compressed']
  311. });
  312. if (!chooseImageRes) return;
  313. // 上传
  314. const isLt2M = chooseImageRes.tempFiles[0].size / 1024 / 1024 < 2;
  315. if (!isLt2M) {
  316. return uni.showToast({
  317. title: '上传图片大小不能超过 2M!',
  318. icon: "none"
  319. });
  320. }
  321. pathToBase64(chooseImageRes.tempFilePaths[0])
  322. .then(async base64 => {
  323. this[type] = base64;
  324. if (type == 'IdCardBefore') {
  325. var paramImg = {
  326. "image": base64, //图片base64
  327. "imgType": "1" //1身份证 2表示行驶证
  328. }
  329. let imgRes = await this.$http.post('/api/huanong/imgAI', paramImg, {
  330. timeout: 30000
  331. });
  332. if (!!imgRes.data.customerInfo && !!imgRes.data.customerInfo.identifyNumber) {
  333. this.staffInfo.name = imgRes.data.customerInfo.name; //姓名
  334. this.staffInfo.identity = imgRes.data.customerInfo.identifyNumber; //身份证号
  335. this.staffInfo.sex = imgRes.data.customerInfo.identifyIssuedCom; //性别
  336. this.staffInfo.birthday = imgRes.data.customerInfo.identifyValidDate; //出生日期
  337. this.staffInfo.addressresident = imgRes.data.customerInfo.addr; //户口所在地
  338. } else {
  339. return uni.showToast({
  340. title: '请上传正确的证件',
  341. icon: "none"
  342. });
  343. }
  344. }
  345. })
  346. },
  347. showPopup(type) {
  348. this.popupShow = true;
  349. this.popupType = type;
  350. },
  351. // 验证手机号码
  352. isPhone() {
  353. let mPattern = /^1[3456789]\d{9}$/;
  354. return mPattern.test(this.staffInfo.phonespecial);
  355. },
  356. // 验证邮箱
  357. isEmail() {
  358. let mPattern = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
  359. return mPattern.test(this.staffInfo.email);
  360. },
  361. // 验证名字
  362. isName() {
  363. let mPattern = /^([\u4e00-\u9fa5]{1,6}|[a-zA-Z\.\s]{1,6})$/;
  364. return mPattern.test(this.staffInfo.name);
  365. },
  366. isNamespecial() {
  367. let mPattern = /^([\u4e00-\u9fa5]{1,6}|[a-zA-Z\.\s]{1,6})$/;
  368. return mPattern.test(this.staffInfo.namespecial);
  369. },
  370. async submit() {
  371. if (this.IdCardBefore == "") {
  372. return uni.showToast({
  373. title: '请上传身份证正面影像',
  374. icon: "none"
  375. });
  376. }
  377. if (!this.isName()) {
  378. return uni.showToast({
  379. title: '请输入正确的姓名',
  380. icon: "none"
  381. });
  382. }
  383. if (!this.validateIdCard()) {
  384. return uni.showToast({
  385. title: '请输入正确的身份证号',
  386. icon: "none"
  387. });
  388. }
  389. if (this.staffInfo.addressnow == "") {
  390. return uni.showToast({
  391. title: '请输入居住地址',
  392. icon: "none"
  393. });
  394. }
  395. if (!this.isNamespecial()) {
  396. return uni.showToast({
  397. title: '请输入正确的紧急联系人姓名',
  398. icon: "none"
  399. });
  400. }
  401. if (!this.isPhone()) {
  402. return uni.showToast({
  403. title: '请输入紧急联系人电话',
  404. icon: "none"
  405. });
  406. }
  407. //验证银行卡号
  408. await this.validateBankCard();
  409. if (!this.validateBankCardStatus) {
  410. uni.showToast({
  411. title: '请输入正确的银行卡号',
  412. icon: "none"
  413. });
  414. return;
  415. }
  416. var info = {
  417. sysUser: {},
  418. esmUserInternal: {},
  419. esmUserAgent: {}
  420. };
  421. Object.assign(info.sysUser, this.userCheckInfo.sysUser)
  422. Object.assign(info.esmUserInternal, this.userCheckInfo.esmUserInternal)
  423. Object.assign(info.esmUserAgent, this.userCheckInfo.esmUserAgent)
  424. info.sysUser.name = this.staffInfo.name; //姓名
  425. info.sysUser.email = this.staffInfo.email; //邮箱
  426. info.sysUser.sex = this.staffInfo.sex; //性别
  427. info.sysUser.jobCode = "17";
  428. info.esmUserInternal.birthday = this.staffInfo.birthday; //出生日期
  429. info.esmUserInternal.isteamleader = '0';
  430. info.esmUserInternal.addressnow = this.staffInfo.addressnow; //
  431. info.esmUserInternal.addressresident = this.staffInfo.addressresident; //户口地址
  432. info.esmUserInternal.college = this.staffInfo.college; //毕业院校
  433. info.esmUserInternal.identity = this.staffInfo.identity; //
  434. info.esmUserInternal.accountno = this.staffInfo.accountno; //
  435. info.esmUserInternal.bankname = this.staffInfo.bankname; //
  436. info.esmUserInternal.namespecial = this.staffInfo.namespecial; //
  437. info.esmUserInternal.phonespecial = this.staffInfo.phonespecial; //
  438. info.esmUserInternal.marrycode = this.staffInfo.marrycode; //
  439. info.esmUserInternal.blood = this.staffInfo.blood; //
  440. info.esmUserInternal.education = this.staffInfo.education; //
  441. info.esmUserInternal.nations = this.staffInfo.nations; //
  442. info.esmUserInternal.politicalstatus = this.staffInfo.politicalstatus; //
  443. // 修改并保存人员信息
  444. let res = await this.$http.post('/apps/certification', this.staffInfo);
  445. if (res.code == 200) {
  446. //保存临时数据到本地
  447. this.setUserModules({
  448. title: 'sysUser',
  449. data: info
  450. })
  451. var params1 = {
  452. taskid: this.userInfo.sysUser.id,
  453. imgtype: "T1",
  454. imgList: [this.IdCardBefore]
  455. }
  456. await this.$http.post('/insTaskImage/save', params1);
  457. var params2 = {
  458. taskid: this.userInfo.sysUser.id,
  459. imgtype: "T2",
  460. imgList: [this.IdCardAfter]
  461. }
  462. await this.$http.post('/insTaskImage/save', params2);
  463. uni.showToast({
  464. title: '提交成功',
  465. icon: "none",
  466. duration: 1000
  467. });
  468. this.setUserModules({
  469. title: 'userStatus',
  470. data: '2'
  471. })
  472. setTimeout(() => {
  473. return uni.reLaunch({
  474. url: "/pages/index/index"
  475. })
  476. }, 500);
  477. } else if (res.code == 500) {
  478. uni.showToast({
  479. title: '已提交过实名认证',
  480. icon: "none",
  481. duration: 2000
  482. });
  483. } else {
  484. uni.showToast({
  485. title: '系统错误',
  486. icon: "none",
  487. duration: 2000
  488. });
  489. }
  490. }
  491. }
  492. }
  493. </script>
  494. <style lang="scss" scoped>
  495. @import '@/style/mixin.scss';
  496. .idCardBefore {
  497. background: rgba($themeColor, 0.1) url('/static/image/user/identy2.png') center center no-repeat;
  498. background-size: auto 70%;
  499. padding: 10upx;
  500. }
  501. .idCardAfter {
  502. background: rgba($themeColor, 0.1) url('/static/image/user/identy1.png') center center no-repeat;
  503. background-size: auto 70%;
  504. padding: 10upx;
  505. }
  506. .bankCardImage {
  507. background: rgba($themeColor, 0.1) url('/static/image/user/card.png') center center no-repeat;
  508. background-size: auto 70%;
  509. padding: 10upx;
  510. }
  511. .imageBorder {
  512. border: 2px solid #ddd;
  513. padding: 10upx;
  514. }
  515. .posi {
  516. counter-reset: num;
  517. }
  518. .posi2 {
  519. position: relative;
  520. display: inline-block;
  521. height: 40rpx;
  522. line-height: 40rpx;
  523. text-align: right;
  524. padding-right: 15rpx;
  525. width: 140rpx;
  526. border-radius: 30rpx;
  527. border: 1px solid #F0F0F0;
  528. background: #F0F0F0;
  529. margin-left: 30rpx;
  530. color: #999;
  531. font-size: 24rpx;
  532. }
  533. .posi2.on {
  534. border: 1px solid $themeColor;
  535. background: #FFFFFF;
  536. color: $themeColor;
  537. }
  538. .posi2:before {
  539. position: absolute;
  540. display: block;
  541. left: 2rpx;
  542. top: 6rpx;
  543. width: 28rpx;
  544. height: 28rpx;
  545. border-radius: 100%;
  546. background: #fff;
  547. color: #999;
  548. counter-increment: num;
  549. content: counter(num);
  550. text-align: center;
  551. line-height: 28rpx;
  552. }
  553. .posi2.on:before {
  554. background: $themeColor;
  555. color: #FFF;
  556. }
  557. .posi>view:nth-of-type(1):after {
  558. position: absolute;
  559. display: block;
  560. content: "";
  561. right: -20rpx;
  562. top: 12rpx;
  563. width: 16rpx;
  564. height: 16rpx;
  565. border-top: 1px solid #eee;
  566. border-right: 1px solid #eee;
  567. transform: rotate(45deg);
  568. }
  569. .posi>.posi2:nth-of-type(1) {
  570. margin-left: 0;
  571. }
  572. .cardImages>view {
  573. width: 310rpx;
  574. height: 260rpx;
  575. }
  576. .cardImages>view>image {
  577. width: 100%;
  578. height: 100%;
  579. }
  580. .IDcardInfo .IDcardNotice,
  581. .BankCardInfo .BankCardNotice {
  582. text-align: center;
  583. height: 110rpx;
  584. line-height: 110rpx;
  585. }
  586. .inputView {
  587. border-bottom: 1px solid #ddd;
  588. height: 90upx;
  589. }
  590. .inputView>view:nth-of-type(1) {
  591. flex-shrink: 0;
  592. font-size: 32upx;
  593. width: 135px;
  594. padding-left: 12px;
  595. color: #333;
  596. }
  597. .inputView>view:nth-of-type(2)>input {
  598. font-size: 30upx;
  599. color: #999;
  600. }
  601. .BankCardInfo {
  602. background-color: #FFFFFF;
  603. padding: 30upx;
  604. }
  605. .popup_box {
  606. width: 100%;
  607. // border-radius: 12upx;
  608. }
  609. .popup_title {
  610. display: flex;
  611. justify-content: space-between;
  612. height: 88upx;
  613. line-height: 88upx;
  614. border-bottom: 2upx solid #ebebeb;
  615. padding: 0 20upx;
  616. background-color: #FFF;
  617. }
  618. .popup_title view {
  619. font-size: 32upx;
  620. display: flex;
  621. align-items: center;
  622. }
  623. .popup_title text {
  624. width: 80upx;
  625. flex-shrink: 0;
  626. text-align: center;
  627. }
  628. .popup_title text {
  629. font-size: 28upx;
  630. color: #999;
  631. }
  632. .popup_title text:last-child {
  633. color: $themeColor;
  634. }
  635. .popup_content {
  636. padding: 40rpx 30rpx;
  637. background-color: #FFFFFF;
  638. text-align: center;
  639. }
  640. .popup_content .body {
  641. padding: 20upx 30upx;
  642. }
  643. .popup_content .body image {
  644. width: 540upx;
  645. }
  646. </style>