forked from golang/hotime
1 line
28 KiB
Plaintext
1 line
28 KiB
Plaintext
{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.regexp.test.js","webpack:///./src/components/Companytwo.vue","webpack:///./src/components/Companytwo.vue?6237","webpack:///./src/components/Companytwo.vue?0726","webpack:///./src/components/Companytwo.vue?b268"],"names":["$","global","call","uncurryThis","isCallable","isObject","DELEGATES_TO_EXEC","execCalled","re","exec","apply","this","arguments","test","Error","un$Test","target","proto","forced","str","result","class","style","title","left-arrow","onClickLeft","after-read","afterRead0","src","form","company_img","setImg","inset","company_name","label","placeholder","company_sn","category_name","showPicker","name","readonly","show","position","columns","onConfirm","columns-field-names","columnsType","clickRealImg","default","plain","icon","type","size","showRealImg","afterRead1","buttonRealText","phone","code","button","sendSms","smsTime","offset-bottom","nextClick","block","round","color","images","onChange","index","data","text","loading","finished","refreshing","idcard","idcard_front_img","idcard_back_img","auth_img","mounted","console","log","that","localStorage","getItem","JSON","parse","then","res","methods","value","category_id","id","length","interval","setInterval","clearInterval","alert","message","regName","Tyshyxdm","reg1Name","$router","push","file","cutImageBase64","base64Data","Name","RegNum","url","s","TextDetections","i","indexOf","DetectedText","getTime","unixTime","format","history","back","verify","firstarray","firstkeys","secondarray","secondkeys","toUpperCase","reg","firstword","firstkey","calc","substr","secondkey","secondword","word","array1","array2","b","count","a","wid","quality","callback","base64","URL","window","webkitURL","blob","createObjectURL","img","Image","onload","w","width","h","height","scale","canvas","document","createElement","ctx","getContext","setAttribute","drawImage","toDataURL","__exports__","render"],"mappings":"kHAEA,EAAQ,QACR,IAAIA,EAAI,EAAQ,QACZC,EAAS,EAAQ,QACjBC,EAAO,EAAQ,QACfC,EAAc,EAAQ,QACtBC,EAAa,EAAQ,QACrBC,EAAW,EAAQ,QAEnBC,EAAoB,WACtB,IAAIC,GAAa,EACbC,EAAK,OAKT,OAJAA,EAAGC,KAAO,WAER,OADAF,GAAa,EACN,IAAIE,KAAKC,MAAMC,KAAMC,aAEJ,IAAnBJ,E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UAChCC,EAAMH,EAAOI,WAAW,MAE5BJ,EAAOK,aAAa,QAASV,GAC7BK,EAAOK,aAAa,SAAUR,GAC9BM,EAAIG,UAAUhF,EAAM,EAAG,EAAGqE,EAAGE,GAE7BX,EAASc,EAAOO,UAAU,aAAcvB,GAAW,IAGnDC,EAASC,O,2CCvXjB,MAAMsB,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAE1E,gB,oCCVf,W,kCCAA","file":"js/chunk-ba187202.183d1915.js","sourcesContent":["'use strict';\n// TODO: Remove from `core-js@4` since it's moved to entry points\nrequire('../modules/es.regexp.exec');\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar DELEGATES_TO_EXEC = function () {\n var execCalled = false;\n var re = /[ac]/;\n re.exec = function () {\n execCalled = true;\n return /./.exec.apply(this, arguments);\n };\n return re.test('abc') === true && execCalled;\n}();\n\nvar Error = global.Error;\nvar un$Test = uncurryThis(/./.test);\n\n// `RegExp.prototype.test` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.test\n$({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {\n test: function (str) {\n var exec = this.exec;\n if (!isCallable(exec)) return un$Test(this, str);\n var result = call(exec, this, str);\n if (result !== null && !isObject(result)) {\n throw new Error('RegExp exec method returned something other than an Object or null');\n }\n return !!result;\n }\n});\n","<template>\r\n <div class=\"CompanyRegistered\">\r\n <van-nav-bar title=\"企业认证\" left-arrow @click-left=\"onClickLeft\"></van-nav-bar>\r\n<!-- <div class=\"flowbox\">-->\r\n<!-- <div class=\"flowcon\">-->\r\n<!-- <img src=\"../assets/img/cc2.png\" class=\"circle2\">-->\r\n<!-- <i class=\"lines2\"></i>-->\r\n<!-- <img src=\"../assets/img/cc2.png\" class=\"circle2\">-->\r\n<!-- <i class=\"lines2\"></i>-->\r\n<!-- <img src=\"../assets/img/cc3.png\" class=\"circle1\">-->\r\n<!-- </div>-->\r\n<!-- <div class=\"flowpox\">-->\r\n<!-- <div style=\"color: #478ff3\">上传身份信息</div>-->\r\n<!-- <div style=\"margin-left: 24px;color: #478ff3\">上传企业信息</div>-->\r\n<!-- <div style=\"margin-left: 50px\">完成</div>-->\r\n<!-- </div>-->\r\n<!-- </div>-->\r\n <div style=\"overflow-y: scroll;height: calc(100vh - 136px);\">\r\n\r\n <div class=\"upphoto\">\r\n <h1 class=\"bigtitle\">上传营业执照</h1>\r\n <h2 class=\"stitle\">完成认证需要核实营业执照信息,请拍摄企业的营业执照</h2>\r\n <div class=\"photobox\">\r\n <van-uploader :after-read=\"afterRead0\">\r\n <img :src=\"form.company_img==null?'img/zhizao.png':setImg(form.company_img)\"\r\n style=\"width: 300px;height: 194px\">\r\n </van-uploader>\r\n </div>\r\n </div>\r\n <div class=\"fabox\">\r\n <van-cell-group inset style=\"border: 1px solid #ccc\">\r\n <van-field v-model=\"form.company_name\" label=\"企业名称\" placeholder=\"请输入企业名称\"/>\r\n <van-field v-model=\"form.company_sn\" label=\"社会信用代码\" placeholder=\"请输入社会信用代码\"/>\r\n <van-field v-model=\"form.category_name\" @click=\"showPicker = true\" name=\"picker\" readonly label=\"行业大类\" placeholder=\"请选择行业大类\"/>\r\n </van-cell-group>\r\n <van-popup v-model:show=\"showPicker\" position=\"bottom\">\r\n <van-picker\r\n :columns=\"columns\"\r\n @confirm=\"onConfirm\"\r\n :columns-field-names=\"columnsType\"\r\n @cancel=\"showPicker = false\"\r\n />\r\n </van-popup>\r\n </div>\r\n <div class=\"upphoto\" style=\"height: 530px\">\r\n <h1 class=\"bigtitle\">上传真实性授权承诺声明</h1>\r\n <h2 class=\"stitle\">完成认证需要上传真实性授权承诺声明,请按规定下载打印填写真实性承诺申明文件</h2>\r\n <div class=\"photobox\">\r\n\r\n <van-image src=\"img/realdemoimg.jpg\" @click=\"clickRealImg\">\r\n <template v-slot:default>\r\n <div style=\"padding: 5px 5px 5px 5px\">参考填写样例</div>\r\n </template>\r\n </van-image>\r\n <van-button plain icon=\"down\" type=\"primary\" size=\"large\" @click=\"showRealImg=true\">下载真实性授权承诺声明</van-button>\r\n\r\n <van-uploader class=\"real\" style=\"margin: 10px 0\" :after-read=\"afterRead1\">\r\n <van-button icon=\"plus\" plain type=\"success\" size=\"large\" >{{buttonRealText}}真实性授权承诺声明</van-button>\r\n </van-uploader>\r\n </div>\r\n </div>\r\n <div class=\"upphoto\">\r\n <h1 class=\"bigtitle\">个人信息填写</h1>\r\n </div>\r\n <div class=\"fabox\" style=\"margin-bottom: 10px\">\r\n <van-cell-group inset style=\"border: 1px solid #ccc\">\r\n <van-field v-model=\"form.name\" label=\"姓 名\" placeholder=\"请输入你的真实姓名\"/>\r\n <van-field v-model=\"form.phone\" label=\"手机号\" placeholder=\"请输入手机号\"/>\r\n <van-field v-model=\"form.code\" label=\"短信验证码\" placeholder=\"请输入短信验证码\">\r\n <template #button>\r\n <van-button size=\"small\" type=\"primary\" @click=\"sendSms\">\r\n <template v-if=\"smsTime!=0\">{{ smsTime }}S</template>\r\n <template v-if=\"smsTime==0\">发送短信</template>\r\n </van-button>\r\n </template>\r\n </van-field>\r\n </van-cell-group>\r\n\r\n </div>\r\n </div>\r\n <van-sticky :offset-bottom=\"0\" position=\"bottom\">\r\n <div class=\"nextbtn\" @click=\"nextClick\">\r\n <van-button type=\"primary\" block round size=\"large\" color=\"#2f58e4\">完成认证</van-button>\r\n </div>\r\n </van-sticky>\r\n\r\n <van-image-preview v-model:show=\"showRealImg\" :images=\"['img/realimg.jpg']\" @change=\"onChange\">\r\n <template v-slot:index>长按保存图片</template>\r\n </van-image-preview>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport {post, baseUrl, cache, setToken, get} from \"../api/http\"\r\nimport {Dialog,ImagePreview} from \"vant\";\r\nimport moment from 'moment';\r\n\r\nexport default {\r\n name: \"Companytwo\",\r\n\r\n data() {\r\n return {\r\n columns : [],\r\n columnsType:{ text: 'name'},\r\n buttonRealText:'上传',\r\n showRealImg:false,\r\n loading: false,\r\n finished: false,\r\n refreshing: false,\r\n showPicker:false,\r\n smsTime:0,\r\n form: {\r\n name: \"\",\r\n idcard: \"\",\r\n phone: \"\",\r\n idcard_front_img: null,\r\n idcard_back_img: null,\r\n auth_img:null,\r\n company_name: \"\",\r\n company_sn: \"\",\r\n company_img: null\r\n },\r\n }\r\n\r\n\r\n },\r\n mounted() {\r\n console.log(\"dasdas\")\r\n var that=this\r\n var data = localStorage.getItem(\"data\")\r\n if (data != null) {\r\n this.form = JSON.parse(data)\r\n }\r\n get(\"app/category/list\",{}).then(function (res) {\r\n that.columns=res.result\r\n })\r\n get(\"app/user/token\",{}).then(function (res) {\r\n setToken(res.result)\r\n })\r\n },\r\n\r\n methods: {\r\n clickRealImg(){\r\n ImagePreview([\"img/realdemoimg.jpg\"]);\r\n },\r\n onConfirm(value){\r\n this.form.category_name = value.name;\r\n this.form.category_id = value.id;\r\n this.showPicker = false;\r\n },\r\n sendSms(){\r\n if (this.form.phone.length != 11) {\r\n Dialog.alert({message: '手机号码格式不对'});\r\n return;\r\n }\r\n\r\n if (this.smsTime != 0) {\r\n return\r\n }\r\n this.smsTime = 60\r\n var that = this\r\n var interval = setInterval(function () {\r\n that.smsTime--\r\n if (that.smsTime === 0) {\r\n clearInterval(interval)\r\n }\r\n }, 1000)\r\n\r\n post(\"app/sms/send\",{phone:that.form.phone}).then(function (res) {\r\n console.log(res)\r\n Dialog.alert({message: '已发送短信'});\r\n })\r\n },\r\n nextClick() {\r\n\r\n var that = this\r\n var regName = /^[\\u4e00-\\u9fa5]{2,60}$/;\r\n if (this.form.company_name == null || this.form.company_name.length < 2 || !regName.test(this.form.company_name)) {\r\n Dialog.alert({message: '企业名称输入错误'});\r\n return\r\n }\r\n if (this.Tyshyxdm(this.form.company_sn) == false) {\r\n Dialog.alert({message: '统一社会信用代码错误'});\r\n return\r\n }\r\n if (this.form.company_img == null) {\r\n Dialog.alert({message: '请上传营业执照文件'});\r\n return\r\n }\r\n if (this.form.auth_img == null) {\r\n Dialog.alert({message: '请上传真实性授权承诺声明文件'});\r\n return\r\n }\r\n\r\n\r\n if (this.form.phone.length != 11) {\r\n Dialog.alert({message: '手机号输入错误'});\r\n return\r\n }\r\n\r\n var reg1Name = /^[\\u4e00-\\u9fa5]{2,4}$/;\r\n if (this.form.name.length < 2 || !reg1Name.test(this.form.name)) {\r\n Dialog.alert({message: '姓名输入错误'});\r\n return\r\n }\r\n\r\n if (this.form.code.length !=4) {\r\n Dialog.alert({message: '请填写短信验证码'});\r\n return\r\n }\r\n\r\n cache(\"data\",this.form)\r\n\r\n post(\"app/user/auth\", this.form).then(function (res) {\r\n setToken(res.result)\r\n that.$router.push({'path': '/companyfinish'})\r\n })\r\n\r\n\r\n },\r\n afterRead0(file) {\r\n var that=this\r\n // 此时可以自行将文件上传至服务器\r\n this.cutImageBase64(file.file, 1000, 0.8, function (base64Data) {\r\n //下面的事项\r\n post(\"app/user/upload?type=company\",{file:base64Data}).then(function (res) {\r\n\r\n\r\n if(res.result.Name==\"\"||res.result.RegNum==\"\"){\r\n Dialog.alert({message: '上传的不是营业执照,请重新上传'});\r\n return\r\n }\r\n\r\n that.form.company_img=res.result.url\r\n that.form.company_name=res.result.Name\r\n that.form.company_sn=res.result.RegNum\r\n })\r\n });\r\n\r\n },\r\n afterRead1(file) {\r\n // 此时可以自行将文件上传至服务器\r\n var str='真实性授权承诺声明 现授权我司员工 为政企超链接全权使用代表,并代表我单位处理在政企超链接中的一切事宜。 我单位承诺,本表中填写的有关内容和提交的资料均准确、合法、有效。本企业愿承担相关法律责任。 授权单位:'\r\n\r\n var that=this\r\n this.cutImageBase64(file.file, 1000, 0.8, function (base64Data) {\r\n //下面的事项\r\n post(\"app/user/upload?type=common\",{file:base64Data}).then(function (res) {\r\n var s=false\r\n if(res.result.TextDetections!=null){\r\n\r\n for(var i=0;i<res.result.TextDetections.length;i++){\r\n if(str.indexOf(res.result.TextDetections[i].DetectedText)!=-1){\r\n s=true\r\n break;\r\n }\r\n }\r\n\r\n }\r\n if(s==false){\r\n Dialog.alert({message: '上传的不是真实性授权承诺声明,请重新上传'});\r\n return\r\n }\r\n that.form.auth_img=res.result.url\r\n that.buttonRealText=\"已上传\"\r\n Dialog.alert({message: '已成功上传真实性授权承诺声明'});\r\n })\r\n });\r\n },\r\n\r\n getTime(unixTime) {\r\n\r\n return moment(unixTime * 1000).format(\"YYYY-MM-DD HH:mm:ss\");\r\n },\r\n\r\n setImg(src) {\r\n if (src == null || src == \"\") {\r\n return \"./img/logo.png\"\r\n }\r\n return baseUrl + src\r\n },\r\n onClickLeft: () => history.back(),\r\n\r\n//统一社会信用代码\r\n Tyshyxdm: function (verify) {\r\n\r\n if (verify == null || verify.length < 5) {\r\n return false\r\n }\r\n this.firstarray = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'];\r\n this.firstkeys = [3, 7, 9, 10, 5, 8, 4, 2];\r\n this.secondarray = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'L', 'M', 'N', 'P', 'Q', 'R', 'T', 'U', 'W', 'X', 'Y'];\r\n this.secondkeys = [1, 3, 9, 27, 19, 26, 16, 17, 20, 29, 25, 13, 8, 24, 10, 30, 28];\r\n this.verify = function (str) {\r\n var code = str.toUpperCase();\r\n\r\n\r\n if (code.length != 18) {\r\n return false;\r\n }\r\n var reg = /^\\w\\w\\d{6}\\w{9}\\w$/;\r\n if (!reg.test(code)) {\r\n return false;\r\n }\r\n\r\n reg = /^[1,5,9,Y]\\w\\d{6}\\w{9}\\w$/;\r\n if (!reg.test(code)) {\r\n return false;\r\n }\r\n\r\n reg = /^(11|12|13|19|51|52|53|59|91|92|93|Y1)\\d{6}\\w{9}\\w$/;\r\n if (!reg.test(code)) {\r\n return false;\r\n }\r\n\r\n reg = /^(11|12|13|19|51|52|53|59|91|92|93|Y1)\\d{6}\\w{9}\\w$/;\r\n if (!reg.test(code)) {\r\n return false;\r\n }\r\n\r\n var firstkey = this.calc(code.substr(8), this.firstarray, this.firstkeys, 11);\r\n\r\n var firstword;\r\n if (firstkey < 10) {\r\n firstword = firstkey;\r\n }\r\n if (firstkey == 10) {\r\n firstword = 'X';\r\n } else if (firstkey == 11) {\r\n firstword = '0';\r\n }\r\n if (firstword != code.substr(16, 1)) {\r\n return false;\r\n }\r\n var secondkey = this.calc(code, this.secondarray, this.secondkeys, 31);\r\n\r\n var secondword = this.secondarray[secondkey];\r\n if (!secondword || secondword != code.substr(17, 1)) {\r\n return false;\r\n }\r\n var word = code.substr(0, 16) + firstword + secondword;\r\n if (code != word) {\r\n return false;\r\n }\r\n return true;\r\n }\r\n this.calc = function (code, array1, array2, b) {\r\n var count = 0;\r\n for (var i = 0; i < array2.length; i++) {\r\n var a = code[i];\r\n count += array2[i] * array1.indexOf(a);\r\n }\r\n return b - count % b;\r\n }\r\n return this.verify(verify)\r\n },\r\n cutImageBase64: function (file, wid, quality, callback) {\r\n\r\n // var file = m_this.files[0];\r\n var URL = window.URL || window.webkitURL;\r\n var blob = URL.createObjectURL(file);\r\n var base64;\r\n var img = new Image();\r\n img.src = blob;\r\n img.onload = function () {\r\n var that = this;\r\n //生成比例\r\n var w = that.width,\r\n h = that.height,\r\n scale = w / h;\r\n w = wid || w;\r\n h = w / scale;\r\n//生成canvas\r\n var canvas = document.createElement('canvas');\r\n var ctx = canvas.getContext('2d');\r\n\r\n canvas.setAttribute(\"width\", w)\r\n canvas.setAttribute(\"height\", h)\r\n ctx.drawImage(that, 0, 0, w, h);\r\n // 生成base64\r\n base64 = canvas.toDataURL('image/jpeg', quality || 0.8);\r\n // console.log(base64)\r\n // return base64\r\n callback(base64)\r\n };\r\n },\r\n },\r\n\r\n}\r\n</script>\r\n<style>\r\n.real .van-uploader__input-wrapper{\r\n width: 100%;\r\n}\r\n.real{\r\n width: 100%;\r\n}\r\n</style>\r\n<style scoped>\r\n\r\n.CompanyRegistered {\r\n width: 100%;\r\n height: 100%;\r\n background: #fff;\r\n position: fixed\r\n}\r\n\r\n.flowbox {\r\n padding: 15px 0;\r\n}\r\n\r\n.flowcon {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n width: 300px;\r\n margin: 0 auto;\r\n padding-bottom: 8px\r\n}\r\n\r\n.flowpox {\r\n display: flex;\r\n align-items: center;\r\n width: 328px;\r\n font-size: 16px;\r\n margin: 0 auto\r\n}\r\n\r\n.lines2 {\r\n width: 100px;\r\n height: 2px;\r\n border-bottom: 2px dashed #478ff3\r\n}\r\n\r\n.lines1 {\r\n width: 100px;\r\n height: 2px;\r\n border-bottom: 2px dashed #ccc\r\n}\r\n\r\n.circle2 {\r\n width: 22px\r\n}\r\n\r\n.circle1 {\r\n width: 16px;\r\n}\r\n\r\n.upphoto {\r\n padding-top: 26px;\r\n margin: 0 auto;\r\n text-align: center;\r\n}\r\n\r\n.bigtitle {\r\n font-size: 24px;\r\n font-weight: bold;\r\n margin-bottom: 15px;\r\n}\r\n\r\n.stitle {\r\n font-weight: normal\r\n}\r\n\r\n.photobox {\r\n width: 300px;\r\n height: 185px;\r\n margin: 24px auto\r\n}\r\n\r\n.photobox img {\r\n width: 100%;\r\n height: 100%\r\n}\r\n\r\n.nextbtn {\r\n padding: 0 30px 30px\r\n}\r\n\r\n.fabox {\r\n padding: 0px 20px 10px;\r\n}\r\n</style>\r\n","import { render } from \"./Companytwo.vue?vue&type=template&id=b8e1b5f4&scoped=true\"\nimport script from \"./Companytwo.vue?vue&type=script&lang=js\"\nexport * from \"./Companytwo.vue?vue&type=script&lang=js\"\n\nimport \"./Companytwo.vue?vue&type=style&index=0&id=b8e1b5f4&lang=css\"\nimport \"./Companytwo.vue?vue&type=style&index=1&id=b8e1b5f4&scoped=true&lang=css\"\n\nimport exportComponent from \"D:\\\\work\\\\zqclj\\\\node_modules\\\\@vue\\\\cli-service\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b8e1b5f4\"]])\n\nexport default __exports__","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./Companytwo.vue?vue&type=style&index=1&id=b8e1b5f4&scoped=true&lang=css\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./Companytwo.vue?vue&type=style&index=0&id=b8e1b5f4&lang=css\""],"sourceRoot":""} |