{"version":3,"sources":["webpack:///./src/views/pages/activity/pages/activity-join.vue?f1a2","webpack:///src/views/pages/activity/pages/activity-join.vue","webpack:///./src/views/pages/activity/pages/activity-join.vue?ed1c","webpack:///./src/views/pages/activity/pages/activity-join.vue","webpack:///./src/views/pages/activity/pages/activity-join.vue?9b68","webpack:///./src/other/validator.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","on","$event","$router","go","attrs","_v","curIndex","ref","formInline","ruleInline","nativeOn","type","indexOf","_k","keyCode","key","handleSubmit","staticStyle","model","value","callback","$$v","$set","expression","getCaptcha","_s","count","_e","staticRenderFns","name","data","disableIndx","idx","value1","jobTitle","tel","code","company","info","validator","showCode","codeKey","actData","computed","actId","$route","query","id","created","init","methods","userInfo","phone","getActInfo","setIndex","index","validForm","Promise","resolve","valid","cancel","$refs","resetFields","component","required","rule","test","trigger","message","min","max","captcha","password","email","Website","CreditCode","patrn","length","Ancode","Ancodevalue","total","weightedfactors","str","i","substring","logiccheckcode","Str","Array_Str","split","checkcode","BusinessLicenses","regex","ws","codes","Array","substr","sum","charAt","c18","s","p","a","m","parseInt"],"mappings":"gJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,8BAA8B,CAACF,EAAG,MAAM,CAACE,YAAY,YAAY,CAACF,EAAG,OAAO,CAACE,YAAY,gBAAgBC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOR,EAAIS,QAAQC,IAAI,MAAM,CAACN,EAAG,OAAO,CAACO,MAAM,CAAC,KAAO,oBAAoBX,EAAIY,GAAG,SAAS,KAAKR,EAAG,MAAM,CAACE,YAAY,cAAc,CAAmB,IAAjBN,EAAIa,SAAgBT,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAACF,EAAG,OAAO,C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AAS","file":"static/js/chunk-23d4adaa.2c458406.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"activity-details g-content\"},[_c('div',{staticClass:\"ad-title\"},[_c('span',{staticClass:\"ad-title-item\",on:{\"click\":function($event){return _vm.$router.go(-1)}}},[_c('Icon',{attrs:{\"type\":\"ios-arrow-back\"}}),_vm._v(\"返回活动\")],1)]),_c('div',{staticClass:\"ad-content\"},[(_vm.curIndex === 1)?_c('div',[_c('div',{staticClass:\"admin-add\"},[_c('div',{staticClass:\"admin-add-content\"},[_c('Form',{ref:\"formInline\",attrs:{\"model\":_vm.formInline,\"rules\":_vm.ruleInline,\"label-position\":\"right\",\"label-width\":100},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleSubmit('formInline')}}},[_c('FormItem',{attrs:{\"label\":\"姓名:\",\"prop\":\"name\"}},[_c('Input',{staticStyle:{\"width\":\"400px\"},attrs:{\"type\":\"text\",\"placeholder\":\"请输入姓名\"},model:{value:(_vm.formInline.name),callback:function ($$v) {_vm.$set(_vm.formInline, \"name\", $$v)},expression:\"formInline.name\"}})],1),_c('FormItem',{attrs:{\"label\":\"手机:\",\"prop\":\"tel\"}},[_c('Input',{staticStyle:{\"width\":\"400px\"},attrs:{\"type\":\"text\",\"placeholder\":\"请输入手机号码\"},model:{value:(_vm.formInline.tel),callback:function ($$v) {_vm.$set(_vm.formInline, \"tel\", $$v)},expression:\"formInline.tel\"}})],1),_c('FormItem',{staticClass:\"service-code\",attrs:{\"label\":\"验证码:\",\"prop\":\"code\"}},[_c('Input',{staticStyle:{\"width\":\"400px\"},attrs:{\"type\":\"text\",\"placeholder\":\"请输入验证码\"},model:{value:(_vm.formInline.code),callback:function ($$v) {_vm.$set(_vm.formInline, \"code\", $$v)},expression:\"formInline.code\"}}),(_vm.showCode)?_c('Button',{staticClass:\"code-btn1\",attrs:{\"type\":\"text\"},on:{\"click\":_vm.getCaptcha}},[_vm._v(\"获取验证码\")]):_c('Button',{staticClass:\"code-btn2\",staticStyle:{\"color\":\"#ccc\"},attrs:{\"type\":\"text\",\"disabled\":\"\"}},[_vm._v(_vm._s(_vm.count)+\"s后重新获取\")])],1),_c('FormItem',{attrs:{\"label\":\"公司:\",\"prop\":\"company\"}},[_c('Input',{staticStyle:{\"width\":\"400px\"},attrs:{\"type\":\"text\",\"placeholder\":\"请输入公司名称\"},model:{value:(_vm.formInline.company),callback:function ($$v) {_vm.$set(_vm.formInline, \"company\", $$v)},expression:\"formInline.company\"}})],1),_c('FormItem',{attrs:{\"label\":\"职务:\",\"prop\":\"jobTitle\"}},[_c('Input',{staticStyle:{\"width\":\"400px\"},attrs:{\"type\":\"text\",\"placeholder\":\"请输入职务\"},model:{value:(_vm.formInline.jobTitle),callback:function ($$v) {_vm.$set(_vm.formInline, \"jobTitle\", $$v)},expression:\"formInline.jobTitle\"}})],1),_c('FormItem',{attrs:{\"label\":\"备注信息:\"}},[_c('Input',{staticStyle:{\"width\":\"400px\"},attrs:{\"maxlength\":\"200\",\"show-word-limit\":\"\",\"rows\":4,\"type\":\"textarea\",\"placeholder\":\"请输入备注信息\"},model:{value:(_vm.formInline.info),callback:function ($$v) {_vm.$set(_vm.formInline, \"info\", $$v)},expression:\"formInline.info\"}})],1),_c('div',{staticClass:\"f-tac\"},[_c('Button',{staticStyle:{\"width\":\"100px\"},on:{\"click\":function($event){return _vm.handleSubmit('formInline')}}},[_vm._v(\"保存并提交\")])],1)],1)],1)])]):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./activity-join.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./activity-join.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./activity-join.vue?vue&type=template&id=481df9d2&scoped=true&\"\nimport script from \"./activity-join.vue?vue&type=script&lang=js&\"\nexport * from \"./activity-join.vue?vue&type=script&lang=js&\"\nimport style0 from \"./activity-join.vue?vue&type=style&index=0&id=481df9d2&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"481df9d2\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./activity-join.vue?vue&type=style&index=0&id=481df9d2&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./activity-join.vue?vue&type=style&index=0&id=481df9d2&lang=scss&scoped=true&\"","export const validator = { // async-validator 所有验证规则 通用的独立出来\n phone: [\n {\n required: true,\n validator: (rule, value, callback) => {\n if (!value) {\n callback('请输入手机号码');\n } else if (/^[1][0-9]{10}$/.test(value)) {\n callback();\n } else {\n callback('请输入正确的手机号码');\n }\n }, trigger: \"blur\"\n }\n ],\n name: [\n { required: true, message: \"用户名不能为空\", trigger: \"blur\" },\n { type: \"string\", min: 3, message: \"用户名不能小于4位\", trigger: \"blur\" },\n { type: \"string\", max: 15, message: \"用户名不能大于15位\", trigger: \"blur\" }\n ],\n captcha: [\n { required: true, message: \"验证码为必填选项\", trigger: \"blur\" }\n ],\n password: [\n { required: true, message: \"密码不能为空\", trigger: \"blur\" },\n { type: \"string\", min: 4, message: \"密码不能小于4位\", trigger: \"blur\" },\n { type: \"string\", max: 12, message: \"密码不能大于12位\", trigger: \"blur\" }\n ],\n email: [\n { required: true, message: '邮箱不能为空', trigger: 'blur' },\n { type: 'email', message: '邮箱格式有误', trigger: 'blur' }\n ],\n Website: [ // 验证网址\n {\n validator: (rule, value, callback) => {\n if (value) {\n if (/(http|https):\\/\\/([\\w.]+\\/?)\\S*/.test(value)) {\n callback();\n } else {\n callback(\"请输入正确的外链地址\");\n }\n } else {\n callback();\n }\n }, trigger: \"blur\"\n }\n ],\n CreditCode: [ // 验证统一社会信用代码\n {\n validator: (rule, value, callback) => {\n if (!value) {\n callback();\n }\n var patrn = /^[0-9A-Z]+$/;\n //18位校验及大写校验\n if ((value.length != 18) || (patrn.test(value) == false)) {\n callback(\"请输入正确的统一社会信用代码\");\n }\n else {\n var Ancode;//统一社会信用代码的每一个值\n var Ancodevalue;//统一社会信用代码每一个值的权重\n var total = 0;\n var weightedfactors = [1, 3, 9, 27, 19, 26, 16, 17, 20, 29, 25, 13, 8, 24, 10, 30, 28];//加权因子\n var str = '0123456789ABCDEFGHJKLMNPQRTUWXY';\n //不用I、O、S、V、Z\n for (var i = 0; i < value.length - 1; i++) {\n Ancode = value.substring(i, i + 1);\n Ancodevalue = str.indexOf(Ancode);\n total = total + Ancodevalue * weightedfactors[i];\n //权重与加权因子相乘之和\n }\n var logiccheckcode = 31 - total % 31;\n if (logiccheckcode == 31) {\n logiccheckcode = 0;\n }\n var Str = \"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\";\n var Array_Str = Str.split(',');\n logiccheckcode = Array_Str[logiccheckcode];\n var checkcode = value.substring(17, 18);\n if (logiccheckcode != checkcode) {\n callback(\"请输入正确的统一社会信用代码\");\n } else {\n callback();\n }\n callback();\n }\n }, trigger: \"blur\"\n }\n ],\n BusinessLicenses: [ // 验证统一社会信用代码\n {\n validator: (rule, value, callback) => {\n if (!value) {\n callback();\n }\n if (value.length != 18 && value.length != 15) { \n callback(\"请输入正确的营业执照\");\n }\n //十八位新码\n if (value.length == 18) {\n var regex = /^([159Y]{1})([1239]{1})([0-9ABCDEFGHJKLMNPQRTUWXY]{6})([0-9ABCDEFGHJKLMNPQRTUWXY]{9})([0-90-9ABCDEFGHJKLMNPQRTUWXY])$/;\n if (!regex.test(value)) { \n callback(\"请输入正确的营业执照\");\n }\n var str = \"0123456789ABCDEFGHJKLMNPQRTUWXY\";\n var ws = [1, 3, 9, 27, 19, 26, 16, 17, 20, 29, 25, 13, 8, 24, 10, 30, 28];\n var codes = new Array();\n codes[0] = value.substr(0, value.length - 1);\n codes[1] = value.substr(value.length - 1, value.length);\n var sum = 0;\n for (var i = 0; i < 17; i++) {\n sum += str.indexOf(codes[0].charAt(i)) * ws[i];\n }\n var c18 = 31 - (sum % 31);\n if (c18 == 31) {\n c18 = 'Y';\n } else if (c18 == 30) {\n c18 = '0';\n }\n if (str.charAt(c18) != codes[1].charAt(0)) {\n\n callback(\"请输入正确的营业执照\");\n }\n callback();\n\n }\n //十五位编码\n else {\n var ret = false;\n var sum = 0;\n var s = [];\n var p = [];\n var a = [];\n var m = 10;\n p[0] = m;\n for (var i = 0; i < value.length; i++) {\n a[i] = parseInt(value.substring(i, i + 1), m);\n s[i] = (p[i] % (m + 1)) + a[i];\n if (0 == s[i] % m) {\n p[i + 1] = 10 * 2;\n } else {\n p[i + 1] = (s[i] % m) * 2;\n }\n }\n if (1 == (s[14] % m)) {\n callback();\n } else {\n callback(\"请输入正确的营业执照\");\n }\n }\n }, trigger: \"blur\"\n }\n ]\n} "],"sourceRoot":""}