1 line
22 KiB
Plaintext
1 line
22 KiB
Plaintext
{"version":3,"sources":["webpack:///./src/views/login/Reset.vue?daa1","webpack:///./src/static/images/success.png","webpack:///./src/views/login/Reset.vue","webpack:///./src/views/login/Reset.vue?4c13","webpack:///./src/views/login/Reset.vue?f0b8"],"names":["module","exports","class","style","src","alt","stepnow","lan","$t","to","layout","formLayout","label","placeholder","value","uinfo","phone","next","compact","getcode","time","code","type","password","repassword","tologin","name","components","setup","labelCol","wrapperCol","quhao","checkcodequhao","memberid","lock","timestep","setInterval","clearInterval","message","error","ifagree","agree","e","res","data","toString","checkcode","router","push","render","__scopeId"],"mappings":"kHAAA,W,qBCAAA,EAAOC,QAAU,IAA0B,4B,qQCCpCC,MAAM,S,GACJA,MAAM,O,GAEFA,MAAM,S,GACJA,MAAM,W,aAINA,MAAM,U,GAEHA,MAAM,U,aAaTA,MAAM,U,GAEHA,MAAM,U,GAGPA,MAAM,Y,GACJC,MAAA,kB,EAWH,yBAAwB,OAAnBD,MAAM,QAAM,S,GAOhBC,MAAA,kB,GAYAD,MAAM,W,aAKRA,MAAM,U,EACX,yBAA8D,OAAzDE,IAAA,IAAkCC,IAAI,GAAGH,MAAM,W,YAKjDA,MAAM,S,GACJA,MAAM,Q,EAIX,yBAA4B,OAAvBA,MAAM,YAAU,S,GAChBA,MAAM,Q,EAOX,yBAA4B,OAAvBA,MAAM,YAAU,S,GAChBA,MAAM,Q,SAKRA,MAAM,S,EACT,yBAA4D,OAAvDE,IAAA,IAAiCC,IAAI,GAAGH,MAAM,Q,WACnD,yBAA2D,OAAtDE,IAAA,IAAgCC,IAAI,GAAGH,MAAM,Q,WAClD,yBAA8D,OAAzDE,IAAA,IAAmCC,IAAI,GAAGH,MAAM,Q,0UA5F7D,yBAgGM,MAhGN,EAgGM,CA/FJ,yBA8FM,MA9FN,EA8FM,CA7FJ,yBAkEM,OAlEAA,MAAc,GAAP,EAAAI,QAAO,qB,CAClB,yBAEM,MAFN,EAEM,CADL,yBAAkD,OA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,OAAS,EAChB,EAAOC,UAAY,kBAEJ","file":"js/chunk-06828374.396a639e.js","sourcesContent":["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!./Reset.vue?vue&type=style&index=0&id=d41f3ac8&lang=scss&scoped=true\"","module.exports = __webpack_public_path__ + \"img/success.77170588.png\";","<template>\n <div class=\"login\">\n <div class=\"box\">\n <div :class=\"stepnow != 2 ? 'left' : 'left left1'\">\n <div class=\"title\">\n <span class=\"orgname\">{{lan.$t('beelink')}}</span>{{lan.$t('chongzhimima')}}\n </div>\n\n <div v-if=\"stepnow == 1\">\n <div class=\"nosign\">\n {{lan.$t('xiangqimima')}}\n <span class=\"tosign\"><router-link to=\"/\"> {{lan.$t('qudenglu')}} </router-link></span>\n </div>\n\n <a-form :layout=\"formLayout\">\n <a-form-item :label=\"lan.$t('zhanghuming')\" class=\"form-item\">\n <a-input class=\"shuru\" :placeholder=\"lan.$t('shuruzhanghao')\" v-model:value=\"uinfo.phone\"/>\n </a-form-item>\n <div class=\"submit\" @click=\"next(2)\">{{lan.$t('xiayibu')}}</div>\n \n </a-form>\n </div>\n\n <div v-if=\"stepnow == 2\">\n <div class=\"nosign\">\n {{lan.$t('yiyouzhanghao')}}\n <span class=\"tosign\"><router-link to=\"/\"> {{lan.$t('qudenglu')}} </router-link></span>\n </div>\n <a-form :layout=\"formLayout\">\n <div class=\"signform\">\n <div style=\"display:flex\">\n <a-form-item :label=\"lan.$t('shoujihao')\" class=\"shuru\">\n <div>{{uinfo.phone}}</div>\n </a-form-item>\n <a-form-item :label=\"lan.$t('yanzhengma')\" class=\"form-item yzm\">\n\n <a-input-group compact>\n <div class=\"getcode\" @click=\"getcode\">\n {{lan.$t('dianjihuoquyzm')}} {{ time == 60 ? \"\" : \"(\" + time + \")\" }}\n </div>\n \n <div class=\"line\"></div>\n <a-input style=\"width: 50%\" :placeholder=\"lan.$t('shuruyzm')\" v-model:value=\"uinfo.code\"/>\n </a-input-group>\n </a-form-item>\n \n </div>\n \n <div style=\"display:flex\">\n <a-form-item :label=\"lan.$t('chongzhimima')\" class=\"form-item\">\n <a-input class=\"shuru\" :placeholder=\"lan.$t('chongzhishurumima')\" type=\"password\" v-model:value=\"uinfo.password\"/>\n </a-form-item>\n <a-form-item :label=\"lan.$t('querenmima')\" class=\"form-item\">\n <a-input class=\"shuru\" :placeholder=\"lan.$t('shurumimatwo')\" type=\"password\" v-model:value=\"uinfo.repassword\"/>\n </a-form-item>\n </div>\n\n </div>\n\n <div class=\"submit\" @click=\"next(3)\">{{lan.$t('querenchongzhi')}}</div>\n <div class=\"orginfo\">{{lan.$t('banquan')}}</div>\n </a-form>\n </div>\n\n <div v-if=\"stepnow == 3\">\n <div class=\"nosign\">{{lan.$t('wanchengchongzhi')}}</div>\n <img src=\"@/static/images/success.png\" alt=\"\" class=\"success\">\n <div class=\"ale\" @click=\"tologin\">{{lan.$t('chongzhichenggong')}}</div>\n </div>\n </div>\n <div :class=\"stepnow != 2 ? 'right' : 'right right1'\">\n <div class=\"steps\">\n <div class=\"step\">\n <div :class=\"stepnow == 1 ? 'circle step1' : 'circle'\">01</div>\n <div :class=\"stepnow == 1 ? 'stepnow' : ''\">{{lan.$t('shibiezhanghao')}}</div>\n </div>\n <div class=\"stepline\"></div>\n <div class=\"step\">\n <div :class=\"stepnow == 2 ? 'circle step1' : 'circle'\">02</div>\n <div :class=\"stepnow == 2 ? 'stepnow' : ''\">{{lan.$t('yanzhengxinxi')}}</div>\n <div class=\"back\" @click=\"next(1)\" v-if=\"stepnow==2\">\n {{lan.$t('fanhuishangyibu')}}\n </div>\n </div>\n <div class=\"stepline\"></div>\n <div class=\"step\">\n <div :class=\"stepnow == 3 ? 'circle step1' : 'circle'\">03</div>\n <div :class=\"stepnow == 3 ? 'stepnow' : ''\">{{lan.$t('chongzhiwancheng')}}</div>\n </div>\n </div>\n <div class=\"icons\" v-if=\"stepnow == 2\">\n <img src=\"@/static/images/weixin.png\" alt=\"\" class=\"icon\" />\n <img src=\"@/static/images/weibo.png\" alt=\"\" class=\"icon\" />\n <img src=\"@/static/images/facebook.png\" alt=\"\" class=\"icon\" />\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { checksmscode, checkuser, editpassword, sendsms } from '@/api';\nimport router from '@/router';\nimport { useI18n } from '@/utils/i18n';\nimport { message } from 'ant-design-vue';\nimport { defineComponent, ref, toRaw } from \"vue\";\nexport default defineComponent({\n name: \"Sign\",\n components: {},\n setup() {\n const lan: any = useI18n();\n const formLayout = {\n labelCol: 4,\n wrapperCol: 14,\n };\n const uinfo=ref({\n phone:\"\",\n code:\"\",\n quhao:\"\",\n password:\"\",\n repassword:\"\",\n checkcodequhao:\"\",\n memberid:0\n })\n const time = ref(60); //倒计时初始值\n /**\n * 点击获取验证码 触发60S倒计时\n */\n let lock=false\n const getcode: () => void = () => {\n console.log(11111);\n if (lock) {\n console.log(\"lock\")\n return;\n }\n if (uinfo.value.phone == \"\") {\n message.error(lan.$t('shoujihaoweikong'));\n return;\n }\n lock = true;\n sendsms(uinfo.value.quhao, uinfo.value.phone);\n const timestep = setInterval(() => {\n console.log(11112);\n time.value = time.value - 1;\n if (time.value > 0) {\n console.log();\n } else {\n time.value = 60;\n clearInterval(timestep);\n }\n }, 1000);\n };\n const ifagree = ref(true); //是否同意用户协议\n\n /**\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 \n /**\n * @param e 跳转到步骤条的某一步\n * 步骤条的当前值切换\n */\n const next: (e: number) => void = async (e: number) => {\n if(e==2){\n console.log(uinfo)\n const res: any = await checkuser(toRaw(uinfo.value))\n // console.log(res.data)\n if(res.data){\n // stepnow.value = e;\n uinfo.value.quhao = res.data.code.toString() \n uinfo.value.memberid=res.data.memberid\n console.log(uinfo)\n stepnow.value=e\n }else{\n message.error(lan.$t('yonghubucunzai'))\n }\n\n \n }else if(e==3){\n if(uinfo.value.phone==\"\"|| uinfo.value.code==\"\"|| uinfo.value.password==\"\"|| uinfo.value.repassword==\"\"){\n message.error(lan.$t('wanshanxinxi'))\n return\n }else if(uinfo.value.password!=uinfo.value.repassword){\n message.error(lan.$t('mimabuyizhi'))\n return \n } \n\n const checkcode=await checksmscode(uinfo.value.quhao+uinfo.value.phone,uinfo.value.code)\n console.log(checkcode,\"checked\")\n if(checkcode){\n console.log(uinfo.value)\n const res= await editpassword(toRaw(uinfo.value))\n if(res.code==0){\n stepnow.value=e\n router.push(\"/\")\n }\n }else{\n message.error(lan.$t(\"yanzhengmayouwu\"))\n }\n\n }\n \n };\n\n function tologin (){\n router.push(\"/\")\n }\n return {\n formLayout,\n getcode,\n time,\n agree,\n ifagree,\n stepnow,\n next,\n uinfo,\n tologin,\n lan\n };\n },\n});\n</script>\n<style lang=\"scss\" scoped>\n.login ::v-deep(.ant-select-selection) {\n border: none;\n}\n.login ::v-deep(.ant-input) {\n border: none;\n}\n.ant-input:focus {\n border: none;\n border-bottom:none !important;\n box-shadow: none;\n}\n.login ::v-deep(.ant-form-item-label) {\n line-height: 14px;\n}\n.login ::v-deep(.ant-form-item) ::v-deep(label) {\n color: #0dbba4;\n font-size: 11px;\n left: 1px;\n}\n.login {\n min-width: 100%;\n height: 100vh;\n background: url(\"../../static/images/loginbg.png\");\n background-size: 100% 130%;\n background-repeat: no-repeat;\n padding-top: 145px;\n .box {\n display: flex;\n justify-content: space-around;\n .left1 {\n width: 710px !important;\n }\n .left {\n width: 314px;\n .title {\n font-size: 17px;\n font-weight: bold;\n }\n .orgname {\n font-size: 29px;\n color: #0dbba4;\n cursor: pointer;\n }\n .nosign {\n font-size: 12px;\n color: #666666;\n margin-top: 17px;\n margin-bottom: 35px;\n }\n .tosign {\n color: #0dbba4;\n cursor: pointer;\n a{\n color: #0dbba4;\n cursor: pointer;\n }\n }\n .tab {\n margin-bottom: 30px;\n }\n\n .form-item {\n border-bottom: 1px solid #e5e5e5;\n font-size: 15px;\n margin-right: 40px;\n }\n .line {\n width: 1px;\n height: 14px;\n background: #e5e5e5;\n margin-top: 10px;\n position: relative;\n z-index: 999;\n }\n .getcode {\n font-size: 15px;\n color: #08ae98;\n width: 140px;\n line-height: 30px;\n cursor: pointer;\n }\n .orginfo {\n margin-top: 178px;\n }\n \n .submit {\n width: 143px;\n height: 35px;\n background: linear-gradient(\n 90deg,\n #00dac2,\n #42de9e,\n #88e062,\n #d0eb3e,\n #fffa18\n );\n border-radius: 18px;\n font-size: 15px;\n color: white;\n font-weight: 800;\n text-align: center;\n line-height: 35px;\n margin-top: 45px;\n }\n .agreement {\n font-size: 12px;\n display: flex;\n margin-top: 23px;\n cursor: default;\n .ifagree {\n width: 12px;\n height: 12px;\n border-radius: 3px;\n border: 1px solid #0ebca4;\n margin: auto 0;\n margin-right: 7px;\n .agree {\n width: 8px;\n height: 6px;\n position: relative;\n top: -4px;\n left: 2.5px;\n }\n }\n }\n }\n .yzm{\n left:40px;\n }\n .right1 {\n width: 260px !important;\n }\n .right {\n width: 690px;\n .steps {\n padding-top: 112px;\n .stepline {\n width: 1px;\n height: 50px;\n border: 1px dashed #eeeeee;\n position: relative;\n left: 13px;\n }\n .step {\n display: flex;\n color: #999999;\n font-size: 11px;\n line-height: 28px;\n font-weight: bold;\n .back {\n color: #0dbba4;\n margin-left: 23px;\n }\n .circle {\n width: 29px;\n height: 29px;\n border-radius: 15px;\n background: #eeeeee;\n font-size: 12px;\n color: #999999;\n text-align: center;\n line-height: 29px;\n font-weight: 800;\n margin-right: 17px;\n }\n }\n .step1 {\n background: #08ae98 !important;\n color: white !important;\n }\n .stepnow {\n color: #111111;\n }\n }\n }\n }\n .signform {\n display: flex;\n flex-wrap: wrap;\n .shuru {\n width: 313px;\n margin-right:40px\n }\n }\n .icons {\n margin-right: 41px;\n margin-top: 227px;\n .icon {\n width: 28px;\n height: 28px;\n margin-right: 18px;\n float: right;\n }\n }\n .success{\n width: 250px;\n height: 233px;\n }\n .ale{\n color:#08AE98;\n font-size: 14px;\n font-weight: 800;\n margin-top: 34px;\n cursor: pointer;\n }\n}\n</style>","\nimport { checksmscode, checkuser, editpassword, sendsms } from '@/api';\nimport router from '@/router';\nimport { useI18n } from '@/utils/i18n';\nimport { message } from 'ant-design-vue';\nimport { defineComponent, ref, toRaw } from \"vue\";\nexport default defineComponent({\n name: \"Sign\",\n components: {},\n setup() {\n const lan: any = useI18n();\n const formLayout = {\n labelCol: 4,\n wrapperCol: 14,\n };\n const uinfo=ref({\n phone:\"\",\n code:\"\",\n quhao:\"\",\n password:\"\",\n repassword:\"\",\n checkcodequhao:\"\",\n memberid:0\n })\n const time = ref(60); //倒计时初始值\n /**\n * 点击获取验证码 触发60S倒计时\n */\n let lock=false\n const getcode: () => void = () => {\n console.log(11111);\n if (lock) {\n console.log(\"lock\")\n return;\n }\n if (uinfo.value.phone == \"\") {\n message.error(lan.$t('shoujihaoweikong'));\n return;\n }\n lock = true;\n sendsms(uinfo.value.quhao, uinfo.value.phone);\n const timestep = setInterval(() => {\n console.log(11112);\n time.value = time.value - 1;\n if (time.value > 0) {\n console.log();\n } else {\n time.value = 60;\n clearInterval(timestep);\n }\n }, 1000);\n };\n const ifagree = ref(true); //是否同意用户协议\n\n /**\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 \n /**\n * @param e 跳转到步骤条的某一步\n * 步骤条的当前值切换\n */\n const next: (e: number) => void = async (e: number) => {\n if(e==2){\n console.log(uinfo)\n const res: any = await checkuser(toRaw(uinfo.value))\n // console.log(res.data)\n if(res.data){\n // stepnow.value = e;\n uinfo.value.quhao = res.data.code.toString() \n uinfo.value.memberid=res.data.memberid\n console.log(uinfo)\n stepnow.value=e\n }else{\n message.error(lan.$t('yonghubucunzai'))\n }\n\n \n }else if(e==3){\n if(uinfo.value.phone==\"\"|| uinfo.value.code==\"\"|| uinfo.value.password==\"\"|| uinfo.value.repassword==\"\"){\n message.error(lan.$t('wanshanxinxi'))\n return\n }else if(uinfo.value.password!=uinfo.value.repassword){\n message.error(lan.$t('mimabuyizhi'))\n return \n } \n\n const checkcode=await checksmscode(uinfo.value.quhao+uinfo.value.phone,uinfo.value.code)\n console.log(checkcode,\"checked\")\n if(checkcode){\n console.log(uinfo.value)\n const res= await editpassword(toRaw(uinfo.value))\n if(res.code==0){\n stepnow.value=e\n router.push(\"/\")\n }\n }else{\n message.error(lan.$t(\"yanzhengmayouwu\"))\n }\n\n }\n \n };\n\n function tologin (){\n router.push(\"/\")\n }\n return {\n formLayout,\n getcode,\n time,\n agree,\n ifagree,\n stepnow,\n next,\n uinfo,\n tologin,\n lan\n };\n },\n});\n","import { render } from \"./Reset.vue?vue&type=template&id=d41f3ac8&scoped=true&bindings={}\"\nimport script from \"./Reset.vue?vue&type=script&lang=ts\"\nexport * from \"./Reset.vue?vue&type=script&lang=ts\"\n\nimport \"./Reset.vue?vue&type=style&index=0&id=d41f3ac8&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-d41f3ac8\"\n\nexport default script"],"sourceRoot":""} |