1 line
9.6 KiB
Plaintext
1 line
9.6 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/subPages/realName-authentication/index.vue?5bca","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/subPages/realName-authentication/index.vue?2625","webpack:///E:/project/project-wl-yonghuduan-uniapp-vue3/subPages/realName-authentication/index.vue?5621","uni-app:///subPages/realName-authentication/index.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,kH,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACoE;AACL;AAC4B;;;AAG3F;AAC+L;AAC/L,gBAAgB,sMAAU;AAC1B,EAAE,sFAAM;AACR,EAAE,4FAAM;AACR,EAAE,qGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,gGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAA4uB,CAAgB,uvBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACiChwB;;;;;;AAMA;;;AAGA,4D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,6CACA,yCACA,uCACA,wC,CACA;AACA,gDACA,uHACA,0FACA,CAHA,EAIA,6CACA,4BACA,2CACA,oCACA,2BACA,CAFA,MAEA,CACA,4BACA,CACA,CARA,CAUA,qDACA,0CACA,oCACA,+BACA,CAFA,MAEA,CACA,gCACA,CACA,CAPA,CASA,8CACA,0BACA;AACA,CAHA;;AAKA;AACA;AACA;AACA,CAHA;;AAKA;AACA;AACA;AACA;AACA;AACA,sBADA;AAEA,kBAFA;AAGA,oBAHA;;AAKA;AACA;AACA,WADA;AAEA,iCAFA;AAGA,8BAHA;AAIA,MAJA,CAIA;AACA;AACA;AACA;AACA,sBADA;AAEA,oBAFA;AAGA,sBAHA;;AAKA,KANA,MAMA;;AAEA;AACA,qBADA;AAEA,oBAFA;AAGA,sBAHA;;AAKA;AACA;AACA,gCADA;;AAGA,OAJA,EAIA,IAJA;;AAMA;AACA;AACA,GA3BA;AA4BA,CArCA,C","file":"subPages/realName-authentication/index.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './subPages/realName-authentication/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=71333222&scoped=true&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./index.vue?vue&type=script&setup=true&lang=js&\"\nimport style0 from \"./index.scss?vue&type=style&index=0&id=71333222&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"71333222\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"subPages/realName-authentication/index.vue\"\nexport default component.exports","export * from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=71333222&scoped=true&\"","import mod from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!C:\\\\Users\\\\itcast\\\\Downloads\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&setup=true&lang=js&\"","<template>\r\n\t<!-- 头部导航栏 -->\r\n\t<nav-bar title='实名认证'></nav-bar>\r\n\t<view class=\"realName-authentication\">\r\n\t\t<view class=\"tips\">当前仅支持持有中国内地居民身份证的用户进行线上实名认证</view>\r\n\t\t<view class=\"content\">\r\n\t\t\t根据《邮件快件实名收寄管理办法》等相关法律法规的要求,为了更好地向您提供邮件快件的收寄件服务,需您提供真实的身份信息。后续您本人寄件时仅需出示有效身份证件供查阅确认即可,无需再次采集。\r\n\t\t</view>\r\n\t\t<view class=\"form\">\r\n\t\t\t<view class=\"name-item\">\r\n\t\t\t\t<view class=\"label\">姓名</view>\r\n\t\t\t\t<view class=\"input-box\">\r\n\t\t\t\t\t<input @input=\"clearInputName\" :value=\"nameInputValue\" class=\"uni-input\" placeholder=\"请填写\" />\r\n\t\t\t\t\t<image class=\"uni-icon\" src='../../static/shanchu.png' v-if=\"showClearIconName\"\r\n\t\t\t\t\t\t@click=\"clearIconName\" />\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"identify-item\">\r\n\t\t\t\t<view class=\"label\">身份证号</view>\r\n\t\t\t\t<view class=\"input-box\">\r\n\t\t\t\t\t<input @input=\"clearInput\" :value=\"inputClearValue\" class=\"uni-input\" placeholder=\"请填写\" />\r\n\t\t\t\t\t<image class=\"uni-icon\" src='../../static/shanchu.png' v-if=\"showClearIcon\" @click=\"clearIcon\" />\r\n\t\t\t\t</view>\r\n\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"footer\">\r\n\t\t\t<view class=\"btn\" :class=\"isCanAuth?'active':''\" @click=\"doAuth\">开始认证</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport {\r\n\t\tref,\r\n\t\treactive,\r\n\t\tonMounted,\r\n\t\tcomputed\r\n\t} from 'vue';\r\n\timport {\r\n\t\tvalidateIdentityCard\r\n\t} from '@/utils/validate.js'\r\n\timport {\r\n\t\tgetRealNameStatusApi\r\n\t} from '@/pages/api/my.js'\r\n\tlet showClearIconName = ref(false)\r\n\tlet showClearIcon = ref(false)\r\n\tlet nameInputValue = ref('')\r\n\tlet inputClearValue = ref('')\r\n\t//是否可以开始认证\r\n\tconst isCanAuth = computed(() => {\r\n\t\tconsole.log(validateIdentityCard(inputClearValue.value), nameInputValue.value, 'inputClearValue.value')\r\n\t\treturn validateIdentityCard(inputClearValue.value) && nameInputValue.value\r\n\t})\r\n\tconst clearInput = (event) => {\r\n\t\tconsole.log(event, 'event')\r\n\t\tinputClearValue.value = event.detail.value;\r\n\t\tif (event.detail.value.length > 0) {\r\n\t\t\tshowClearIcon.value = true;\r\n\t\t} else {\r\n\t\t\tshowClearIcon.value = false;\r\n\t\t}\r\n\t}\r\n\r\n\tconst clearInputName = (event) => {\r\n\t\tnameInputValue.value = event.detail.value;\r\n\t\tif (event.detail.value.length > 0) {\r\n\t\t\tshowClearIconName.value = true;\r\n\t\t} else {\r\n\t\t\tshowClearIconName.value = false;\r\n\t\t}\r\n\t}\r\n\r\n\tconst clearIconName = () => {\r\n\t\tnameInputValue.value = '';\r\n\t\tshowClearIconName.value = false;\r\n\t}\r\n\r\n\tconst clearIcon = () => {\r\n\t\tinputClearValue.value = '';\r\n\t\tshowClearIcon.value = false;\r\n\t}\r\n\r\n\t//开始身份认证\r\n\tconst doAuth = () => {\r\n\t\tconsole.log(isCanAuth, 'isCanAuth')\r\n\t\tif (!isCanAuth.value) {\r\n\t\t\treturn uni.showToast({\r\n\t\t\t\ttitle: '信息填写不完整',\r\n\t\t\t\ticon: 'none',\r\n\t\t\t\tduration: 1000\r\n\t\t\t})\r\n\t\t}\r\n\t\tgetRealNameStatusApi({\r\n\t\t\tflag: 1,\r\n\t\t\tidCard: inputClearValue.value,\r\n\t\t\tname: nameInputValue.value\r\n\t\t}).then((res) => {\r\n\t\t\tconsole.log(res, 'getRealNameStatusApi')\r\n\t\t\tif (res.code !== 200) {\r\n\t\t\t\tuni.showToast({\r\n\t\t\t\t\ttitle: res.msg,\r\n\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\tduration: 1000\r\n\t\t\t\t})\r\n\t\t\t} else {\r\n\r\n\t\t\t\tuni.showToast({\r\n\t\t\t\t\ttitle: '认证成功',\r\n\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\tduration: 1000,\r\n\t\t\t\t})\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tuni.redirectTo({\r\n\t\t\t\t\t\turl: '/pages/my/index'\r\n\t\t\t\t\t})\r\n\t\t\t\t}, 2000)\r\n\r\n\t\t\t}\r\n\t\t\tconsole.log(res, 'res')\r\n\t\t})\r\n\t}\r\n</script>\r\n\r\n<style src=\"./index.scss\" lang=\"scss\" scoped></style>\n"],"sourceRoot":""} |