2 lines
12 KiB
JavaScript
2 lines
12 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-38cd4d57"],{2712:function(e,s,t){},4359:function(e,s,t){},"6fd7":function(e,s,t){"use strict";t("2712")},"89d8c":function(e,s,t){"use strict";t("4359")},a82e:function(e,s,t){"use strict";t.r(s);var i=function(){var e=this,s=e._self._c;return s("div",{staticClass:"nb"},[s("div",{staticClass:"ny-body ny-register"},[s("el-row",[s("el-col",{staticClass:"left",attrs:{span:12}},[s("div",{staticClass:"form-box"},[s("p",{staticStyle:{color:"#0e9aef"}},[e._v(e._s(e.registerInfo.validateInfo))]),s("div",{staticClass:"input-box input-box1 onfocusstyle user-word"},[s("label",{staticClass:"icon-user",attrs:{for:"username"}}),s("el-input",{attrs:{type:"text",id:"username",placeholder:"用户名",maxlength:"20",autocomplete:"off"},model:{value:e.registerInfo.username,callback:function(s){e.$set(e.registerInfo,"username",s)},expression:"registerInfo.username"}}),s("div",{staticClass:"Validform_checktip formtip"},[s("span",{staticClass:"i-tip"},[s("i"),s("label",[e._v('支持中文、字母、数字、" - "" _ "的组合')])])])],1),s("div",{staticClass:"input-box onfocusstyle position-input p-w"},[s("label",{staticClass:"icon-phone",attrs:{for:"mobile"}}),s("el-input",{attrs:{type:"text",id:"mobile",placeholder:"手机号码",maxlength:"11",autocomplete:"off"},model:{value:e.registerInfo.tel,callback:function(s){e.$set(e.registerInfo,"tel",s)},expression:"registerInfo.tel"}}),s("div",{staticClass:"Validform_checktip formtip"},[s("span",{},[s("i"),s("label")])])],1),s("div",{staticClass:"input-box yzm-box onfocusstyle y-w"},[s("label",{staticClass:"icon-yzm",attrs:{for:"smscode"}}),s("el-button",{staticClass:"hq-yzm active",attrs:{id:"btnSendCode",disabled:"验证码"!==e.registerInfo.buttonInfo},on:{click:function(s){return e.sendTelMessageCode()}}},[e._v(e._s(e.registerInfo.buttonInfo))]),s("el-input",{staticClass:"phoneyzm",attrs:{type:"text",id:"smscode",maxlength:"8",placeholder:"请输入短信验证码"},model:{value:e.registerInfo.messageCode,callback:function(s){e.$set(e.registerInfo,"messageCode",s)},expression:"registerInfo.messageCode"}}),s("div",{staticClass:"Validform_checktip formtip"},[s("span",{},[s("i"),s("label")])])],1),s("div",{staticClass:"input-box onfocusstyle pass-w"},[s("label",{staticClass:"icon-setpassw",attrs:{for:"password"}}),s("el-input",{attrs:{type:"password",id:"password",placeholder:"请输入密码",maxlength:"20",min:"8",autocomplete:"off","show-password":""},model:{value:e.registerInfo.password,callback:function(s){e.$set(e.registerInfo,"password",s)},expression:"registerInfo.password"}}),s("div",{staticClass:"Validform_checktip formtip"},[s("span",{staticClass:"i-tip"},[s("i"),s("label",[e._v("建议使用字母、数字和符号两种及以上的组合,6-20个字符")])])])],1),s("div",{staticClass:"input-box onfocusstyle position-input pass-w2"},[s("label",{staticClass:"icon-setpassw",attrs:{for:"repassword"}}),s("el-input",{attrs:{type:"password",id:"repassword",placeholder:"请再次输入密码",maxlength:"20","show-password":""},model:{value:e.registerInfo.repassword,callback:function(s){e.$set(e.registerInfo,"repassword",s)},expression:"registerInfo.repassword"}})],1),s("div",{staticClass:"check onfocusstyle",staticStyle:{position:"relative"}},[s("el-checkbox",{attrs:{id:"agree"},model:{value:e.agreeChecked,callback:function(s){e.agreeChecked=s},expression:"agreeChecked"}},[e._v(" 我已阅读并同意")]),s("a",{staticClass:"blue",attrs:{href:"javascript:void(0);"},on:{click:e.showTerms}},[e._v("《服务条款》")]),s("a",{staticClass:"blue",attrs:{href:"javascript:void(0);"},on:{click:e.showPrivacy}},[e._v("《隐私政策》")])],1),s("div",{staticClass:"input-box sub-box"},[s("el-button",{attrs:{type:"primary",id:"reg"},on:{click:e.doRegister}},[e._v("注册")])],1)])]),s("el-col",{staticClass:"right",attrs:{span:12}},[s("div",{staticClass:"hezuo oauth"},[s("h4",[e._v("如果您已注册,请"),s("a",{staticClass:"blue",attrs:{href:"javascript:void(0);"},on:{click:e._doLogin}},[e._v("直接登录")])]),s("p",{staticStyle:{"border-top":"dashed 1px #ddd",margin:"15px auto"}}),s("ul")])])],1)],1),s("terms-dialog",{ref:"termsDialog"}),s("privacy-dialog",{ref:"privacyDialog"})],1)},a=[],o=function(){var e=this,s=e._self._c;return s("el-dialog",{attrs:{visible:e.dialogVisible,width:"70%",top:"5vh","before-close":e.handleClose,"custom-class":"terms-dialog"},on:{"update:visible":function(s){e.dialogVisible=s}}},[s("div",{staticClass:"pass-rule-box"},[s("div",{staticClass:"rule-title"},[s("h3",[e._v("服务条款")]),s("el-button",{staticClass:"btn-close",attrs:{circle:"",icon:"el-icon-close"},on:{click:e.closeDialog}})],1),s("div",{staticClass:"rule-nr"},[s("p",[e._v("一、定义")]),s("p",[e._v("平台,是指您当前所浏览的网站平台(社区商城)。")]),s("p",[e._v(' 用户,包含注册用户和非注册用户,以下亦称为"您"。注册用户是指通过我们平台完成全部注册程序后,使用我们平台服务或我们网站资料的用户。非注册用户是指未进行注册、直接登录我们平台或通过其他网站进入我们平台直接或间接地使用我们平台服务或我们网站资料的用户。 ')]),s("p",[e._v('协议方,本协议中协议双方合称"协议方"。')]),s("p",[e._v("二、协议的效力")]),s("ol",[s("li",[e._v("在您按照注册页面提示填写信息、阅读并同意本协议完成全部注册程序后,您即受本协议的约束。")]),s("li",[e._v(' 本协议内容包括本协议正文《隐私政策》,所有我们已经发布的或将来可能发布的规则为本协议不可分割的组成部分,与本协议具有同等法律效力。除另行明确声明外,任何我司网站提供的服务(以下称为"我们平台服务")均受本协议约束。您承诺接受并遵守本协议的约定。如果您不同意本协议的约定,您应立即停止注册程序或停止使用我们平台服务;如您继续访问和使用我们平台服务,即视为您已确知并完全同意本协议各项内容。 ')]),s("li",[e._v(" 我们有权根据国家法律法规的更新、产品和服务规则的调整需要不时地制订、修改本协议或各类规则,并提前以网站公示的方式进行公示。如您继续使用我们平台服务的,即表示您接受经修订的协议和规则。如发生有关争议时,以我们最新的相关协议和规则为准。 ")])])])])])},r=[],l={name:"TermsDialog",data(){return{dialogVisible:!1}},methods:{open(){this.dialogVisible=!0},closeDialog(){this.dialogVisible=!1},handleClose(e){e()}}},n=l,c=(t("c3ec"),t("2877")),d=Object(c["a"])(n,o,r,!1,null,"cf628860",null),f=d.exports,p=function(){var e=this,s=e._self._c;return s("el-dialog",{attrs:{visible:e.dialogVisible,width:"70%",top:"5vh","before-close":e.handleClose,"custom-class":"privacy-dialog"},on:{"update:visible":function(s){e.dialogVisible=s}}},[s("div",{staticClass:"pass-rule-box"},[s("div",{staticClass:"rule-title"},[s("h3",[e._v("隐私政策")]),s("el-button",{staticClass:"btn-close",attrs:{circle:"",icon:"el-icon-close"},on:{click:e.closeDialog}})],1),s("div",{staticClass:"rule-nr"},[s("p",[e._v(' 本站(以下亦称"我们")深知个人信息对您的重要性,我们尊重并保护所有使用我们平台服务的用户的个人信息,并会尽全力保护您的个人信息安全可靠。我们致力于维持您对我们的信任,恪守以下原则,保护您的个人信息:权责一致原则、目的明确原则、选择同意原则、最少够用原则、确保安全原则、主体参与原则、公开透明原则等。同时,我们承诺,我们将按业界成熟的安全标准,采取相应的安全保护措施来保护您的个人信息。请在使用我们的产品(或服务)前,仔细阅读并了解本《我们隐私政策》(下称"本隐私政策")。 ')]),s("p",[e._v(" ")]),s("p",[e._v("一、我们处理个人信息的法律依据")]),s("p",[e._v(" 本隐私政策制定的法律依据为《中华人民共和国消费者权益保护法》、《中华人民共和国网络安全法》、《中华人民共和国电子商务法》、《信息安全技术个人信息安全规范》以及其他涉及公民个人信息的相关法律法规。通常,我们会基于本隐私政策提示的功能收集您的个人信息。某些情况下,如果涉及其他信息的收集我们会单独向您出示个人信息保护说明条款。 ")])])])])},g=[],h={name:"PrivacyDialog",data(){return{dialogVisible:!1}},methods:{open(){this.dialogVisible=!0},closeDialog(){this.dialogVisible=!1},handleClose(e){e()}}},u=h,v=(t("6fd7"),Object(c["a"])(u,p,g,!1,null,"38eb515c",null)),m=v.exports,b=t("b775");function I(e){return new Promise((s,t)=>{Object(b["a"])({url:"/register.pcUserRegister",method:"post",data:e,headers:{"Content-Type":"application/json"}}).then(e=>{const t=e.data;s(t)}).catch(e=>{t(e)})})}function C(e){return new Promise((s,t)=>{Object(b["a"])({url:"/register.messageCode",method:"get",params:e}).then(e=>{const t=e.data;s(t)}).catch(e=>{t(e)})})}var w={name:"Register",components:{TermsDialog:f,PrivacyDialog:m},data(){return{registerInfo:{username:"",password:"",repassword:"",errorInfo:"",validateInfo:"",tel:"",messageCode:"",logo:"",levelCd:"03",buttonInfo:"验证码"},agreeChecked:!1,timer:null}},methods:{showTerms(){this.$refs.termsDialog.open()},showPrivacy(){this.$refs.privacyDialog.open()},validate(){return this.registerInfo.username?this.registerInfo.username.length<4||this.registerInfo.username.length>12?(this.registerInfo.validateInfo="用户名长度必须在4位至12位",!1):this.registerInfo.password?this.registerInfo.password.length<6||this.registerInfo.password.length>12?(this.registerInfo.validateInfo="密码长度必须在6位至12位",!1):this.registerInfo.tel?/^1[3-9]\d{9}$/.test(this.registerInfo.tel)?this.registerInfo.messageCode?!!/^\d+$/.test(this.registerInfo.messageCode)||(this.registerInfo.validateInfo="验证码必须是数字",!1):(this.registerInfo.validateInfo="验证码不能为空",!1):(this.registerInfo.validateInfo="不是有效的手机号",!1):(this.registerInfo.validateInfo="手机号不能为空",!1):(this.registerInfo.validateInfo="密码不能为空",!1):(this.registerInfo.validateInfo="用户名不能为空",!1)},async doRegister(){if(this.validate())if(this.agreeChecked)try{const e=await I(this.registerInfo);"0"===e.code?(this.$message.success("注册成功"),"03"===this.registerInfo.levelCd?this.$router.push("/pageLR.html#/pages/plateform/login"):this.$router.push("/user.html#/pages/frame/login")):this.$message.error(e.msg)}catch(e){console.error("注册失败:",e),this.$message.error("注册失败")}else this.$message.warning("请先勾选平台协议")},async sendTelMessageCode(){if(/^1[3-9]\d{9}$/.test(this.registerInfo.tel)){if("验证码"===this.registerInfo.buttonInfo){this.messageCodeTimer();try{const e=await C({tel:this.registerInfo.tel});this.registerInfo.validateInfo=e}catch(e){console.error("获取验证码失败:",e),this.$message.error("手机验证码获取异常")}}}else this.$message.warning("手机号码为空或不正确,不能发送验证码")},messageCodeTimer(){let e=60;this.registerInfo.buttonInfo=e+" 秒后重试",this.timer=setInterval(()=>{e--,this.registerInfo.buttonInfo=e+" 秒后重试",0===e&&(clearInterval(this.timer),this.registerInfo.buttonInfo="验证码")},1e3)},_doLogin(){this.$router.push("/pageLR.html#/pages/plateform/login")}},beforeDestroy(){this.timer&&clearInterval(this.timer)}},_=w,y=(t("89d8c"),Object(c["a"])(_,i,a,!1,null,"37311e8a",null));s["default"]=y.exports},c3ec:function(e,s,t){"use strict";t("fa43")},fa43:function(e,s,t){}}]);
|
||
//# sourceMappingURL=chunk-38cd4d57.7c8f632e.js.map
|