{"version":3,"sources":["webpack:///./src/views/login/Sign.vue","webpack:///./src/views/login/Sign.vue?bc45","webpack:///./src/views/login/Sign.vue?799c","webpack:///./src/static/images/success.png","webpack:///./src/static/images/agree.png","webpack:///./src/views/login/Sign.vue?2c12"],"names":["class","src","alt","type","style","stepnow","lan","$t","navto","layout","formLayout","label","compact","default-value","mrqh","name","code","size","getquhao","option-label-prop","show-search","quhaolist","i","j","key","value","phone","placeholder","getcode","time","next","agree","ifagree","userinfo","pass","passtow","emil","muyu","jiaoshou","willsay","item","index","components","NavTop","setup","labelCol","wrapperCol","store","state","qh","quhao","id","then","res","lock","message","error","iszc","undefined","sessionStorage","getItem","data","msg","timestep","setInterval","clearInterval","yanzheng","e","yz","url","router","push","toString","split","render","__scopeId","module","exports"],"mappings":"2VACSA,MAAM,S,GAEFA,MAAM,O,GAEEA,MAAM,S,GAEDA,MAAM,W,aAIPA,MAAM,U,EA4CC,yBAAwB,OAAnBA,MAAM,QAAM,S,EAmBjB,yBAAwB,OAAnBA,MAAM,QAAM,S,GAUhBA,MAAM,W,SAEHC,IAAA,IACAC,IAAI,GACJF,MAAM,S,aAUjBA,MAAM,U,GAKFA,MAAM,Y,GAyDNA,MAAM,W,aAKVA,MAAM,U,EACX,yBAIE,OAHEC,IAAA,IACAC,IAAI,GACJF,MAAM,W,YAQTA,MAAM,S,GACFA,MAAM,Q,EAQX,yBAA4B,OAAvBA,MAAM,YAAU,S,GAChBA,MAAM,Q,EAWX,yBAA4B,OAAvBA,MAAM,YAAU,S,GAChBA,MAAM,Q,SASVA,MAAM,S,EACP,yBAA4D,OAAvDC,IAAA,IAAiCC,IAAI,GAAGF,MAAM,Q,WACnD,yBAA2D,OAAtDC,IAAA,IAAgCC,IAAI,GAAGF,MAAM,Q,WAClD,yBAIE,OAHEC,IAAA,IACAC,IAAI,GACJF,MAAM,Q,oaArN1B,yBA0NM,MA1NN,EA0NM,CAzNF,yBAAkD,GAAzCG,KAAM,EAAGC,MAAA,sBAClB,yBAuN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EAAO4D,OAAS,EAChB,EAAOC,UAAY,kBAEJ,gB,8CCRfC,EAAOC,QAAU,IAA0B,4B,mBCA3CD,EAAOC,QAAU,0Y,kCCAjB","file":"js/chunk-18d6ebc2.705d439f.js","sourcesContent":["\n\n\n","\nimport { computed, defineComponent, onMounted, reactive, ref, toRaw } from \"vue\";\nimport NavTop from \"@/components/NavTop.vue\";\nimport {\n checksmscode,\n checkuser,\n getquhaolist,\n getwillsay,\n interests,\n register,\n sendsms,\n} from \"@/api\";\nimport { message } from \"ant-design-vue\";\nimport router from \"@/router\";\nimport { useI18n } from \"@/utils/i18n\";\nimport store from '@/store';\n\nexport default defineComponent({\n name: \"Sign\",\n components: { NavTop },\n setup() {\n const lan: any = useI18n();\n const formLayout = {\n labelCol: 4,\n wrapperCol: 14,\n };\n const time = ref(60); //倒计时初始化\n \n const userinfo = ref({\n pass: \"\",\n passtow: \"\",\n name: \"\",\n emil: \"\",\n muyu: \"\",\n jiaoshou: \"\",\n });\n const willsay = ref();\n const mrqh = computed(() => store.state.qh)\n const phone = ref({\n quhao: mrqh.value.code,\n phone: \"\",\n code: \"\",\n });\n const quhaolist = ref([\n {\n code: \"86\",\n id: 214,\n name: \"中国\",\n },\n ]);\n interests().then((res) => {\n willsay.value = res;\n });\n onMounted(async () => {\n quhaolist.value = await getquhaolist();\n });\n\n /**\n * @param\n * 点击获取验证码 触发60S倒计时\n */\n let lock = false;\n const getcode = async () => {\n console.log(11111);\n \n if (lock) {\n return;\n }\n if (phone.value.phone == \"\") {\n message.error(lan.$t('shoujihaoweikong'));\n return;\n }\n const iszc = await checkuser({phone: phone.value.phone})\n if(sessionStorage.getItem(\"mid\") == undefined && iszc.data){\n message.error(iszc.msg)\n return ;\n }\n lock = true;\n sendsms(phone.value.quhao, phone.value.phone);\n const timestep = setInterval(() => {\n console.log(phone);\n time.value = time.value - 1;\n if (time.value <= 0) {\n time.value = 60;\n clearInterval(timestep);\n lock = false;\n }\n }, 1000);\n };\n const ifagree = ref(true); //是否同意用户协议\n\n /**\n *@param\n * 用户协议前面radio 的点击效果\n */\n const agree: () => void = () => {\n ifagree.value = ifagree.value == true ? false : true;\n console.log(ifagree.value, 600);\n };\n\n const stepnow = ref(1); // 步骤条初始\n\n function yanzheng() {\n if (userinfo.value.pass == \"\") {\n message.error(lan.$t(\"mimaweikong\"));\n return false;\n }\n if (userinfo.value.passtow == \"\") {\n message.error(lan.$t(\"mimaweikong\"));\n return false;\n }\n if (userinfo.value.pass != userinfo.value.passtow) {\n message.error(lan.$t('mimabuyizhi'));\n return;\n }\n if (userinfo.value.name == \"\") {\n message.error(lan.$t(\"xingmingweikong\"));\n return false;\n }\n if (userinfo.value.emil == \"\") {\n message.error(lan.$t('youxiangweikong'));\n return false;\n }\n if (userinfo.value.muyu == \"\") {\n message.error(lan.$t('muyuweikong'));\n return false;\n }\n if (userinfo.value.jiaoshou == \"\") {\n message.error(lan.$t('jiaoshouweikong'));\n return false;\n }\n return true;\n }\n /**\n *@param e 跳到哪一步\n * 步骤条跳到某一步\n */\n\n async function next(e: number) {\n if (!ifagree.value) {\n message.error(lan.$t('weitongyixieyi'));\n return;\n }\n if (stepnow.value > e) {\n stepnow.value = e;\n return;\n }\n switch (e) {\n case 2: {\n console.log(e);\n if (phone.value.phone == \"\") {\n message.error(lan.$t('shoujihaoweikong'));\n return;\n } else if (phone.value.code == \"\") {\n message.error(lan.$t('yanzhengmaweikong'));\n return;\n }\n const res = await checksmscode(\n phone.value.quhao + phone.value.phone,\n phone.value.code\n );\n \n if (res) {\n \n stepnow.value = e;\n\t\t\t\t\t}\n \n break;\n }\n case 3: {\n console.log(userinfo.value);\n const yz = yanzheng();\n if (yz) {\n const res = await register({\n ...toRaw(phone.value),\n ...toRaw(userinfo.value),\n });\n if (res) {\n stepnow.value = e;\n }\n\t\t\t\t\t}\n \n }\n }\n }\n function navto(url: string) {\n router.push(url);\n }\n\n function getquhao(e?: any){\n console.log(e)\n phone.value.quhao = e.toString()\n phone.value.quhao = phone.value.quhao.split(\"+\")[1];\n }\n\n return {\n formLayout,\n getcode,\n time,\n agree,\n ifagree,\n stepnow,\n next,\n phone,\n userinfo,\n willsay,\n navto,\n lan,\n quhaolist,\n getquhao,\n mrqh\n };\n },\n});\n","import { render } from \"./Sign.vue?vue&type=template&id=1f55cca4&scoped=true&bindings={}\"\nimport script from \"./Sign.vue?vue&type=script&lang=ts\"\nexport * from \"./Sign.vue?vue&type=script&lang=ts\"\n\nimport \"./Sign.vue?vue&type=style&index=0&id=1f55cca4&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-1f55cca4\"\n\nexport default script","module.exports = __webpack_public_path__ + \"img/success.77170588.png\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAA2UlEQVQoU4WQMWvCUBzE716eQheHfori6ioUkU5uQt/Q4KC4CG7t2sHZpZSCOFlKkw6O4hBJHHTzIzg4iks725jkLyKKFLQ3H3f3O+Ifad95BnjFSz4VfD0pkTaIl7NGFThNJXgVohsX7QbT/mc2FK5xZy8O6anArYtIl8DHpvhQAynUvjMjcL35DfMoVVdW4FQo6AnQj6dzG61Wsgtg2nNvEo0JBEsSbyLSATmIvvU9jIkPLfuN3ntOW6kxwAyAYfSjyzAmPAU9wuiRewslj5EVGhSq679vbAGRO0nrhRE6fAAAAABJRU5ErkJggg==\"","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-v16/dist/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-v16/dist/index.js??ref--0-1!./Sign.vue?vue&type=style&index=0&id=1f55cca4&lang=scss&scoped=true\""],"sourceRoot":""}