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-unit.vue 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704
  1. <template>
  2. <navBar title="ETC开户新办申请-单位" :scrollTop="scrollTop"></navBar>
  3. <navBgCar></navBgCar>
  4. <view class="content-wrap">
  5. <view class="item-tips">
  6. <view class="title"> 上传后请核对识别信息 </view>
  7. <view class="tip"> 如有错误请及时手动修改 </view>
  8. </view>
  9. <view class="picture-wrapper" @click="cardImageOcrYY()">
  10. <view class="bg">
  11. <view class="">
  12. <view class="name"> 营业执照 </view>
  13. <view class="value"> 上传企业的营业执照 </view>
  14. <view class="tip">
  15. <view class="tip-value"> 拍摄规范 </view>
  16. </view>
  17. </view>
  18. <image v-if="!state.form.posImgUrl" class="icon" :src="`${$imgUrl}applyCard/zhizhao.png`">
  19. </image>
  20. <image v-else class="icon" :src="strReplace(state.form.posImgUrl)"></image>
  21. </view>
  22. </view>
  23. <view class="picture-wrapper" @click="takePhotoMode('1')">
  24. <view class="bg">
  25. <view class="">
  26. <view class="name"> 人像面 </view>
  27. <view class="value"> 上传身份证的人像面 </view>
  28. <view class="tip">
  29. <view class="tip-value"> 拍摄规范 </view>
  30. </view>
  31. </view>
  32. <image v-if="!state.form.agentPosImgUrl" class="icon" :src="`${$imgUrl}applyCard/renxiang.png`">
  33. </image>
  34. <image v-else class="icon" :src="strReplace(state.form.agentPosImgUrl)"></image>
  35. </view>
  36. </view>
  37. <view class="picture-wrapper" @click="takePhotoMode('2')">
  38. <view class="bg">
  39. <view class="">
  40. <view class="name"> 国徽面 </view>
  41. <view class="value"> 上传身份证的国徽面 </view>
  42. <view class="tip">
  43. <view class="tip-value"> 拍摄规范 </view>
  44. </view>
  45. </view>
  46. <image v-if="!state.form.agentNegImgUrl" class="icon" :src="`${$imgUrl}applyCard/guohui.png`">
  47. </image>
  48. <image v-else class="icon" :src="strReplace(state.form.agentNegImgUrl)"></image>
  49. </view>
  50. </view>
  51. <view class="picture-wrapper" @click="cardFileImageUpdate()">
  52. <view class="bg">
  53. <view class="">
  54. <view class="name"> 委托书 </view>
  55. <view class="value"> 上传文字清晰的委托书 </view>
  56. <view class="tip">
  57. <view class="tip-value"> 拍摄规范 </view>
  58. </view>
  59. </view>
  60. <image v-if="!state.form.proxyUrl" class="icon" :src="`${$imgUrl}applyCard/weituoshu.png`">
  61. </image>
  62. <image v-else class="icon" :src="strReplace(state.form.proxyUrl)"></image>
  63. </view>
  64. </view>
  65. <view class="shibie-wrapper">
  66. <view class="title"> 识别内容如下 </view>
  67. <u-form label-width="200" :model="state.form" ref="uForm">
  68. <u-form-item label="公司名称">
  69. <u-input inputAlign="right" class="clearBg" placeholder='请输入公司名称' v-model="state.form.userName" />
  70. </u-form-item>
  71. <u-form-item label="部门名称">
  72. <u-input inputAlign="right" class="clearBg" placeholder='请输入部门名称' v-model="state.form.department" />
  73. </u-form-item>
  74. <u-form-item label="社会信用代码">
  75. <u-input inputAlign="right" class="clearBg" placeholder='请输入社会信用代码'
  76. v-model="state.form.userIdNum" />
  77. </u-form-item>
  78. <u-form-item label="经办人姓名">
  79. <u-input inputAlign="right" class="clearBg" placeholder='请输入经办人姓名' v-model="state.form.agentName" />
  80. </u-form-item>
  81. <u-form-item label="经办人身份证号">
  82. <u-input inputAlign="right" class="clearBg" placeholder='请输入经办人身份证号'
  83. v-model="state.form.agentIdNum" />
  84. </u-form-item>
  85. <u-form-item label="经办人联系方式">
  86. <u-input inputAlign="right" class="clearBg" placeholder='请输入经办人联系方式' v-model="state.form.tel" />
  87. </u-form-item>
  88. </u-form>
  89. </view>
  90. <view class="green-tip">
  91. 如识别信息有误,请手动修改,确认无误后,点击下一步!
  92. </view>
  93. <view class="action">
  94. <button type="default" class="button" @click="savaHandle()">
  95. 下一步
  96. </button>
  97. </view>
  98. <view class="choice-takePhoto-wrap" v-if="state.isTakePhotoModeShow" @click="cancle">
  99. <view class="choice-takePhoto">
  100. <view @click.stop="takePhoto(state.choiceIndex)" style="border-radius: 20rpx 20rpx 0 0;">拍照</view>
  101. <view @click.stop="xiangce(state.choiceIndex)">从手机相册选择</view>
  102. <view @click.stop="cancle">取消</view>
  103. </view>
  104. </view>
  105. <viewfinder v-if="state.phoneType" :phoneType="state.phoneType" :images="state.images"
  106. :showStartPhoto="state.showImg" @confirmReturn="confirmReturn" @camera="camera"></viewfinder>
  107. </view>
  108. </template>
  109. <script setup lang="ts">
  110. import {
  111. reactive, ref
  112. } from "vue";
  113. import navBgCar from "./components/nav-bg-car3";
  114. import navBar from "@/components/nav-bar/nav-bar2.vue";
  115. import viewfinder from "../../components/viewfinder.vue"
  116. import {
  117. pathToBase64
  118. } from "@/utils/image-tools/index.js";
  119. import {
  120. ocrAllQuery,
  121. fileUpload,
  122. envs,
  123. etcOcrCard,
  124. etcCompanyCardInfoSubmit,
  125. register,
  126. } from "@/utils/network/api.js";
  127. import {
  128. request
  129. } from "@/utils/network/request.js";
  130. import {
  131. stringToJson
  132. } from "@/utils/network/encryption";
  133. import {
  134. onLoad,
  135. onPageScroll,
  136. } from "@dcloudio/uni-app";
  137. import {
  138. setItem,
  139. getItem,
  140. } from "@/utils/storage";
  141. import {
  142. msg,
  143. checkStr,
  144. strReplace
  145. } from "@/utils/utils";
  146. const scrollTop = ref(0);//滚动距离
  147. const state = reactive({
  148. phoneType: 0, // 1 身份证正面 2 身份证反面 3行驶证正面 4行驶证反面
  149. choiceIndex: 1, // 1 身份证正面 2 身份证反面
  150. isTakePhotoModeShow: false, //选择拍照方式是否出来
  151. images: '',
  152. showImg: true,
  153. form: {
  154. orderId: "", //订单ID
  155. //营业执照信息
  156. userName: "", //开户名称/账户名称
  157. userIdType: "203", //用户证件类型 203//营业执照
  158. userIdNum: "", //营业执照号码
  159. posImgUrl: "", //营业执照证明
  160. department: '本部', //不超过50个字符,若单位仅开一个账户,填写“本部”
  161. address: "", //单位地址
  162. //经办人信息
  163. agentName: "",
  164. agentIdType: "101",
  165. agentIdNum: "",
  166. agentAddress: "",
  167. agentPhone: "",
  168. agentIdVld: '',
  169. tel: '',
  170. agentGender: '',
  171. agentPosImgUrl: "",
  172. agentNegImgUrl: "",
  173. proxyUrl: "",
  174. sceneType: "", //用户协议支撑服务场景(发行服务机构和用户签订的协议)
  175. channelId: "", //渠道id
  176. opId: '',
  177. orderSource: 'WECHAT',
  178. },
  179. orderId: "",
  180. vehiclePlateColor: '',
  181. isSign: ''
  182. });
  183. const savaHandle = () => {
  184. if (state.form.agentGender === '男') {
  185. state.form.agentGender = 'MAN'
  186. } else {
  187. state.form.agentGender = 'WOMAN'
  188. }
  189. if (!state.form.posImgUrl) {
  190. msg('请上传营业执照');
  191. return;
  192. }
  193. if (!state.form.agentPosImgUrl) {
  194. msg('上传身份证的人像面');
  195. return;
  196. }
  197. if (!state.form.agentNegImgUrl) {
  198. msg('上传身份证的国徽面');
  199. return;
  200. }
  201. if (!state.form.proxyUrl) {
  202. msg('上传身份证的委托书');
  203. return;
  204. }
  205. if (!state.form.userName) {
  206. msg('请输入公司名称');
  207. return;
  208. }
  209. if (!state.form.department) {
  210. msg('请输入社会信用代码');
  211. return;
  212. }
  213. if (!state.form.agentName) {
  214. msg('请输入经办人姓名');
  215. return;
  216. }
  217. if (!checkStr(state.form.agentIdNum, 'card')) {
  218. msg('请输入正确的经办人身份证号');
  219. return;
  220. }
  221. if (!checkStr(state.form.tel, 'mobile')) {
  222. msg('请输入正确的经办人联系方式');
  223. return;
  224. }
  225. //如果未登录||新用户
  226. // if (!getItem('openId')) {
  227. let data = {
  228. userType: "ENTERPRISE",
  229. idNum: state.form.userIdNum,
  230. idType: state.form.userIdType,
  231. mobile: state.form.tel,
  232. userName: state.form.userName,
  233. gender: 'UNKOWN',
  234. certifyChannel: "BAIDUOCR",
  235. address: state.form.address,
  236. agentIdNum: state.form.agentIdNum,
  237. agentIdType: state.form.agentIdType,
  238. agentName: state.form.agentName,
  239. department: state.form.department,
  240. userIdImgUrl: state.form.posImgUrl,
  241. userIdImgBase64: "",
  242. }
  243. const options = {
  244. type: 2,
  245. data: data,
  246. method: "POST",
  247. showLoading: true,
  248. };
  249. request(register, options).then((res) => {
  250. let result = stringToJson(res.bizContent);
  251. if (result.accessToken && result.openId) {
  252. setItem('token', result.accessToken)
  253. setItem('openId', result.openId)
  254. state.form.opId = result.openId;
  255. let data = state.form;
  256. const options = {
  257. type: 2,
  258. data: data,
  259. method: "POST",
  260. showLoading: true,
  261. };
  262. request(etcCompanyCardInfoSubmit, options).then((res) => {
  263. // let result = stringToJson(res.bizContent);
  264. console.log(res);
  265. uni.redirectTo({
  266. url: `/subpackage/orders/car-release?orderId=${state.orderId}&vehiclePlateColor=${state.vehiclePlateColor}&type=1&isSign=${state.isSign}`,
  267. });
  268. });
  269. }
  270. })
  271. // }else{
  272. // var data = state.form;
  273. // const options = {
  274. // type: 2,
  275. // data: data,
  276. // method: "POST",
  277. // showLoading: true,
  278. // };
  279. // request(etcCompanyCardInfoSubmit, options).then((res) => {
  280. // const data = stringToJson(res.bizContent);
  281. // uni.redirectTo({
  282. // url: `/subpackage/orders/car-release?orderId=${state.orderId}&&vehiclePlateColor=${state.vehiclePlateColor}&isSign=${state.isSign}`,
  283. // });
  284. // });
  285. // }
  286. };
  287. onLoad((option : any) => {
  288. state.form.orderId = option.orderId;
  289. state.orderId = option.orderId;
  290. state.vehiclePlateColor = option.vehiclePlateColor;
  291. state.form.opId = getItem('openId') ? getItem('openId') : '';
  292. state.isSign = option.isSign;
  293. });
  294. //监听页面滚动
  295. onPageScroll((e) => {
  296. scrollTop.value = e.scrollTop;
  297. });
  298. //营业执照Orc接口调用
  299. const cardImageOcrYY = () => {
  300. uni.chooseImage({
  301. count: 1, //只能选取一张照片
  302. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  303. sourceType: ["camera", "album"], //从相册选择
  304. success: function (res) {
  305. pathToBase64(res.tempFilePaths[0])
  306. .then((path) => {
  307. var data = {
  308. type: 'business_license',
  309. base64: path,
  310. };
  311. const options = {
  312. type: 2,
  313. data: data,
  314. method: "POST",
  315. showLoading: true,
  316. };
  317. request(ocrAllQuery, options).then((res) => {
  318. const data = stringToJson(res.bizContent);
  319. if (data.result) {
  320. state.form.userName = stringToJson(data.result
  321. .businessLicense)[
  322. '名称'];
  323. state.form.userIdNum = stringToJson(data.result
  324. .businessLicense)[
  325. '统一社会信用代码'];
  326. cardFileImageUpdateyy(path)
  327. }
  328. });
  329. })
  330. .catch((error) => { });
  331. },
  332. });
  333. };
  334. // const cardImageOcr = (val : any) => {
  335. // var imageType = val;
  336. // uni.chooseImage({
  337. // count: 1, //只能选取一张照片
  338. // sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  339. // sourceType: ["camera", "album"], //从相册选择
  340. // success: function (res) {
  341. // pathToBase64(res.tempFilePaths[0])
  342. // .then((path) => {
  343. // var data = {
  344. // source: "WECHAT",
  345. // agencyId: "52010106004",
  346. // imageType: imageType,
  347. // fileName: res.tempFilePaths[0],
  348. // imageBase64: path,
  349. // };
  350. // const options = {
  351. // type: 2,
  352. // data: data,
  353. // method: "POST",
  354. // showLoading: true,
  355. // };
  356. // request(etcOcrCard, options).then((res) => {
  357. // const data = stringToJson(res.bizContent);
  358. // if (val === "1") {
  359. // state.form.agentName = data.name;
  360. // state.form.agentIdNum = data.idno;
  361. // state.form.agentPosImgUrl = data.imageUrl;
  362. // state.form.address = data.address;
  363. // state.form.agentGender = data.gender;
  364. // } else {
  365. // state.form.agentIdVld = data.enddate;
  366. // state.form.agentNegImgUrl = data.imageUrl;
  367. // }
  368. // });
  369. // })
  370. // .catch((error) => { });
  371. // },
  372. // });
  373. // };
  374. //委托书获取图片给后端
  375. const cardFileImageUpdateyy = (val : any) => {
  376. var data = {
  377. fileBase64: val,
  378. };
  379. const options = {
  380. type: 2,
  381. data: data,
  382. method: "POST",
  383. showLoading: true,
  384. };
  385. request(fileUpload, options).then((res) => {
  386. const data = stringToJson(res.bizContent);
  387. state.form.posImgUrl = data.data.url;
  388. });
  389. };
  390. const camera = () => {
  391. state.phoneType = 0
  392. }
  393. const cardFileImageUpdate = () => {
  394. uni.chooseImage({
  395. count: 1, //只能选取一张照片
  396. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  397. sourceType: ["camera", "album"], //从相册选择
  398. success: function (res) {
  399. pathToBase64(res.tempFilePaths[0])
  400. .then((path) => {
  401. var data = {
  402. fileBase64: path,
  403. };
  404. const options = {
  405. type: 2,
  406. data: data,
  407. method: "POST",
  408. showLoading: true,
  409. };
  410. request(fileUpload, options).then((res) => {
  411. const data = stringToJson(res.bizContent);
  412. state.form.proxyUrl = data.data.url;
  413. });
  414. })
  415. .catch((error) => { });
  416. },
  417. });
  418. };
  419. //替换图片地址
  420. // const strReplace = (str : string) => {
  421. // let imgUrl = str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl);
  422. // imgUrl = imgUrl.replace("http://100.64.2.113:9000", envs[process.env.NODE_ENV].baseUrl);
  423. // return imgUrl;
  424. // }
  425. const takePhotoMode = (index) => {
  426. console.log("index", index)
  427. state.isTakePhotoModeShow = true
  428. state.choiceIndex = index
  429. }
  430. const xiangce = (val) => {
  431. console.log("val", val)
  432. var imageType = val;
  433. uni.chooseImage({
  434. count: 1, //只能选取一张照片
  435. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  436. sourceType: ["album"], //从相册选择
  437. success: function (res) {
  438. state.showImg = false
  439. state.images = res.tempFilePaths[0]
  440. state.phoneType = state.choiceIndex
  441. state.isTakePhotoModeShow = false
  442. console.log("tempFilePaths[0].startsWith('file://')", res.tempFilePaths[0], res.tempFilePaths[0].startsWith('file://'))
  443. },
  444. })
  445. }
  446. const takePhoto = (val) => {
  447. console.log("拍照", val)
  448. state.showImg = true
  449. state.phoneType = val;
  450. }
  451. const confirmReturn = (val) => {
  452. state.phoneType = 0
  453. state.isTakePhotoModeShow = false
  454. var imageType = state.choiceIndex;
  455. console.log("图片地址val", val.tempImagePath)
  456. // pathToBase64(val.tempImagePath).then((path) => {
  457. uni.uploadFile({
  458. url: 'https://qtzl.etcjz.cn/minIo/upload', //仅为示例,非真实的接口地址
  459. filePath: val.tempImagePath,
  460. name: 'file',
  461. formData: {
  462. 'user': 'test',
  463. "bucket": 'default-bucket'
  464. },
  465. success: (uploadFileRes) => {
  466. let uploadFileImage = 'http://100.64.2.113:9000' + '/default-bucket/' + JSON.parse(uploadFileRes.data).data.ossFilePath
  467. console.log("111", JSON.parse(uploadFileRes.data).data.ossFilePath);
  468. var data = {
  469. source: "1",
  470. agencyId: "52010106004",
  471. imageType: imageType,
  472. fileName: val.tempImagePath,
  473. url: uploadFileImage
  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 (state.choiceIndex === "1") {
  484. state.form.agentName = data.name;
  485. state.form.agentIdNum = data.idno;
  486. state.form.agentPosImgUrl = data.imageUrl;
  487. state.form.address = data.address;
  488. state.form.agentGender = data.gender;
  489. } else {
  490. state.form.agentIdVld = data.enddate;
  491. state.form.agentNegImgUrl = data.imageUrl;
  492. }
  493. state.isTakePhotoModeShow = false
  494. });
  495. },
  496. })
  497. // })
  498. // .catch((error) => { });
  499. }
  500. const cancle = () => {
  501. state.isTakePhotoModeShow = false
  502. }
  503. </script>
  504. <style lang="scss" scoped>
  505. .content-wrap {
  506. position: relative;
  507. margin-top: -50rpx;
  508. padding: 0rpx 30rpx;
  509. position: relative;
  510. .action {
  511. padding-left: 20rpx;
  512. padding-right: 20rpx;
  513. padding-bottom: 30rpx;
  514. .button {
  515. height: 80rpx;
  516. background: linear-gradient(-90deg, #43a1e0 0%, #13e7c1 100%);
  517. border-radius: 40rpx;
  518. font-size: 32rpx;
  519. font-weight: 400;
  520. color: #ffffff;
  521. line-height: 80rpx;
  522. }
  523. }
  524. .item-tips {
  525. .title {
  526. font-size: 30rpx;
  527. font-family: Microsoft YaHei;
  528. font-weight: 400;
  529. color: #000000;
  530. line-height: 24rpx;
  531. }
  532. .tip {
  533. margin-top: 16rpx;
  534. font-size: 24rpx;
  535. font-family: Microsoft YaHei;
  536. font-weight: 400;
  537. color: #999999;
  538. line-height: 24rpx;
  539. }
  540. }
  541. .picture-wrapper {
  542. margin-top: 40rpx;
  543. .bg {
  544. background: #ffffff;
  545. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  546. border-radius: 20rpx;
  547. padding: 40rpx;
  548. display: flex;
  549. // align-items: center;
  550. justify-content: space-between;
  551. .name {
  552. font-size: 34rpx;
  553. font-family: Microsoft YaHei;
  554. font-weight: 400;
  555. color: #000000;
  556. line-height: 34rpx;
  557. }
  558. .value {
  559. margin-top: 20rpx;
  560. font-size: 24rpx;
  561. font-family: Microsoft YaHei;
  562. font-weight: 400;
  563. color: #999999;
  564. line-height: 24rpx;
  565. }
  566. .tip {
  567. margin-top: 20rpx;
  568. text-align: center;
  569. width: 110rpx;
  570. height: 40rpx;
  571. background: rgba(33, 190, 177, 0.2);
  572. border-radius: 6rpx;
  573. .tip-value {
  574. font-size: 20rpx;
  575. font-family: Microsoft YaHei;
  576. font-weight: 400;
  577. color: #0a8f8a;
  578. line-height: 40rpx;
  579. opacity: 1;
  580. }
  581. }
  582. }
  583. .icon {
  584. width: 294rpx;
  585. height: 188rpx;
  586. }
  587. }
  588. .shibie-wrapper {
  589. margin-top: 60rpx;
  590. .title {
  591. font-size: 30rpx;
  592. font-family: Microsoft YaHei;
  593. font-weight: 400;
  594. color: #000000;
  595. line-height: 30rpx;
  596. }
  597. }
  598. .buchong-wrapper {
  599. margin-top: 60rpx;
  600. .title {
  601. font-size: 30rpx;
  602. font-family: Microsoft YaHei;
  603. font-weight: 400;
  604. color: #000000;
  605. line-height: 30rpx;
  606. }
  607. }
  608. .green-tip {
  609. margin-top: 50rpx;
  610. font-size: 24rpx;
  611. font-family: Microsoft YaHei;
  612. font-weight: 400;
  613. color: #00b38b;
  614. line-height: 24rpx;
  615. margin-bottom: 60rpx;
  616. }
  617. }
  618. ::v-deep .u-input__input {
  619. background: transparent;
  620. }
  621. ::v-deep .u-form-item--left .u-form-item--left__content {
  622. padding-right: 0px;
  623. }
  624. .choice-takePhoto {
  625. position: absolute;
  626. bottom: 0;
  627. background-color: white;
  628. width: 100%;
  629. border-radius: 20rpx 20rpx 0 0;
  630. }
  631. .choice-takePhoto>view:first-child {
  632. text-align: center;
  633. height: 80rpx;
  634. line-height: 80rpx;
  635. border-bottom: 1rpx solid rgba(127, 127, 127, 0.3);
  636. background-color: white;
  637. }
  638. .choice-takePhoto>view:last-child {
  639. text-align: center;
  640. height: 80rpx;
  641. line-height: 80rpx;
  642. border-top: 6rpx solid rgba(127, 127, 127, 0.1);
  643. background-color: white;
  644. }
  645. .choice-takePhoto>view {
  646. text-align: center;
  647. height: 80rpx;
  648. line-height: 80rpx;
  649. background-color: white;
  650. }
  651. .choice-takePhoto-wrap {
  652. width: 100%;
  653. height: 100vh;
  654. background-color: rgba(127, 127, 127, 0.2);
  655. position: fixed;
  656. left: 0;
  657. top: 0;
  658. z-index: 11111;
  659. }
  660. </style>