1 line
23 KiB
Plaintext
1 line
23 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.25d7860c.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>\r\n <div class=\"login\">\r\n <div class=\"box\">\r\n <div :class=\"stepnow != 2 ? 'left' : 'left left1'\">\r\n <div class=\"title\">\r\n <span class=\"orgname\">{{lan.$t('beelink')}}</span>{{lan.$t('chongzhimima')}}\r\n </div>\r\n\r\n <div v-if=\"stepnow == 1\">\r\n <div class=\"nosign\">\r\n {{lan.$t('xiangqimima')}}\r\n <span class=\"tosign\"><router-link to=\"/\"> {{lan.$t('qudenglu')}} </router-link></span>\r\n </div>\r\n\r\n <a-form :layout=\"formLayout\">\r\n <a-form-item :label=\"lan.$t('zhanghuming')\" class=\"form-item\">\r\n <a-input class=\"shuru\" :placeholder=\"lan.$t('shuruzhanghao')\" v-model:value=\"uinfo.phone\"/>\r\n </a-form-item>\r\n <div class=\"submit\" @click=\"next(2)\">{{lan.$t('xiayibu')}}</div>\r\n \r\n </a-form>\r\n </div>\r\n\r\n <div v-if=\"stepnow == 2\">\r\n <div class=\"nosign\">\r\n {{lan.$t('yiyouzhanghao')}}\r\n <span class=\"tosign\"><router-link to=\"/\"> {{lan.$t('qudenglu')}} </router-link></span>\r\n </div>\r\n <a-form :layout=\"formLayout\">\r\n <div class=\"signform\">\r\n <div style=\"display:flex\">\r\n <a-form-item :label=\"lan.$t('shoujihao')\" class=\"shuru\">\r\n <div>{{uinfo.phone}}</div>\r\n </a-form-item>\r\n <a-form-item :label=\"lan.$t('yanzhengma')\" class=\"form-item yzm\">\r\n\r\n <a-input-group compact>\r\n <div class=\"getcode\" @click=\"getcode\">\r\n {{lan.$t('dianjihuoquyzm')}} {{ time == 60 ? \"\" : \"(\" + time + \")\" }}\r\n </div>\r\n \r\n <div class=\"line\"></div>\r\n <a-input style=\"width: 50%\" :placeholder=\"lan.$t('shuruyzm')\" v-model:value=\"uinfo.code\"/>\r\n </a-input-group>\r\n </a-form-item>\r\n \r\n </div>\r\n \r\n <div style=\"display:flex\">\r\n <a-form-item :label=\"lan.$t('chongzhimima')\" class=\"form-item\">\r\n <a-input class=\"shuru\" :placeholder=\"lan.$t('chongzhishurumima')\" type=\"password\" v-model:value=\"uinfo.password\"/>\r\n </a-form-item>\r\n <a-form-item :label=\"lan.$t('querenmima')\" class=\"form-item\">\r\n <a-input class=\"shuru\" :placeholder=\"lan.$t('shurumimatwo')\" type=\"password\" v-model:value=\"uinfo.repassword\"/>\r\n </a-form-item>\r\n </div>\r\n\r\n </div>\r\n\r\n <div class=\"submit\" @click=\"next(3)\">{{lan.$t('querenchongzhi')}}</div>\r\n <div class=\"orginfo\">{{lan.$t('banquan')}}</div>\r\n </a-form>\r\n </div>\r\n\r\n <div v-if=\"stepnow == 3\">\r\n <div class=\"nosign\">{{lan.$t('wanchengchongzhi')}}</div>\r\n <img src=\"@/static/images/success.png\" alt=\"\" class=\"success\">\r\n <div class=\"ale\" @click=\"tologin\">{{lan.$t('chongzhichenggong')}}</div>\r\n </div>\r\n </div>\r\n <div :class=\"stepnow != 2 ? 'right' : 'right right1'\">\r\n <div class=\"steps\">\r\n <div class=\"step\">\r\n <div :class=\"stepnow == 1 ? 'circle step1' : 'circle'\">01</div>\r\n <div :class=\"stepnow == 1 ? 'stepnow' : ''\">{{lan.$t('shibiezhanghao')}}</div>\r\n </div>\r\n <div class=\"stepline\"></div>\r\n <div class=\"step\">\r\n <div :class=\"stepnow == 2 ? 'circle step1' : 'circle'\">02</div>\r\n <div :class=\"stepnow == 2 ? 'stepnow' : ''\">{{lan.$t('yanzhengxinxi')}}</div>\r\n <div class=\"back\" @click=\"next(1)\" v-if=\"stepnow==2\">\r\n {{lan.$t('fanhuishangyibu')}}\r\n </div>\r\n </div>\r\n <div class=\"stepline\"></div>\r\n <div class=\"step\">\r\n <div :class=\"stepnow == 3 ? 'circle step1' : 'circle'\">03</div>\r\n <div :class=\"stepnow == 3 ? 'stepnow' : ''\">{{lan.$t('chongzhiwancheng')}}</div>\r\n </div>\r\n </div>\r\n <div class=\"icons\" v-if=\"stepnow == 2\">\r\n <img src=\"@/static/images/weixin.png\" alt=\"\" class=\"icon\" />\r\n <img src=\"@/static/images/weibo.png\" alt=\"\" class=\"icon\" />\r\n <img src=\"@/static/images/facebook.png\" alt=\"\" class=\"icon\" />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nimport { checksmscode, checkuser, editpassword, sendsms } from '@/api';\r\nimport router from '@/router';\r\nimport { useI18n } from '@/utils/i18n';\r\nimport { message } from 'ant-design-vue';\r\nimport { defineComponent, ref, toRaw } from \"vue\";\r\nexport default defineComponent({\r\n name: \"Sign\",\r\n components: {},\r\n setup() {\r\n const lan: any = useI18n();\r\n const formLayout = {\r\n labelCol: 4,\r\n wrapperCol: 14,\r\n };\r\n const uinfo=ref({\r\n phone:\"\",\r\n code:\"\",\r\n quhao:\"\",\r\n password:\"\",\r\n repassword:\"\",\r\n checkcodequhao:\"\",\r\n memberid:0\r\n })\r\n const time = ref(60); //倒计时初始值\r\n /**\r\n * 点击获取验证码 触发60S倒计时\r\n */\r\n let lock=false\r\n const getcode: () => void = () => {\r\n console.log(11111);\r\n if (lock) {\r\n console.log(\"lock\")\r\n return;\r\n }\r\n if (uinfo.value.phone == \"\") {\r\n message.error(lan.$t('shoujihaoweikong'));\r\n return;\r\n }\r\n lock = true;\r\n sendsms(uinfo.value.quhao, uinfo.value.phone);\r\n const timestep = setInterval(() => {\r\n console.log(11112);\r\n time.value = time.value - 1;\r\n if (time.value > 0) {\r\n console.log();\r\n } else {\r\n time.value = 60;\r\n clearInterval(timestep);\r\n }\r\n }, 1000);\r\n };\r\n const ifagree = ref(true); //是否同意用户协议\r\n\r\n /**\r\n * 用户协议前面 radio的点击效果\r\n */\r\n const agree: () => void = () => {\r\n ifagree.value = ifagree.value == true ? false : true;\r\n console.log(ifagree.value, 600);\r\n };\r\n\r\n const stepnow = ref(1); //步骤条初始值 默认到某一步\r\n\r\n \r\n /**\r\n * @param e 跳转到步骤条的某一步\r\n * 步骤条的当前值切换\r\n */\r\n const next: (e: number) => void = async (e: number) => {\r\n if(e==2){\r\n console.log(uinfo)\r\n const res: any = await checkuser(toRaw(uinfo.value))\r\n // console.log(res.data)\r\n if(res.data){\r\n // stepnow.value = e;\r\n uinfo.value.quhao = res.data.code.toString() \r\n uinfo.value.memberid=res.data.memberid\r\n console.log(uinfo)\r\n stepnow.value=e\r\n }else{\r\n message.error(lan.$t('yonghubucunzai'))\r\n }\r\n\r\n \r\n }else if(e==3){\r\n if(uinfo.value.phone==\"\"|| uinfo.value.code==\"\"|| uinfo.value.password==\"\"|| uinfo.value.repassword==\"\"){\r\n message.error(lan.$t('wanshanxinxi'))\r\n return\r\n }else if(uinfo.value.password!=uinfo.value.repassword){\r\n message.error(lan.$t('mimabuyizhi'))\r\n return \r\n } \r\n\r\n const checkcode=await checksmscode(uinfo.value.quhao+uinfo.value.phone,uinfo.value.code)\r\n console.log(checkcode,\"checked\")\r\n if(checkcode){\r\n console.log(uinfo.value)\r\n const res= await editpassword(toRaw(uinfo.value))\r\n if(res.code==0){\r\n stepnow.value=e\r\n router.push(\"/\")\r\n }\r\n }else{\r\n message.error(lan.$t(\"yanzhengmayouwu\"))\r\n }\r\n\r\n }\r\n \r\n };\r\n\r\n function tologin (){\r\n router.push(\"/\")\r\n }\r\n return {\r\n formLayout,\r\n getcode,\r\n time,\r\n agree,\r\n ifagree,\r\n stepnow,\r\n next,\r\n uinfo,\r\n tologin,\r\n lan\r\n };\r\n },\r\n});\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.login ::v-deep(.ant-select-selection) {\r\n border: none;\r\n}\r\n.login ::v-deep(.ant-input) {\r\n border: none;\r\n}\r\n.ant-input:focus {\r\n border: none;\r\n border-bottom:none !important;\r\n box-shadow: none;\r\n}\r\n.login ::v-deep(.ant-form-item-label) {\r\n line-height: 14px;\r\n}\r\n.login ::v-deep(.ant-form-item) ::v-deep(label) {\r\n color: #0dbba4;\r\n font-size: 11px;\r\n left: 1px;\r\n}\r\n.login {\r\n min-width: 100%;\r\n height: 100vh;\r\n background: url(\"../../static/images/loginbg.png\");\r\n background-size: 100% 130%;\r\n background-repeat: no-repeat;\r\n padding-top: 145px;\r\n .box {\r\n display: flex;\r\n justify-content: space-around;\r\n .left1 {\r\n width: 710px !important;\r\n }\r\n .left {\r\n width: 314px;\r\n .title {\r\n font-size: 17px;\r\n font-weight: bold;\r\n }\r\n .orgname {\r\n font-size: 29px;\r\n color: #0dbba4;\r\n cursor: pointer;\r\n }\r\n .nosign {\r\n font-size: 12px;\r\n color: #666666;\r\n margin-top: 17px;\r\n margin-bottom: 35px;\r\n }\r\n .tosign {\r\n color: #0dbba4;\r\n cursor: pointer;\r\n a{\r\n color: #0dbba4;\r\n cursor: pointer;\r\n }\r\n }\r\n .tab {\r\n margin-bottom: 30px;\r\n }\r\n\r\n .form-item {\r\n border-bottom: 1px solid #e5e5e5;\r\n font-size: 15px;\r\n margin-right: 40px;\r\n }\r\n .line {\r\n width: 1px;\r\n height: 14px;\r\n background: #e5e5e5;\r\n margin-top: 10px;\r\n position: relative;\r\n z-index: 999;\r\n }\r\n .getcode {\r\n font-size: 15px;\r\n color: #08ae98;\r\n width: 140px;\r\n line-height: 30px;\r\n cursor: pointer;\r\n }\r\n .orginfo {\r\n margin-top: 178px;\r\n }\r\n \r\n .submit {\r\n width: 143px;\r\n height: 35px;\r\n background: linear-gradient(\r\n 90deg,\r\n #00dac2,\r\n #42de9e,\r\n #88e062,\r\n #d0eb3e,\r\n #fffa18\r\n );\r\n border-radius: 18px;\r\n font-size: 15px;\r\n color: white;\r\n font-weight: 800;\r\n text-align: center;\r\n line-height: 35px;\r\n margin-top: 45px;\r\n }\r\n .agreement {\r\n font-size: 12px;\r\n display: flex;\r\n margin-top: 23px;\r\n cursor: default;\r\n .ifagree {\r\n width: 12px;\r\n height: 12px;\r\n border-radius: 3px;\r\n border: 1px solid #0ebca4;\r\n margin: auto 0;\r\n margin-right: 7px;\r\n .agree {\r\n width: 8px;\r\n height: 6px;\r\n position: relative;\r\n top: -4px;\r\n left: 2.5px;\r\n }\r\n }\r\n }\r\n }\r\n .yzm{\r\n left:40px;\r\n }\r\n .right1 {\r\n width: 260px !important;\r\n }\r\n .right {\r\n width: 690px;\r\n .steps {\r\n padding-top: 112px;\r\n .stepline {\r\n width: 1px;\r\n height: 50px;\r\n border: 1px dashed #eeeeee;\r\n position: relative;\r\n left: 13px;\r\n }\r\n .step {\r\n display: flex;\r\n color: #999999;\r\n font-size: 11px;\r\n line-height: 28px;\r\n font-weight: bold;\r\n .back {\r\n color: #0dbba4;\r\n margin-left: 23px;\r\n }\r\n .circle {\r\n width: 29px;\r\n height: 29px;\r\n border-radius: 15px;\r\n background: #eeeeee;\r\n font-size: 12px;\r\n color: #999999;\r\n text-align: center;\r\n line-height: 29px;\r\n font-weight: 800;\r\n margin-right: 17px;\r\n }\r\n }\r\n .step1 {\r\n background: #08ae98 !important;\r\n color: white !important;\r\n }\r\n .stepnow {\r\n color: #111111;\r\n }\r\n }\r\n }\r\n }\r\n .signform {\r\n display: flex;\r\n flex-wrap: wrap;\r\n .shuru {\r\n width: 313px;\r\n margin-right:40px\r\n }\r\n }\r\n .icons {\r\n margin-right: 41px;\r\n margin-top: 227px;\r\n .icon {\r\n width: 28px;\r\n height: 28px;\r\n margin-right: 18px;\r\n float: right;\r\n }\r\n }\r\n .success{\r\n width: 250px;\r\n height: 233px;\r\n }\r\n .ale{\r\n color:#08AE98;\r\n font-size: 14px;\r\n font-weight: 800;\r\n margin-top: 34px;\r\n cursor: pointer;\r\n }\r\n}\r\n</style>","\r\nimport { checksmscode, checkuser, editpassword, sendsms } from '@/api';\r\nimport router from '@/router';\r\nimport { useI18n } from '@/utils/i18n';\r\nimport { message } from 'ant-design-vue';\r\nimport { defineComponent, ref, toRaw } from \"vue\";\r\nexport default defineComponent({\r\n name: \"Sign\",\r\n components: {},\r\n setup() {\r\n const lan: any = useI18n();\r\n const formLayout = {\r\n labelCol: 4,\r\n wrapperCol: 14,\r\n };\r\n const uinfo=ref({\r\n phone:\"\",\r\n code:\"\",\r\n quhao:\"\",\r\n password:\"\",\r\n repassword:\"\",\r\n checkcodequhao:\"\",\r\n memberid:0\r\n })\r\n const time = ref(60); //倒计时初始值\r\n /**\r\n * 点击获取验证码 触发60S倒计时\r\n */\r\n let lock=false\r\n const getcode: () => void = () => {\r\n console.log(11111);\r\n if (lock) {\r\n console.log(\"lock\")\r\n return;\r\n }\r\n if (uinfo.value.phone == \"\") {\r\n message.error(lan.$t('shoujihaoweikong'));\r\n return;\r\n }\r\n lock = true;\r\n sendsms(uinfo.value.quhao, uinfo.value.phone);\r\n const timestep = setInterval(() => {\r\n console.log(11112);\r\n time.value = time.value - 1;\r\n if (time.value > 0) {\r\n console.log();\r\n } else {\r\n time.value = 60;\r\n clearInterval(timestep);\r\n }\r\n }, 1000);\r\n };\r\n const ifagree = ref(true); //是否同意用户协议\r\n\r\n /**\r\n * 用户协议前面 radio的点击效果\r\n */\r\n const agree: () => void = () => {\r\n ifagree.value = ifagree.value == true ? false : true;\r\n console.log(ifagree.value, 600);\r\n };\r\n\r\n const stepnow = ref(1); //步骤条初始值 默认到某一步\r\n\r\n \r\n /**\r\n * @param e 跳转到步骤条的某一步\r\n * 步骤条的当前值切换\r\n */\r\n const next: (e: number) => void = async (e: number) => {\r\n if(e==2){\r\n console.log(uinfo)\r\n const res: any = await checkuser(toRaw(uinfo.value))\r\n // console.log(res.data)\r\n if(res.data){\r\n // stepnow.value = e;\r\n uinfo.value.quhao = res.data.code.toString() \r\n uinfo.value.memberid=res.data.memberid\r\n console.log(uinfo)\r\n stepnow.value=e\r\n }else{\r\n message.error(lan.$t('yonghubucunzai'))\r\n }\r\n\r\n \r\n }else if(e==3){\r\n if(uinfo.value.phone==\"\"|| uinfo.value.code==\"\"|| uinfo.value.password==\"\"|| uinfo.value.repassword==\"\"){\r\n message.error(lan.$t('wanshanxinxi'))\r\n return\r\n }else if(uinfo.value.password!=uinfo.value.repassword){\r\n message.error(lan.$t('mimabuyizhi'))\r\n return \r\n } \r\n\r\n const checkcode=await checksmscode(uinfo.value.quhao+uinfo.value.phone,uinfo.value.code)\r\n console.log(checkcode,\"checked\")\r\n if(checkcode){\r\n console.log(uinfo.value)\r\n const res= await editpassword(toRaw(uinfo.value))\r\n if(res.code==0){\r\n stepnow.value=e\r\n router.push(\"/\")\r\n }\r\n }else{\r\n message.error(lan.$t(\"yanzhengmayouwu\"))\r\n }\r\n\r\n }\r\n \r\n };\r\n\r\n function tologin (){\r\n router.push(\"/\")\r\n }\r\n return {\r\n formLayout,\r\n getcode,\r\n time,\r\n agree,\r\n ifagree,\r\n stepnow,\r\n next,\r\n uinfo,\r\n tologin,\r\n lan\r\n };\r\n },\r\n});\r\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":""} |