companyIdentityThree.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772
  1. <template>
  2. <view class="center">
  3. <view>
  4. <!-- 上传银行卡正面 -->
  5. <upload class="upload" :file-list='payeeAddressUrlList[0]' ref="upload" :action="action" :max-size="maxSize"
  6. :max-count="1" :size-type="['compressed']" @on-success="getImgUrl" @on-remove="onRemove"
  7. @on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions"
  8. :custom="uploadCustom"></upload>
  9. <!-- 上传银行卡反面 -->
  10. <upload class="upload" :file-list='payeeAddressUrlList[1]' ref="upload" :action="action" :max-size="maxSize"
  11. :max-count="1" :size-type="['compressed']" @on-success="getImgUrl1" @on-remove="onRemove"
  12. @on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions1"
  13. :custom="uploadCustom"></upload>
  14. </view>
  15. <view class="person-info">
  16. <view class="c-row b-b">
  17. <text class="tit">银行卡号</text>
  18. <view class="con-list">
  19. <input type='number' placeholder="请填写银行卡号" name="input"
  20. v-model="identityAuthenticationInfo.bankCard"></input>
  21. </view>
  22. </view>
  23. <view class="c-row b-b">
  24. <text class="tit">开户行</text>
  25. <view class="con-list">
  26. <input placeholder="请填写开户行" name="input" v-model="identityAuthenticationInfo.bankDeposit"></input>
  27. </view>
  28. </view>
  29. <view class="c-row b-b">
  30. <text class="tit">开户支行</text>
  31. <view v-if="zhihangStatus" class="con-list">
  32. <picker @change="bankChange" :value="bankIndex" :range="bankType" class="con-list">
  33. <view class="con-list">
  34. {{bankIndex>-1?bankType[bankIndex]:'请选择开户支行'}}
  35. </view>
  36. </picker>
  37. </view>
  38. <view v-else class="con-list">
  39. <input placeholder="请填写" name="input" v-model="identityAuthenticationInfo.bankDepositBranch"></input>
  40. </view>
  41. <button v-if="zhihangStatus" class='cu-btn bg-green shadow' @click="changeZhihang">填写</button>
  42. <button v-else class='cu-btn bg-green shadow' @click="changeZhihang">识别</button>
  43. </view>
  44. <view class="c-row b-b">
  45. <text class="tit_red">*</text>
  46. <text class="tit">手机号</text>
  47. <view class="con-list">
  48. <input placeholder="请填写手机号" @input='phoneinput' type="number" maxlength="11"
  49. v-model="identityAuthenticationInfo.customerPhone"></input>
  50. </view>
  51. </view>
  52. <view style='width:100%;border-bottom:1px solid #E8E9ED;padding:10px;' class="flex">
  53. <button :class='codestatus&&!sendDisabled?"active":""' @click='obtain' class='getcode'>{{sendText}}</button>
  54. <view class="con-list" style='position:relative;'>
  55. <input style='text-align:right;' v-model='verifyCode' placeholder="请输入验证码" type="number" maxlength="6">
  56. </view>
  57. </view>
  58. <view class="c-row b-b" v-if="identityAuthenticationInfo.customerTypeFlag == 2">
  59. <text class="tit">公司地址</text>
  60. <view class="con-list">
  61. <input placeholder="请填写公司地址" name="input" v-model="identityAuthenticationInfo.compAddress"></input>
  62. </view>
  63. </view>
  64. <view class="c-row b-b" v-if="identityAuthenticationInfo.customerTypeFlag == 1">
  65. <text class="tit">联系地址</text>
  66. <view class="con-list">
  67. <input placeholder="请填写联系地址" name="input" v-model="identityAuthenticationInfo.compAddress"></input>
  68. </view>
  69. </view>
  70. <view class="c-row b-b" >
  71. <text class="tit">供应商姓名</text>
  72. <view class="con-list">
  73. <input placeholder="请填写供应商姓名" name="input" v-model="identityAuthenticationInfo.supplier"></input>
  74. </view>
  75. </view>
  76. <view class="c-row b-b" >
  77. <text class="tit">供应商电话</text>
  78. <view class="con-list">
  79. <input placeholder="请填写供应商电话" name="input"
  80. v-model="identityAuthenticationInfo.supplierPhone"></input>
  81. </view>
  82. </view>
  83. </view>
  84. <button class="btns btn" @click="commit">提交</button>
  85. </view>
  86. </template>
  87. <script>
  88. import upload from '@/components/upload.vue';
  89. import {
  90. mapState
  91. } from 'vuex';
  92. export default {
  93. components: {
  94. upload
  95. },
  96. name: "buy",
  97. data() {
  98. return {
  99. action: this.$uploadUrl,
  100. maxSize: 50 * 1024 * 1024, //限制文件大小 50M
  101. btnLoading: false, //防止重复点击
  102. isAdd: true,
  103. imgUrls: [],
  104. uploadCustom: true,
  105. uploadCustom1: true,
  106. uploadOptions: {
  107. "text": "上传银行卡正面",
  108. "bgc": "https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/bankup%282%29.png"
  109. },
  110. uploadOptions1: {
  111. "text": "上传银行卡反面",
  112. "bgc": "https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/banklow%282%29.png"
  113. },
  114. // bank1: "../../static/img/authentication/bankup(3).png",
  115. // bank2: "../../static/img/authentication/banklow(3).png",
  116. bankid: [],
  117. consentStatus: true,
  118. consentStatus1: false,
  119. codestatus: false,
  120. verifyCode: null,
  121. inputStatus: 'none',
  122. sendText: '获取验证码',
  123. platform: '',
  124. sendDisabled: false,
  125. identityAuthenticationInfo: {},
  126. bankImgs1: {},
  127. bankIndex: -1,
  128. bankType: [],
  129. certificates: true,
  130. certificatesTwo: true,
  131. zhihangStatus: true,
  132. verification: true,
  133. identityAuthenticationInfos: {},
  134. payeeAddressUrlList: []
  135. }
  136. },
  137. computed: {
  138. ...mapState(['hasLogin', 'userInfo'])
  139. },
  140. onLoad(options) {
  141. this.identityAuthenticationInfo = JSON.parse(options.identityAuthenticationInfo)
  142. if (this.identityAuthenticationInfo.customerTypeFlag == 1) {
  143. this.identityAuthenticationInfo.payeeName = this.identityAuthenticationInfo.customerName
  144. this.identityAuthenticationInfo.payeeNumberCard = this.identityAuthenticationInfo.customerNumberCard
  145. }
  146. if (this.identityAuthenticationInfo.payeeAddressUrl) {
  147. let _lsit = []
  148. _lsit = this.identityAuthenticationInfo.payeeAddressUrl.split(',')
  149. this.payeeAddressUrlList[0] = [{
  150. url: _lsit[0]
  151. }]
  152. this.payeeAddressUrlList[1] = [{
  153. url: _lsit[0]
  154. }]
  155. }
  156. },
  157. methods: {
  158. filterFileType(index, lists) {
  159. if (lists[index].fileType != 'jpg' && lists[index].fileType != 'png' && lists[index].fileType != 'gif') {
  160. lists.splice(index, 1);
  161. // 当前文件不支持
  162. uni.showModal({
  163. title: '暂不支持当前图片类型',
  164. showCancel: false
  165. });
  166. } else {
  167. this.isAdd = false;
  168. }
  169. },
  170. getImgUrl(res) {
  171. console.log(res)
  172. console.log('------------res-----------')
  173. let that = this
  174. that.bankid[0] = res
  175. that.bank1 = res
  176. that.certificates = false
  177. that.bankImgs1.bankImg = res
  178. that.$api.doRequest('get', '/driverViewInfo/bankShibie', that
  179. .bankImgs1).then(res => {
  180. if (res.data.data.bankNo != null) {
  181. if (res.data.data.bankNo != "") {
  182. that.$set(that.identityAuthenticationInfo,
  183. 'bankCard', res.data.data.bankNo)
  184. }
  185. }
  186. if (res.data.data.bankName != null) {
  187. if (res.data.data.bankName != "") {
  188. that.$set(that.identityAuthenticationInfo,
  189. 'bankDeposit', res.data.data.bankName)
  190. }
  191. }
  192. if (res.data.data.bankNameZhihang.length != 0) {
  193. that.bankType = res.data.data.bankNameZhihang
  194. }
  195. }).catch(res => {
  196. uni.showToast({
  197. title: res.data.message,
  198. icon: 'none',
  199. duration: 2000
  200. })
  201. })
  202. },
  203. getImgUrl1(res) {
  204. console.log(res)
  205. console.log('------------res-----------')
  206. let that = this
  207. that.bankid[1] = res
  208. that.bank2 = res
  209. that.certificatesTwo = false
  210. that.bankImgs1.bankImg = res
  211. // that.$api.doRequest('get', '/driverViewInfo/bankShibie', that
  212. // .bankImgs1).then(res => {
  213. // if (res.data.data.bankNo != null) {
  214. // if (res.data.data.bankNo != "") {
  215. // that.$set(that.identityAuthenticationInfo,
  216. // 'bankCard', res.data.data.bankNo)
  217. // }
  218. // }
  219. // if (res.data.data.bankName != null) {
  220. // if (res.data.data.bankName != "") {
  221. // that.$set(that.identityAuthenticationInfo,
  222. // 'bankDeposit', res.data.data.bankName)
  223. // }
  224. // }
  225. // if (res.data.data.bankNameZhihang != null) {
  226. // that.bankType = res.data.data.bankNameZhihang
  227. // }
  228. // }).catch(res => {
  229. // uni.showToast({
  230. // title: res.data.message,
  231. // icon: 'none',
  232. // duration: 2000
  233. // })
  234. // })
  235. },
  236. onError(error) {
  237. // alert(error)
  238. console.log('------------error-----------')
  239. console.log(error)
  240. },
  241. onProgress(e) {
  242. console.log(e)
  243. },
  244. onRemove(index) {
  245. this.imgUrls.splice(index, 1);
  246. },
  247. obtain() {
  248. if (this.sendText == "获取验证码") {
  249. this.getcode()
  250. }
  251. },
  252. bankChange(e) {
  253. this.bankIndex = e.detail.value
  254. this.Model = this.bankType[this.bankIndex];
  255. this.identityAuthenticationInfo.bankDepositBranch = this.bankType[this.bankIndex];
  256. },
  257. changeZhihang() {
  258. this.zhihangStatus = !this.zhihangStatus
  259. },
  260. commit() {
  261. var that = this
  262. if (this.bankid[0] == '' || this.bankid[0] == null) {
  263. this.$api.msg('请上传银行卡正面')
  264. return
  265. }
  266. // if (this.bankid[1] == '' || this.bankid[1] == null) {
  267. // this.$api.msg('请上传银行卡反面')
  268. // return
  269. // }
  270. if (!this.identityAuthenticationInfo.bankCard) {
  271. this.$api.msg('银行卡号不能为空')
  272. return
  273. }
  274. if (this.identityAuthenticationInfo.bankCard.length < 16 || this.identityAuthenticationInfo.bankCard
  275. .length > 19) {
  276. this.$api.msg('银行卡号输入错误')
  277. return
  278. }
  279. if (!this.identityAuthenticationInfo.bankDeposit) {
  280. this.$api.msg('开户行不能为空')
  281. return
  282. }
  283. if (this.identityAuthenticationInfo.bankDeposit.length < 4 || this.identityAuthenticationInfo.bankDeposit
  284. .length > 15) {
  285. this.$api.msg('开户行输入错误')
  286. return
  287. }
  288. if (!this.identityAuthenticationInfo.bankDepositBranch) {
  289. this.$api.msg('开户支行不能为空')
  290. return
  291. }
  292. if (this.identityAuthenticationInfo.bankDepositBranch.length < 4 || this.identityAuthenticationInfo
  293. .bankDepositBranch.length > 30) {
  294. this.$api.msg('开户支行输入错误')
  295. return
  296. }
  297. if (!this.identityAuthenticationInfo.customerPhone) {
  298. this.$api.msg('手机号不能为空')
  299. return
  300. }
  301. if (this.identityAuthenticationInfo.customerPhone.length != 11) {
  302. this.$api.msg('手机号填写不正确')
  303. return
  304. }
  305. if (!this.verifyCode) {
  306. this.$api.msg('请填写验证码')
  307. return
  308. }
  309. if (this.identityAuthenticationInfo.customerTypeFlag == 1) {
  310. if (!this.identityAuthenticationInfo.payeeName) {
  311. this.$api.msg('收款人姓名不能为空')
  312. return
  313. }
  314. if (this.identityAuthenticationInfo.payeeName < 2 || this.identityAuthenticationInfo.payeeName > 10) {
  315. this.$api.msg('收款人姓名输入错误')
  316. return
  317. }
  318. if (!this.identityAuthenticationInfo.payeeNumberCard) {
  319. this.$api.msg('收款人身份证号不能为空')
  320. return
  321. }
  322. if (this.identityAuthenticationInfo.payeeNumberCard.length != 18) {
  323. this.$api.msg('收款人身份证号输入错误')
  324. return
  325. }
  326. if (!this.identityAuthenticationInfo.compAddress) {
  327. this.$api.msg('联系地址不能为空')
  328. return
  329. }
  330. if (this.identityAuthenticationInfo.compAddress.length < 2 || this.identityAuthenticationInfo
  331. .compAddress.length > 40) {
  332. this.$api.msg('联系地址输入错误')
  333. return
  334. }
  335. } else if (this.identityAuthenticationInfo.customerTypeFlag == 2) {
  336. if (!this.identityAuthenticationInfo.compAddress) {
  337. this.$api.msg('公司地址不能为空')
  338. return
  339. }
  340. if (this.identityAuthenticationInfo.compAddress.length < 2 || this.identityAuthenticationInfo
  341. .compAddress.length > 20) {
  342. this.$api.msg('公司地址输入错误')
  343. return
  344. }
  345. }
  346. this.amendprice()
  347. },
  348. phoneinput(e) {
  349. console.log(e.detail.value.length)
  350. if (e.detail.value.length == 11) {
  351. this.codestatus = true
  352. }
  353. },
  354. amendprice() {
  355. var that = this
  356. uni.showModal({
  357. content: "粮商身份信息审核通过后不可修改,是否确定提交?",
  358. showCancel: true,
  359. confirmText: '确定',
  360. success: function(res) {
  361. if (res.confirm) {
  362. uni.showLoading({
  363. title: "正在提交",
  364. mask: true
  365. })
  366. that.$api.doRequest('get', '/commonUser/loginVerifyCode', {
  367. phone: that.identityAuthenticationInfo.customerPhone,
  368. verifyCode: that.verifyCode
  369. }).then(res => {
  370. if (res.data.code == 200) {
  371. if (that.userInfo) {
  372. that.identityAuthenticationInfo.commonId = that.userInfo.id
  373. } else {
  374. that.identityAuthenticationInfo.commonId = res.data.data.id
  375. }
  376. that.identityAuthenticationInfo.payeeAddressUrl = that.bankid.toString()
  377. // that.identityAuthenticationInfo.compId = "2710b21efc1e4393930c5dc800010dc4"
  378. that.identityAuthenticationInfos.customerPhone = that
  379. .identityAuthenticationInfo.customerPhone
  380. that.$api.doRequest('get',
  381. '/identityAuthenticationInfo/selectPhone', that
  382. .identityAuthenticationInfos)
  383. .then(res => {
  384. if (res.data.code == '11018') {
  385. uni.showModal({
  386. title: '提示',
  387. content: '该手机号已认证过个人粮商,再次认证将覆盖之前的认证信息,是否确定认证?',
  388. success: function(res) {
  389. if (res.confirm) {
  390. if (that
  391. .identityAuthenticationInfo
  392. .id) {
  393. that.$api.doRequest(
  394. 'post',
  395. '/identityAuthenticationInfo/api/editIdentityAuthenticationInfo',
  396. that
  397. .identityAuthenticationInfo,
  398. 'application/json;charset=UTF-8'
  399. ).then(res => {
  400. console
  401. .log(
  402. "成功连接"
  403. )
  404. if (!that
  405. .identityAuthenticationInfo
  406. .goodsName
  407. ) {
  408. that.$api
  409. .msg(
  410. '修改成功!'
  411. )
  412. uni.navigateTo({
  413. url: `/pages/attestation/index`
  414. })
  415. return
  416. }
  417. })
  418. .catch(res => {
  419. if (res
  420. .errmsg
  421. ) {
  422. uni.showToast({
  423. title: res
  424. .errmsg,
  425. icon: 'none',
  426. duration: 2000
  427. })
  428. } else {
  429. uni.showToast({
  430. title: "系统异常,请联系管理员",
  431. icon: 'none',
  432. duration: 2000
  433. })
  434. }
  435. });
  436. } else {
  437. that.$api.doRequest(
  438. 'post',
  439. '/identityAuthenticationInfo/api/addIdentityAuthenticationInfo',
  440. that
  441. .identityAuthenticationInfo
  442. )
  443. .then(res => {
  444. if (res.data.code ==200) {
  445. uni.showToast({
  446. title: '提交成功',
  447. icon: 'none',
  448. duration: 2000
  449. })
  450. //判断是不是从邀请页面进来的,如果是邀请进来的就直接邀请成功!
  451. if(that.identityAuthenticationInfo.invitation || that.identityAuthenticationInfo.inviteCompany){
  452. that.$api.doRequest('get', '/identityAuthenticationInfo/saveCompanyIdentity', {
  453. id: res.data.data,
  454. compId: that.identityAuthenticationInfo.inviteCompany,
  455. }, 'application/json;charset=UTF-8').then(res => {
  456. if (res.data.code == 200) {
  457. // this.getList()
  458. }
  459. })
  460. .catch(res => {
  461. if (res.message) {
  462. uni.showToast({
  463. title: res.message,
  464. icon: 'none',
  465. duration: 2000
  466. })
  467. } else {
  468. uni.showToast({
  469. title: "接受邀请失败,请稍后再试。",
  470. icon: 'none',
  471. duration: 2000
  472. })
  473. }
  474. });
  475. }
  476. setTimeout(() => {
  477. uni.navigateBack({
  478. delta: 3
  479. })
  480. },
  481. 2000
  482. );
  483. }
  484. })
  485. }
  486. }
  487. }
  488. });
  489. } else if (res.data.code == 200) {
  490. if (that.identityAuthenticationInfo.id) {
  491. that.$api.doRequest('post',
  492. '/identityAuthenticationInfo/api/editIdentityAuthenticationInfo',
  493. that.identityAuthenticationInfo,
  494. 'application/json;charset=UTF-8').then(
  495. res => {
  496. console.log("成功连接")
  497. if (!that
  498. .identityAuthenticationInfo
  499. .goodsName) {
  500. that.$api.msg('修改成功!')
  501. uni.navigateTo({
  502. url: `/pages/attestation/index`
  503. })
  504. return
  505. }
  506. })
  507. .catch(res => {
  508. if (res.errmsg) {
  509. uni.showToast({
  510. title: res.errmsg,
  511. icon: 'none',
  512. duration: 2000
  513. })
  514. } else {
  515. uni.showToast({
  516. title: "系统异常,请联系管理员",
  517. icon: 'none',
  518. duration: 2000
  519. })
  520. }
  521. });
  522. } else {
  523. that.$api.doRequest('post',
  524. '/identityAuthenticationInfo/api/addIdentityAuthenticationInfo',
  525. that.identityAuthenticationInfo)
  526. .then(res => {
  527. console.log(
  528. "addIdentityAuthenticationInfo:",
  529. res)
  530. if (res.data.code == 200) {
  531. uni.showToast({
  532. title: '提交成功',
  533. icon: 'none',
  534. duration: 2000
  535. })
  536. //判断是不是从邀请页面进来的,如果是邀请进来的就直接邀请成功!
  537. if(that.identityAuthenticationInfo.invitation || that.identityAuthenticationInfo.inviteCompany){
  538. that.$api.doRequest('get', '/identityAuthenticationInfo/saveCompanyIdentity', {
  539. id: res.data.data,
  540. compId: that.identityAuthenticationInfo.inviteCompany,
  541. }, 'application/json;charset=UTF-8').then(res => {
  542. if (res.data.code == 200) {
  543. // this.getList()
  544. }
  545. })
  546. .catch(res => {
  547. if (res.message) {
  548. uni.showToast({
  549. title: res.message,
  550. icon: 'none',
  551. duration: 2000
  552. })
  553. } else {
  554. uni.showToast({
  555. title: "接受邀请失败,请稍后再试。",
  556. icon: 'none',
  557. duration: 2000
  558. })
  559. }
  560. });
  561. }
  562. setTimeout(() => {
  563. uni.navigateBack({
  564. delta: 3
  565. })
  566. }, 2000);
  567. } else {
  568. console.log("异常1:", res)
  569. uni.showToast({
  570. title: "系统异常,请联系管理员",
  571. icon: 'none',
  572. duration: 2000
  573. })
  574. }
  575. })
  576. }
  577. }
  578. uni.hideLoading()
  579. }).catch(res => {
  580. console.log("异常:", res)
  581. uni.showToast({
  582. title: "系统异常,请联系管理员",
  583. icon: 'none',
  584. duration: 2000
  585. })
  586. uni.hideLoading()
  587. })
  588. } else {
  589. that.verification = false
  590. uni.showToast({
  591. title: res.data.message,
  592. icon: 'none',
  593. duration: 2000
  594. })
  595. uni.hideLoading()
  596. return false
  597. }
  598. })
  599. .catch(res => {
  600. that.verification = false
  601. uni.showToast({
  602. title: res.data.message,
  603. icon: 'none',
  604. duration: 2000
  605. })
  606. uni.hideLoading()
  607. return false
  608. });
  609. } else if (res.cancel) {
  610. // console.log('用户点击取消');
  611. }
  612. }
  613. })
  614. },
  615. getcode() {
  616. var that = this
  617. if (/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(this.identityAuthenticationInfo.customerPhone)) {
  618. this.$api.doRequest('get', '/commonUser/sendVerifyCode', {
  619. phone: this.identityAuthenticationInfo.customerPhone
  620. }).then(res => {
  621. if (res.data.code == 200) {
  622. that.sendDisabled = true
  623. let sec = 60
  624. let interval = setInterval(() => {
  625. sec--;
  626. that.sendText = sec + 's后重发'
  627. if (sec <= 0) {
  628. that.sendDisabled = false
  629. that.sendText = "获取验证码"
  630. clearInterval(interval)
  631. }
  632. }, 1000)
  633. } else {
  634. uni.showToast({
  635. title: res.data.message,
  636. icon: 'none',
  637. duration: 2000
  638. })
  639. return
  640. }
  641. })
  642. .catch(res => {
  643. uni.showToast({
  644. title: res.data.message,
  645. icon: 'none',
  646. duration: 2000
  647. })
  648. return
  649. });
  650. } else {
  651. uni.showToast({
  652. title: '请输入正确的手机号',
  653. icon: 'none',
  654. duration: 2000
  655. })
  656. }
  657. },
  658. }
  659. }
  660. </script>
  661. <style>
  662. .center {
  663. padding: 10px 20px;
  664. background-color: #F5F6FA;
  665. }
  666. .c-row {
  667. display: -webkit-box;
  668. display: -webkit-flex;
  669. display: flex;
  670. -webkit-box-align: center;
  671. -webkit-align-items: center;
  672. align-items: center;
  673. padding: 20rpx 30rpx;
  674. position: relative;
  675. font-size: 14px;
  676. }
  677. .con-list {
  678. -webkit-box-flex: 1;
  679. -webkit-flex: 1;
  680. flex: 1;
  681. display: -webkit-box;
  682. display: -webkit-flex;
  683. display: flex;
  684. -webkit-box-orient: vertical;
  685. -webkit-box-direction: normal;
  686. -webkit-flex-direction: column;
  687. flex-direction: column;
  688. color: #303133;
  689. line-height: 40rpx;
  690. text-align: right;
  691. padding-right: 20rpx;
  692. font-size: 12px;
  693. }
  694. .btn {
  695. margin-top: 10px;
  696. background-color: #FFFFFF;
  697. border-radius: 25px;
  698. border: none;
  699. }
  700. .btns {
  701. background-color: #22C572;
  702. color: white;
  703. }
  704. .picture {
  705. width: 100%;
  706. height: 220px;
  707. text-align: center;
  708. margin-top: 10px;
  709. }
  710. .getcode {
  711. font-size: 14px;
  712. color: #AFB3BF;
  713. background: #F5F6F9;
  714. height: 30px;
  715. line-height: 30px;
  716. }
  717. .getcode.active {
  718. background: #22C572;
  719. color: #fff;
  720. }
  721. .words {
  722. font-size: 18px;
  723. font-weight: 600;
  724. color: #617E8B;
  725. }
  726. .floats {
  727. position: relative;
  728. top: -150px;
  729. text-align: center;
  730. }
  731. .upload {
  732. margin: 20rpx 0;
  733. }
  734. .tit_red {
  735. color: #E54D42;
  736. }
  737. .person-info{
  738. background: white;
  739. padding: 20rpx;
  740. border-radius: 20rpx;
  741. margin-bottom: 50rpx;
  742. }
  743. </style>