f99c2c8.js 12 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[31,9],{503:function(e,t,n){"use strict";n.r(t);n(309),n(66),n(67),n(13),n(38),n(49),n(87);var o=6e4,r=36e5,c=24*r;function l(e){return(0+e.toString()).slice(-2)}var d={components:{},props:{isSlot:{type:Boolean,default:!1},time:{type:Number,default:0},format:{type:String,default:"hh:mm:ss"},autoStart:{type:Boolean,default:!0}},watch:{time:{immediate:!0,handler:function(e){e&&this.reset()}}},data:function(){return{timeObj:{},formateTime:0}},created:function(){},computed:{},methods:{createTimer:function(e){return setTimeout(e,100)},isSameSecond:function(e,t){return Math.floor(e)===Math.floor(t)},start:function(){this.counting||(this.counting=!0,this.endTime=Date.now()+1e3*this.remain,this.setTimer())},setTimer:function(){var e=this;this.tid=this.createTimer((function(){var t=e.getRemain();e.isSameSecond(t,e.remain)&&0!==t||e.setRemain(t),0!==e.remain&&e.setTimer()}))},getRemain:function(){return Math.max(this.endTime-Date.now(),0)},pause:function(){this.counting=!1,clearTimeout(this.tid)},reset:function(){this.pause(),this.remain=this.time,this.setRemain(this.remain),this.autoStart&&this.start()},setRemain:function(e){var t=this.format;this.remain=e;var time,n=(time=e,{days:Math.floor(time/c),hours:l(Math.floor(time%c/r)),minutes:l(Math.floor(time%r/o)),seconds:l(Math.floor(time%o/1e3))});this.formateTime=function(e,t){var n=t.days,o=t.hours,r=t.minutes,c=t.seconds;return-1!==e.indexOf("dd")&&(e=e.replace("dd",n)),-1!==e.indexOf("hh")&&(e=e.replace("hh",l(o))),-1!==e.indexOf("mm")&&(e=e.replace("mm",l(r))),-1!==e.indexOf("ss")&&(e=e.replace("ss",l(c))),e}(t,n),this.$emit("change",n),0===e&&(this.pause(),this.$emit("finish"))}}},m=n(9),component=Object(m.a)(d,(function(){var e=this,t=e._self._c;return e.time>=0?t("div",[t("client-only",[e.isSlot?e._t("default"):t("span",[e._v(e._s(e.formateTime))])],2)],1):e._e()}),[],!1,null,null,null);t.default=component.exports},507:function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return r})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d}));var o=4,r={SMS:0,ACCOUNT:1},c={REGISTER:"ZCYZ",FINDPWD:"ZHMM",LOGIN:"YZMDL",SJSQYZ:"SJSQYZ",CHANGE_MOBILE:"BGSJHM",BIND:"BDSJHM"},l={NONE:"",SEX:"sex",NICKNAME:"nickname",AVATAR:"avatar",MOBILE:"mobile"},d={NORMAL:"apply",HANDLING:"status_ing",FINISH:"status_success_fail"}},596:function(e,t,n){var content=n(656);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(21).default)("4ece29f7",content,!0,{sourceMap:!1})},655:function(e,t,n){"use strict";n(596)},656:function(e,t,n){var o=n(20)((function(i){return i[1]}));o.push([e.i,".page_body[data-v-4c40f634]{align-items:center;background-color:#fff;display:flex;height:100vh;justify-content:center;overflow:hidden;width:100%}.page_body .box[data-v-4c40f634]{width:30%}.page_body .login_box[data-v-4c40f634]{background-color:#fff;border-radius:30px;box-shadow:0 0 54px 0 #046a55;margin:180px auto 0;padding-bottom:80px;padding-top:20px;position:relative;width:100%;z-index:99}.tab_show[data-v-4c40f634]{color:#046a55}",""]),o.locals={},e.exports=o},726:function(e,t,n){"use strict";n.r(t);n(22),n(26),n(33),n(34),n(13),n(24);var o=n(7),r=n(10),c=(n(25),n(38),n(87),n(48),n(507)),l=n(111),d=n.n(l),m=n(14);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v={layout:"default-layout",components:{CountDown:n(503).default},data:function(){return{selectNumberType:"中国+86",account:"",password:"",telephone:"",verifyCode:"",smsCode:"",isRemember:!0,loginStatus:c.e.SMS,login_way:[],canSend:!0,adData:{content:{url:""}}}},computed:f({},Object(m.e)(["publicData"])),methods:f(f(f({},Object(m.d)(["setToken"])),Object(m.b)(["getPublicData","getConfig"])),{},{getPage:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var data;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$get("Pc/getPage",{params:{type:2}});case 2:data=t.sent,console.log(data,"data"),1==data.code&&(e.adData=data.data);case 5:case"end":return t.stop()}}),t)})))()},changeLoginType:function(e){this.loginStatus=e,this.telephone="",this.verifyCode="",this.smsCode="";var t=JSON.parse(localStorage.getItem("ACCOUNT")),n=JSON.parse(localStorage.getItem("TEL"));t&&t.account&&(this.account=t.account),n&&n.telephone&&(this.telephone=n.telephone)},sendSMSCode:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.canSend){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.$post("login/captcha",{mobile:e.telephone,key:c.c.LOGIN,client:c.d});case 4:1==(n=t.sent).code&&(e.$message({message:n.msg,type:"success"}),e.canSend=!1);case 6:case"end":return t.stop()}}),t)})))()},smsLogin:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$post("login/account",{account:e.telephone,code:e.smsCode,scene:2,terminal:c.d});case 2:1==(n=t.sent).code&&(o=n.data.token,d.a.set("token",o,{expires:60}),e.setToken(o),e.$router.replace({path:d.a.get("back_url")||"/"}),d.a.remove("back_url"),e.getPublicData(),e.isRemember?localStorage.setItem("TEL",JSON.stringify({telephone:e.telephone})):localStorage.setItem("TEL",JSON.stringify({telephone:""})));case 4:case"end":return t.stop()}}),t)})))()},accountLogin:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$post("login/account",{account:e.telephone,password:e.password,scene:1,terminal:c.d});case 2:1==(n=t.sent).code&&(0==n.data.inviter_id?localStorage.setItem("NOIDNUM",0):localStorage.setItem("NOIDNUM",1),o=n.data.token,d.a.set("token",o,{expires:60}),e.setToken(o),e.$router.replace({path:d.a.get("back_url")||"/"}),d.a.remove("back_url"),e.getPublicData(),e.isRemember?localStorage.setItem("ACCOUNT",JSON.stringify({account:e.account})):localStorage.setItem("ACCOUNT",JSON.stringify({account:""})));case 4:case"end":return t.stop()}}),t)})))()}}),created:function(){var e=this.$route.query;e.code&&e.state&&this.handleWechatLogin({code:e.code,state:e.state}),this.getPage()},mounted:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n,o,r,c,l,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getConfig();case 2:e.login_way=e.$store.state.config.login_way,console.log(e.login_way),1==e.login_way.length&&("1"==e.login_way[0]?e.loginStatus=1:e.loginStatus=0),console.log(localStorage),l=null!==(n=JSON.parse(localStorage.getItem("ACCOUNT")))&&void 0!==n?n:{},d=null!==(o=JSON.parse(localStorage.getItem("TEL")))&&void 0!==o?o:{},e.account=null!==(r=null==l?void 0:l.account)&&void 0!==r?r:"",e.telephone=null!==(c=null==d?void 0:d.telephone)&&void 0!==c?c:"";case 10:case"end":return t.stop()}}),t)})))()}},x=(n(655),n(9)),component=Object(x.a)(v,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"page_body"},[t("img",{staticStyle:{width:"100%",position:"absolute","z-index":"1",top:"0"},attrs:{src:e.$getImageUri(e.adData.content.url)}}),e._v(" "),t("div",{staticClass:"box"},[t("div",{staticClass:"login_box"},[t("img",{staticStyle:{width:"40%","margin-left":"30%"},attrs:{src:"https://zhgx.sdshengyuekeji.cn/uploads/images/20250410/20250410132109869966660.png",alt:""}}),e._v(" "),t("div",{staticStyle:{width:"80%",display:"flex","align-items":"center","margin-left":"10%","font-size":"25px","margin-top":"20px"}},[t("div",{class:{tab_show:0==e.loginStatus},staticStyle:{width:"45%","text-align":"center",cursor:"pointer"},on:{click:function(t){return e.changeLoginType(0)}}},[e._v("验证码登录")]),e._v(" "),t("div",{staticStyle:{width:"10%","text-align":"center",color:"#8B8B8B"}},[e._v("|")]),e._v(" "),t("div",{class:{tab_show:1==e.loginStatus},staticStyle:{width:"45%","text-align":"center",cursor:"pointer"},on:{click:function(t){return e.changeLoginType(1)}}},[e._v("密码登录")])]),e._v(" "),0==e.loginStatus?t("div",{staticStyle:{width:"75%","margin-left":"12.5%"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.telephone,expression:"telephone"}],staticStyle:{width:"100%",height:"60px","line-height":"60px","font-size":"20px","border-bottom":"1px solid #ccc","margin-top":"50px","letter-spacing":"3px"},attrs:{type:"text",placeholder:"请输入手机号"},domProps:{value:e.telephone},on:{input:function(t){t.target.composing||(e.telephone=t.target.value)}}}),e._v(" "),t("div",{staticStyle:{width:"100%","margin-top":"50px",position:"relative",display:"flex","align-items":"center","border-bottom":"1px solid #ccc"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.smsCode,expression:"smsCode"}],staticStyle:{width:"100%",height:"60px","line-height":"60px","font-size":"20px","letter-spacing":"3px"},attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:e.smsCode},on:{input:function(t){t.target.composing||(e.smsCode=t.target.value)}}}),e._v(" "),t("el-button",{staticClass:"sms-btn",on:{click:e.sendSMSCode}},[e.canSend?t("div",[e._v("获取验证码")]):t("count-down",{attrs:{time:60,format:"ss秒",autoStart:!0},on:{finish:function(t){e.canSend=!0}}})],1)],1),e._v(" "),t("div",{staticStyle:{width:"100%",display:"flex","justify-content":"flex-end","margin-top":"30px"}},[t("el-checkbox",{model:{value:e.isRemember,callback:function(t){e.isRemember=t},expression:"isRemember"}},[e._v("记住账号")])],1)]):e._e(),e._v(" "),1==e.loginStatus?t("div",{staticStyle:{width:"75%","margin-left":"12.5%"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.telephone,expression:"telephone"}],staticStyle:{width:"100%",height:"60px","line-height":"60px","font-size":"20px","border-bottom":"1px solid #ccc","margin-top":"50px","letter-spacing":"3px"},attrs:{type:"text",placeholder:"请输入手机号"},domProps:{value:e.telephone},on:{input:function(t){t.target.composing||(e.telephone=t.target.value)}}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],staticStyle:{width:"100%",height:"60px","line-height":"60px","font-size":"20px","border-bottom":"1px solid #ccc","margin-top":"50px","letter-spacing":"3px"},attrs:{type:"password",placeholder:"请输入密码"},domProps:{value:e.password},on:{input:function(t){t.target.composing||(e.password=t.target.value)}}}),e._v(" "),t("div",{staticStyle:{width:"100%",display:"flex","margin-top":"30px","justify-content":"space-between"}},[t("el-checkbox",{model:{value:e.isRemember,callback:function(t){e.isRemember=t},expression:"isRemember"}},[e._v("记住账号")]),e._v(" "),t("nuxt-link",{staticClass:"muted",attrs:{to:"/account/forget_pwd"}},[e._v("忘记密码?")])],1)]):e._e()]),e._v(" "),0==e.loginStatus?t("div",{staticStyle:{cursor:"pointer",width:"100%",height:"70px","background-color":"#007B44","border-radius":"50px","margin-top":"45px",color:"#fff","text-align":"center","line-height":"70px","font-size":"25px"},on:{click:e.smsLogin}},[e._v("登 录")]):e._e(),e._v(" "),1==e.loginStatus?t("div",{staticStyle:{cursor:"pointer",width:"100%",height:"70px","background-color":"#007B44","border-radius":"50px","margin-top":"45px",color:"#fff","text-align":"center","line-height":"70px","font-size":"25px"},on:{click:e.accountLogin}},[e._v("登 录")]):e._e(),e._v(" "),t("div",{staticStyle:{width:"100%",height:"80px",color:"#8B8B8B","text-align":"center","line-height":"80px","font-size":"24px"}},[e._v("——————— "),t("nuxt-link",{staticStyle:{margin:"0 5px",color:"#007B44"},attrs:{to:"/account/register"}},[e._v("\n 注册账号\n ")]),e._v(" ———————")],1)])])}),[],!1,null,"4c40f634",null);t.default=component.exports;installComponents(component,{CountDown:n(503).default})}}]);