You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

opening-account-people.vue 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792
  1. <template>
  2. <navBar title="ETC开户新办申请-个人" :scrollTop="scrollTop"></navBar>
  3. <navBgCar></navBgCar>
  4. <view class="content-wrap">
  5. <view @click="tabChange(true)">
  6. <view :class="state.isMyPeopple ? 'big' : 'nomal'"> 本人车辆 </view>
  7. <view :class="state.isMyPeopple ? 'tip' : ''"> </view>
  8. </view>
  9. <view @click="tabChange(false)" style="margin-left: 60rpx" class="" v-if="state.isEnableOther">
  10. <view :class="state.isMyPeopple ? 'nomal' : 'big'"> 他人车辆 </view>
  11. <view :class="state.isMyPeopple ? '' : 'tip'"> </view>
  12. </view>
  13. </view>
  14. <view v-if="state.isMyPeopple" class="content">
  15. <view class="item-tips">
  16. <view class="title"> 上传后请核对识别信息 </view>
  17. <view class="tip"> 如有错误请及时手动修改 </view>
  18. </view>
  19. <view class="picture-wrapper" @click="cardImageOcr('1')">
  20. <view class="bg">
  21. <view class="">
  22. <view class="name"> 人像面 </view>
  23. <view class="value"> 上传身份证的人像面 </view>
  24. <view class="tip">
  25. <view class="tip-value"> 拍摄规范 </view>
  26. </view>
  27. </view>
  28. <image v-if="!state.form.userPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/renxiang.png`">
  29. </image>
  30. <image v-else class="icon" :src="strReplace(state.form.userPosImgUrl)"></image>
  31. </view>
  32. </view>
  33. <view class="picture-wrapper" @click="cardImageOcr('2')">
  34. <view class="bg">
  35. <view class="">
  36. <view class="name"> 国徽面 </view>
  37. <view class="value"> 上传身份证的国徽面 </view>
  38. <view class="tip">
  39. <view class="tip-value"> 拍摄规范 </view>
  40. </view>
  41. </view>
  42. <image v-if="!state.form.userNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/guohui.png`">
  43. </image>
  44. <image v-else class="icon" :src="strReplace(state.form.userNegImgUrl)"></image>
  45. </view>
  46. </view>
  47. <view class="shibie-wrapper">
  48. <view class="title"> 识别内容如下 </view>
  49. <u-form label-width="200" :model="state.form" ref="uForm">
  50. <u-form-item label="姓名">
  51. <u-input v-model="state.form.userName" placeholder='请输入姓名' :disabled="state.isEnableOCRData"/>
  52. </u-form-item>
  53. <!-- <u-form-item label="性别">
  54. <u-input placeholder='请选择性别' v-model="state.form.gender" @click="userGenderAction()"
  55. type="select" />
  56. </u-form-item> -->
  57. <u-form-item label="身份证号">
  58. <u-input placeholder='请输入身份证' type="idcard" v-model="state.form.userIdNum" :disabled="state.isEnableOCRData"/>
  59. </u-form-item>
  60. <u-form-item label="地址">
  61. <u-input placeholder='请输入地址' height='38' type='textarea' :autoHeight='true'
  62. v-model="state.form.address" :disabled="state.isEnableOCRData"/>
  63. </u-form-item>
  64. <!-- <u-form-item label="证件有效期">
  65. <u-input v-model="state.form.begindate" type="select" />
  66. </u-form-item> -->
  67. <u-form-item label="联系方式">
  68. <u-input placeholder='请输入联系方式' type="number" v-model="state.form.tel" />
  69. </u-form-item>
  70. </u-form>
  71. </view>
  72. <view class="green-tip">
  73. 如识别信息有误,请手动修改,确认无误后,点击下一步!
  74. </view>
  75. <view class="action">
  76. <button type="default" class="button" @click="savaHandle()">
  77. 下一步
  78. </button>
  79. </view>
  80. </view>
  81. <view v-else class="content">
  82. <view class="title"> 车主信息 </view>
  83. <view class="item-tips">
  84. <view class="title"> 上传后请核对识别信息 </view>
  85. <view class="tip"> 如有错误请及时手动修改 </view>
  86. </view>
  87. <view class="picture-wrapper" @click="cardImageOcr('1')">
  88. <view class="bg">
  89. <view class="">
  90. <view class="name"> 人像面 </view>
  91. <view class="value"> 上传身份证的人像面 </view>
  92. <view class="tip">
  93. <view class="tip-value"> 拍摄规范 </view>
  94. </view>
  95. </view>
  96. <image v-if="!state.form.userPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/renxiang.png`">
  97. </image>
  98. <image v-else class="icon" :src="state.form.userPosImgUrl"></image>
  99. </view>
  100. </view>
  101. <view class="picture-wrapper" @click="cardImageOcr('2')">
  102. <view class="bg">
  103. <view class="">
  104. <view class="name"> 国徽面 </view>
  105. <view class="value"> 上传身份证的国徽面 </view>
  106. <view class="tip">
  107. <view class="tip-value"> 拍摄规范 </view>
  108. </view>
  109. </view>
  110. <image v-if="!state.form.userNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/guohui.png`">
  111. </image>
  112. <image v-else class="icon" :src="state.form.userNegImgUrl"></image>
  113. </view>
  114. </view>
  115. <view class="shibie-wrapper">
  116. <view class="title"> 识别内容如下 </view>
  117. <u-form label-width="200" :model="state.form" ref="uForm">
  118. <u-form-item label="姓名">
  119. <u-input inputAlign="right" placeholder='请输入姓名' v-model="state.form.userName" :disabled="state.isEnableOCRData"/>
  120. </u-form-item>
  121. <!-- <u-form-item label="性别">
  122. <u-input inputAlign="right" placeholder='请选择性别' v-model="state.form.gender" type="select" />
  123. </u-form-item> -->
  124. <u-form-item label="身份证号">
  125. <u-input inputAlign="right" placeholder='请输入身份证号' v-model="state.form.userIdNum" :disabled="state.isEnableOCRData"/>
  126. </u-form-item>
  127. <!-- <u-form-item label="">
  128. <u-input v-model="state.form.userIdNum" />
  129. </u-form-item> -->
  130. <!-- <u-form-item label="证件有效期">
  131. <u-input v-model="state.form.begindate" type="select" />
  132. </u-form-item> -->
  133. <u-form-item label="联系方式">
  134. <u-input inputAlign="right" placeholder='请输入联系方式' v-model="state.form.tel" />
  135. </u-form-item>
  136. </u-form>
  137. </view>
  138. <view style="margin-top: 30rpx" class="title"> 代办人信息 </view>
  139. <view class="item-tips">
  140. <view class="title"> 上传后请核对识别信息 </view>
  141. <view class="tip"> 如有错误请及时手动修改 </view>
  142. </view>
  143. <view class="picture-wrapper" @click="cardDbImageOcr('1')">
  144. <view class="bg">
  145. <view class="">
  146. <view class="name"> 人像面 </view>
  147. <view class="value"> 上传身份证的人像面 </view>
  148. <view class="tip">
  149. <view class="tip-value"> 拍摄规范 </view>
  150. </view>
  151. </view>
  152. <image v-if="!state.form.agentPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/renxiang.png`">
  153. </image>
  154. <image v-else class="icon" :src="state.form.agentPosImgUrl"></image>
  155. </view>
  156. </view>
  157. <view class="picture-wrapper" @click="cardDbImageOcr('2')">
  158. <view class="bg">
  159. <view class="">
  160. <view class="name"> 国徽面 </view>
  161. <view class="value"> 上传身份证的国徽面 </view>
  162. <view class="tip">
  163. <view class="tip-value"> 拍摄规范 </view>
  164. </view>
  165. </view>
  166. <image v-if="!state.form.agentNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/guohui.png`">
  167. </image>
  168. <image v-else class="icon" :src="state.form.agentNegImgUrl"></image>
  169. </view>
  170. </view>
  171. <view class="picture-wrapper" @click="cardFileImageUpdate()" v-if='state.isEnableBook'>
  172. <view class="bg">
  173. <view class="">
  174. <view class="name"> 委托书 </view>
  175. <view class="value"> 上传文字清晰的委托书 </view>
  176. <view class="tip">
  177. <view class="tip-value"> 拍摄规范 </view>
  178. </view>
  179. </view>
  180. <image v-if="!state.form.proxyUrl" class="icon" :src="`${$imgUrl}applyCard/weituoshu.png`">
  181. </image>
  182. <image v-else class="icon" :src="state.form.proxyUrl"></image>
  183. </view>
  184. </view>
  185. <view class="shibie-wrapper">
  186. <view class="title"> 识别内容如下 </view>
  187. <u-form label-width="200" :model="state.form" ref="uForm">
  188. <u-form-item label="经办人姓名">
  189. <u-input inputAlign="right" placeholder='请输入经办人姓名' v-model="state.form.agentName" :disabled="state.isEnableOCRData"/>
  190. </u-form-item>
  191. <!-- <u-form-item label="性别">
  192. <u-input v-model="state.form.agentGender" type="select" />
  193. </u-form-item> -->
  194. <u-form-item label="身份证号">
  195. <u-input inputAlign="right" placeholder='请输入身份证号' v-model="state.form.agentIdNum" :disabled="state.isEnableOCRData"/>
  196. </u-form-item>
  197. <!-- <u-form-item label="证件有效期">
  198. <u-input v-model="state.form.begindate" type="select" />
  199. </u-form-item> -->
  200. <u-form-item label="联系方式">
  201. <u-input inputAlign="right" placeholder='请输入联系方式' v-model="state.form.agentTel" />
  202. </u-form-item>
  203. </u-form>
  204. </view>
  205. <view class="green-tip">
  206. 如识别信息有误,请手动修改,确认无误后,点击下一步!
  207. </view>
  208. <view class="action">
  209. <button type="default" class="button" @click="savaHandle()">
  210. 下一步
  211. </button>
  212. </view>
  213. </view>
  214. <u-select mode="single-column" :list="state.genderList" v-model="state.genderShow" @confirm="genderSelectConfirm">
  215. </u-select>
  216. </template>
  217. <script setup lang="ts">
  218. import navBgCar from "./components/nav-bg-car3";
  219. import {
  220. pathToBase64
  221. } from "@/utils/image-tools/index.js";
  222. import {
  223. reactive,
  224. ref,
  225. } from "vue";
  226. import {
  227. msg,
  228. checkStr
  229. } from "@/utils/utils";
  230. import {
  231. onLoad,
  232. onPageScroll,
  233. } from "@dcloudio/uni-app";
  234. import {
  235. etcOcrCard,
  236. etcUserCardInfoSubmit,
  237. fileUpload,
  238. register,
  239. envs,
  240. getUserMsg
  241. } from "@/utils/network/api.js";
  242. import {
  243. request
  244. } from "@/utils/network/request.js";
  245. import {
  246. stringToJson
  247. } from "@/utils/network/encryption";
  248. import {
  249. setItem,
  250. getItem,
  251. } from "@/utils/storage";
  252. import {
  253. getCodeName
  254. } from "@/datas/queryKey.js";
  255. import navBar from "@/components/nav-bar/nav-bar2.vue";
  256. const scrollTop = ref(0)
  257. const state = reactive({
  258. genderList: [{
  259. value: '男',
  260. label: '男'
  261. },
  262. {
  263. value: '女',
  264. label: '女'
  265. }
  266. ],
  267. form: {
  268. orderId: "", //订单ID
  269. userName: "", //开户人姓名
  270. userIdType: "101", //用户证件类型 101//身份证
  271. userIdNum: "", //用户证件号码
  272. userPosImgUrl: "", //身份证正面
  273. userNegImgUrl: "", //身份证反面
  274. tel: "", //开户人手机号
  275. address: "", //开户人地址
  276. sceneType: "", //用户协议支撑服务场景(发行服务机构和用户签订的协议)
  277. channelId: "", //渠道id
  278. gender: "",
  279. customerIdVld: "",
  280. agentName: "",
  281. agentGender: "",
  282. agentTel: '',
  283. agentPhone: "",
  284. agentIdType: "101",
  285. agentIdNum: "",
  286. agentPosImgUrl: "",
  287. agentNegImgUrl: "",
  288. proxyUrl: "",
  289. agentAddress: "",
  290. agentIdVld: '',
  291. opId: '',
  292. orderSource: 'WECHAT',
  293. },
  294. genderShow: false,
  295. orderId: "",
  296. vehiclePlateColor: undefined,
  297. isMyPeopple: true,
  298. isSign:'',
  299. isEnableOther:true, //小程序是否支持他人办理
  300. isEnableBook:true, //他人办理时是否上传委托书
  301. isEnableInfo:true, //小程序信息带出
  302. isEnableOCRData:true, //允许修改OCR识别出来的数据
  303. });
  304. const userGenderAction = () => {
  305. state.genderShow = true;
  306. };
  307. const genderSelectConfirm = (e) => {
  308. state.form.gender = ''
  309. e.map((val, index) => {
  310. state.form.gender = val.label;
  311. })
  312. };
  313. const savaHandle = () => {
  314. if (!checkStr(state.form.userIdNum, 'card')) {
  315. msg('请输入正确身份证');
  316. return;
  317. }
  318. if (!checkStr(state.form.tel, 'mobile')) {
  319. msg('请输入正确手机号');
  320. return;
  321. }
  322. //如果未登录||新用户
  323. // if (!getItem('openId')) {
  324. let data = {
  325. userType: "PERSONAL",
  326. idNum: state.form.userIdNum,
  327. idType: state.form.userIdType,
  328. mobile: state.form.tel,
  329. name: state.form.userName,
  330. gender: state.form.gender == '男' ? 'MALE' : 'FEMALE',
  331. certifyChannel: "BAIDUOCR",
  332. address: state.form.address,
  333. agentIdNum: state.form.agentIdNum,
  334. agentIdType: state.form.agentIdType,
  335. agentName: state.form.agentName,
  336. department: "",
  337. userIdImgUrl: state.form.userPosImgUrl,
  338. userIdImgBase64: "",
  339. }
  340. const options = {
  341. type: 2,
  342. data: data,
  343. method: "POST",
  344. showLoading: true,
  345. };
  346. request(register, options).then((res) => {
  347. let result = stringToJson(res.bizContent);
  348. if (result.accessToken && result.openId) {
  349. setItem('token', result.accessToken)
  350. setItem('openId', result.openId)
  351. state.form.opId = result.openId;
  352. let data = state.form;
  353. const options = {
  354. type: 2,
  355. data: data,
  356. method: "POST",
  357. showLoading: true,
  358. };
  359. request(etcUserCardInfoSubmit, options).then((res) => {
  360. // let result = stringToJson(res.bizContent);
  361. console.log(res);
  362. uni.redirectTo({
  363. url: `/subpackage/applyCard/car-release?orderId=${state.orderId}&vehiclePlateColor=${state.vehiclePlateColor}&type=1&isSign=${state.isSign}`,
  364. });
  365. });
  366. }
  367. })
  368. // } else {
  369. //已经登录
  370. // let data = state.form;
  371. // const options = {
  372. // type: 2,
  373. // data: data,
  374. // method: "POST",
  375. // showLoading: true,
  376. // };
  377. // request(etcUserCardInfoSubmit, options).then((res) => {
  378. // // let result = stringToJson(res.bizContent);
  379. // console.log(res);
  380. // uni.redirectTo({
  381. // url: `/subpackage/applyCard/car-release?orderId=${state.orderId}&vehiclePlateColor=${state.vehiclePlateColor}&isSign=${state.isSign}`,
  382. // });
  383. // });
  384. // }
  385. };
  386. const cardFileImageUpdate = () => {
  387. uni.chooseImage({
  388. count: 1, //只能选取一张照片
  389. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  390. sourceType: ["camera", "album"], //从相册选择
  391. success: function (res) {
  392. pathToBase64(res.tempFilePaths[0])
  393. .then((path) => {
  394. var data = {
  395. fileBase64: path,
  396. };
  397. const options = {
  398. type: 2,
  399. data: data,
  400. method: "POST",
  401. showLoading: true,
  402. };
  403. request(fileUpload, options).then((res) => {
  404. const data = stringToJson(res.bizContent);
  405. console.log(data);
  406. state.form.proxyUrl = data.data.url;
  407. });
  408. })
  409. .catch((error) => { });
  410. },
  411. });
  412. };
  413. //tab切换
  414. const tabChange = (val : any) => {
  415. if (val) {
  416. state.isMyPeopple = true;
  417. } else {
  418. state.isMyPeopple = false;
  419. }
  420. state.form = {
  421. orderId: state.orderId, //订单ID
  422. userName: "", //开户人姓名
  423. userIdType: "101", //用户证件类型 101//身份证
  424. userIdNum: "", //用户证件号码
  425. userPosImgUrl: "", //身份证正面
  426. userNegImgUrl: "", //身份证反面
  427. tel: "", //开户人手机号
  428. address: "", //开户人地址
  429. sceneType: "", //用户协议支撑服务场景(发行服务机构和用户签订的协议)
  430. channelId: "", //渠道id
  431. gender: "",
  432. customerIdVld: "",
  433. agentName: "",
  434. agentGender: "",
  435. agentTel: '',
  436. agentPhone: "",
  437. agentIdType: "101",
  438. agentIdNum: "",
  439. agentPosImgUrl: "",
  440. agentNegImgUrl: "",
  441. proxyUrl: "",
  442. agentAddress: "",
  443. agentIdVld: '',
  444. };
  445. };
  446. onLoad((option : any) => {
  447. state.form.orderId = option.orderId;
  448. state.orderId = option.orderId;
  449. state.vehiclePlateColor = option.vehiclePlateColor;
  450. state.form.opId = getItem('openId')??'';
  451. state.isSign=option.isSign;
  452. //state.fromOrder = option.fromOrder //是否来自订单-修改资料
  453. getGlobalParam(); //全局配置数据
  454. });
  455. //监听页面滚动
  456. onPageScroll((e) => {
  457. scrollTop.value = e.scrollTop;
  458. });
  459. const cardDbImageOcr = (val : any) => {
  460. var imageType = val;
  461. uni.chooseImage({
  462. count: 1, //只能选取一张照片
  463. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  464. sourceType: ["camera", "album"], //从相册选择
  465. success: function (res) {
  466. pathToBase64(res.tempFilePaths[0])
  467. .then((path) => {
  468. var data = {
  469. source: "1",
  470. agencyId: "52010106004",
  471. imageType: imageType,
  472. fileName: res.tempFilePaths[0],
  473. imageBase64: path,
  474. };
  475. const options = {
  476. type: 2,
  477. data: data,
  478. method: "POST",
  479. showLoading: true,
  480. };
  481. request(etcOcrCard, options).then((res) => {
  482. const data = stringToJson(res.bizContent);
  483. if (val === "1") {
  484. state.form.agentName = data.name;
  485. state.form.agentGender = data.gender;
  486. state.form.agentIdNum = data.idno;
  487. state.form.agentPosImgUrl = data.imageUrl;
  488. state.form.agentAddress = data.address;
  489. } else {
  490. state.form.agentIdVld = data.enddate;
  491. state.form.agentNegImgUrl = data.imageUrl;
  492. }
  493. });
  494. })
  495. .catch((error) => { });
  496. },
  497. });
  498. };
  499. //orc接口调用
  500. const cardImageOcr = (val : any) => {
  501. if(state.isEnableOCRData){
  502. return;
  503. }
  504. console.log("点击了");
  505. var imageType = val;
  506. uni.chooseImage({
  507. count: 1, //只能选取一张照片
  508. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  509. sourceType: ["camera", "album"], //从相册选择
  510. success: function (res) {
  511. pathToBase64(res.tempFilePaths[0])
  512. .then((path) => {
  513. var data = {
  514. source: "1",
  515. agencyId: "52010106004",
  516. imageType: imageType,
  517. fileName: res.tempFilePaths[0],
  518. imageBase64: path,
  519. };
  520. const options = {
  521. type: 2,
  522. data: data,
  523. method: "POST",
  524. showLoading: true,
  525. };
  526. request(etcOcrCard, options).then((res) => {
  527. const data = stringToJson(res.bizContent);
  528. if (val === "1") {
  529. state.form.userName = data.name;
  530. state.form.gender = data.gender;
  531. state.form.userIdNum = data.idno;
  532. state.form.userPosImgUrl = data.imageUrl;
  533. state.form.address = data.address;
  534. } else {
  535. state.form.customerIdVld = data.enddate;
  536. state.form.userNegImgUrl = data.imageUrl;
  537. }
  538. });
  539. })
  540. .catch((error) => { });
  541. },
  542. });
  543. };
  544. //替换图片地址
  545. const strReplace = (str : string) => {
  546. return str.replace('192.168.101.145:9000', envs[process.env.NODE_ENV].baseUrl)
  547. }
  548. const getGlobalParam=()=>{
  549. const data=getItem('globalParam')
  550. console.log("全局配置数据",getCodeName('IS_ENABLE',data.miniSupportOther),getCodeName('IS_ENABLE',data.otherUploadProxy),getCodeName('IS_ENABLE',data.miniInfoShow),getCodeName('IS_ENABLE',data.changeOCRData))
  551. // 小程序是否支持他人办理
  552. if(getCodeName('IS_ENABLE',data.miniSupportOther)=='启用'){
  553. state.isEnableOther=true;
  554. }else{
  555. state.isEnableOther=false;
  556. }
  557. // 他人办理时是否上传委托书
  558. if(getCodeName('IS_ENABLE',data.otherUploadProxy)=='启用'){
  559. state.isEnableBook=true;
  560. }else{
  561. state.isEnableBook=false;
  562. }
  563. // 小程序信息带出
  564. if(getCodeName('IS_ENABLE',data.miniInfoShow)=='启用'){
  565. state.isEnableInfo=true;
  566. queryUserMsg(); //通过opneId查询用户信息
  567. }else{
  568. state.isEnableInfo=false;
  569. }
  570. // 允许修改OCR识别出来的数据
  571. if(getCodeName('IS_ENABLE',data.changeOCRData)=='启用'){
  572. state.isEnableOCRData=false;
  573. }else{
  574. state.isEnableOCRData=true;
  575. }
  576. }
  577. // 通过opneId查询用户信息
  578. const queryUserMsg=()=>{
  579. const options = {
  580. type: 2,
  581. data: {
  582. "openId":getItem('openId')
  583. },
  584. method: "POST",
  585. showLoading: true,
  586. };
  587. request(getUserMsg, options).then((res) => {
  588. console.log("通过opneId查询用户信息",stringToJson(res.bizContent))
  589. const data=stringToJson(res.bizContent);
  590. state.form.userPosImgUrl=data.customerPosImgUrl;
  591. state.form.userNegImgUrl=data.customerNegImgUrl;
  592. state.form.userName=data.customerName;
  593. state.form.userIdNum=data.customerIdNum;
  594. state.form.address=data.customerAddress;
  595. state.form.tel=data.customerTel;
  596. })
  597. }
  598. </script>
  599. <style lang="scss" scoped>
  600. .title {
  601. font-size: 35rpx;
  602. font-family: Microsoft YaHei;
  603. font-weight: 400;
  604. color: #000000;
  605. line-height: 80rpx;
  606. margin-bottom: 10rpx;
  607. }
  608. .content-wrap {
  609. position: relative;
  610. margin-top: -50rpx;
  611. padding: 0rpx 30rpx;
  612. display: flex;
  613. .big {
  614. font-size: 30rpx;
  615. font-family: Microsoft YaHei;
  616. font-weight: 400;
  617. color: #333333;
  618. line-height: 24rpx;
  619. }
  620. .nomal {
  621. font-size: 26rpx;
  622. font-family: Microsoft YaHei;
  623. font-weight: 400;
  624. color: #666666;
  625. line-height: 24rpx;
  626. }
  627. .tip {
  628. margin-top: -5px;
  629. width: 117rpx;
  630. height: 16rpx;
  631. background: #00b38b;
  632. opacity: 0.3;
  633. }
  634. }
  635. .content {
  636. padding: 50rpx 30rpx 50rpx 30rpx;
  637. .action {
  638. padding-left: 20rpx;
  639. padding-right: 20rpx;
  640. padding-bottom: 30rpx;
  641. .button {
  642. height: 80rpx;
  643. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  644. border-radius: 40rpx;
  645. font-size: 32rpx;
  646. font-weight: 400;
  647. color: #ffffff;
  648. line-height: 80rpx;
  649. }
  650. }
  651. .item-tips {
  652. .title {
  653. font-size: 30rpx;
  654. font-family: Microsoft YaHei;
  655. font-weight: 400;
  656. color: #000000;
  657. line-height: 24rpx;
  658. }
  659. .tip {
  660. margin-top: 16rpx;
  661. font-size: 24rpx;
  662. font-family: Microsoft YaHei;
  663. font-weight: 400;
  664. color: #999999;
  665. line-height: 24rpx;
  666. }
  667. }
  668. .picture-wrapper {
  669. margin-top: 40rpx;
  670. .bg {
  671. background: #ffffff;
  672. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  673. border-radius: 20rpx;
  674. padding: 40rpx;
  675. display: flex;
  676. // align-items: center;
  677. justify-content: space-between;
  678. .name {
  679. font-size: 34rpx;
  680. font-family: Microsoft YaHei;
  681. font-weight: 400;
  682. color: #000000;
  683. line-height: 34rpx;
  684. }
  685. .value {
  686. margin-top: 20rpx;
  687. font-size: 24rpx;
  688. font-family: Microsoft YaHei;
  689. font-weight: 400;
  690. color: #999999;
  691. line-height: 24rpx;
  692. }
  693. .tip {
  694. margin-top: 20rpx;
  695. text-align: center;
  696. width: 110rpx;
  697. height: 40rpx;
  698. background: rgba(33, 190, 177, 0.2);
  699. border-radius: 6rpx;
  700. .tip-value {
  701. font-size: 20rpx;
  702. font-family: Microsoft YaHei;
  703. font-weight: 400;
  704. color: #0a8f8a;
  705. line-height: 40rpx;
  706. opacity: 1;
  707. }
  708. }
  709. }
  710. .icon {
  711. width: 294rpx;
  712. height: 188rpx;
  713. }
  714. }
  715. .shibie-wrapper {
  716. margin-top: 60rpx;
  717. .title {
  718. font-size: 30rpx;
  719. font-family: Microsoft YaHei;
  720. font-weight: 400;
  721. color: #000000;
  722. line-height: 30rpx;
  723. }
  724. }
  725. .buchong-wrapper {
  726. margin-top: 60rpx;
  727. .title {
  728. font-size: 30rpx;
  729. font-family: Microsoft YaHei;
  730. font-weight: 400;
  731. color: #000000;
  732. line-height: 30rpx;
  733. }
  734. }
  735. .green-tip {
  736. margin-top: 50rpx;
  737. font-size: 24rpx;
  738. font-family: Microsoft YaHei;
  739. font-weight: 400;
  740. color: #00b38b;
  741. line-height: 24rpx;
  742. margin-bottom: 60rpx;
  743. }
  744. }
  745. </style>