/
home
/
henzagold
/
customerB
/
export
/
js
/
File Upload :
llllll
Current File: /home/henzagold/customerB/export/js/chunk-fc919e8e.0cdcebb6.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fc919e8e"],{"55fc":function(t,e,o){t.exports=o.p+"img/login.66c23784.jpg"},6089:function(t,e,o){},7564:function(t,e,o){"use strict";o.r(e);var s=function(){var t=this,e=t._self._c;return e("login",[e("form",[e("div",{staticClass:"auth-text"},[e("h3",[t._v("به هنزاگلد خوش آمدید")])]),e("div",[e("div",{staticClass:"form-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.Fname,expression:"Fname"}],staticClass:"form-control form-control-light",attrs:{type:"text",placeholder:"نام"},domProps:{value:t.Fname},on:{input:function(e){e.target.composing||(t.Fname=e.target.value)}}})]),t.Alert[0]&&!t.Fname?e("div",{staticClass:"text-danger text-sm",staticStyle:{"margin-right":".5rem"}},[t._v(" "+t._s(t.Alert[0])+" ")]):t._e(),e("div",{staticClass:"form-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.Lname,expression:"Lname"}],staticClass:"form-control form-control-light",attrs:{type:"text",placeholder:"نام خانوادگی"},domProps:{value:t.Lname},on:{input:function(e){e.target.composing||(t.Lname=e.target.value)}}})]),t.Alert[1]&&!t.Lname?e("div",{staticClass:"text-danger text-sm",staticStyle:{"margin-right":".5rem"}},[t._v(" "+t._s(t.Alert[1])+" ")]):t._e(),e("div",{staticClass:"form-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.Phone,expression:"Phone"}],staticClass:"form-control form-control-light",attrs:{type:"text",placeholder:"شماره تلفن همراه"},domProps:{value:t.Phone},on:{input:function(e){e.target.composing||(t.Phone=e.target.value)}}})]),t.Alert[2]&&!t.Is_Phone_Correct?e("div",{staticClass:"text-danger text-sm",staticStyle:{"margin-right":".5rem"}},[t._v(" "+t._s(t.Alert[2])+" ")]):t._e(),e("button",{staticClass:"btn-custom secondary btn-block",on:{click:function(e){return e.preventDefault(),t.Register.apply(null,arguments)}}},[t._v("ثبت نام ")])]),e("div",{staticClass:"social-login"},[e("a",{staticClass:"btn-custom secondary btn-block",attrs:{href:"https://henzagold.com/"}},[t._v(" بازگشت به فروشگاه ")])]),e("p",{staticClass:"text-center mb-0"},[t._v("آیا حساب کاربری دارید ؟ "),e("router-link",{attrs:{to:"/login"}},[t._v("ورود")])],1)])])},r=[],n=(o("14d9"),o("a18c")),a=o("be3b"),i=o("76f2"),l={props:{togglePreLoader:Function},components:{login:i["a"]},data(){return{Fname:null,Lname:null,Phone:null,Alert:[null,null,null],Is_Phone_Correct:!0}},methods:{async Register(){try{/^(\+98|0098|98|0)?9\d{9}$/g.test(this.Phone)&&this.Fname&&this.Lname?(this.togglePreLoader("open"),await Object(a["a"])({method:"post",url:"/cu/register",headers:{},data:{phone:this.Phone,lname:this.Lname,fname:this.Fname}}),n["a"].push("/customer/login")):(this.Fname||this.$vs.notify({time:3500,text:"نام را وارد نمایید",color:"var(--secondary-color)",icon:"error_outline"}),this.Lname||this.$vs.notify({time:3500,text:"نام خانوادگی را وارد نمایید",color:"var(--secondary-color)",icon:"error_outline"}),/^(\+98|0098|98|0)?9\d{9}$/g.test(this.Phone)||this.$vs.notify({time:3500,text:"شماره تلفن همراه را وارد نمایید",color:"var(--secondary-color)",icon:"error_outline"}))}catch(t){if(console.log(t.response),t.response.data){let e="";for(let o of Object.values(t.response.data.errors))o.map(t=>{e+=t+"<br/>"});this.$vs.notify({title:"خطایی رخ داد",time:3500,text:e,color:"var(--secondary-color)",icon:"error_outline"})}else this.$vs.notify({title:"خطایی رخ داد",time:3500,text:t,color:"var(--secondary-color)",icon:"error_outline"})}finally{this.togglePreLoader("close")}}},mounted(){},watch:{Phone(){this.Phone?!0!==/^(\+98|0098|98|0)?9\d{9}$/g.test(this.Phone)?(this.Alert[2]="تلفن همراه وارد شده نامعتبر می باشد",this.Is_Phone_Correct=!1):(this.Alert[2]=null,this.Is_Phone_Correct=!0):(this.Alert[2]="وارد کردن تلفن همراه الزامی است",this.Is_Phone_Correct=!1)},Fname(){this.Fname?!0!==/^([\u0600-\u06FF\uFB8A\u067E\u0686\u06AF\u200C ])+$/.test(this.Fname)?this.Alert[0]="نام باید تنها شامل حروف فارسی باشد":this.Alert[0]=null:this.Alert[0]="وارد کردن نام الزامی است"},Lname(){this.Lname?/^([\u0600-\u06FF\uFB8A\u067E\u0686\u06AF\u200C ])+$/.test(this.Lname)?this.Alert[1]=null:this.Alert[1]="نام باید تنها شامل حروف فارسی باشد":this.Alert[1]="وارد کردن نام خانوادگی الزامی است"}}},c=l,u=o("2877"),m=Object(u["a"])(c,s,r,!1,null,null,null);e["default"]=m.exports},"76f2":function(t,e,o){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"login-style-2"},[e("div",{staticClass:"container"},[e("div",{staticClass:"acr-auth-container"},[e("div",{staticClass:"acr-auth-content"},[t._t("default")],2),e("div",{staticClass:"acr-auth-bg bg-cover bg-center dark-overlay dark-overlay-2",style:"background: "+t.url})])])])},r=[],n={data(){return{url:`url(${o("55fc")})`}}},a=n,i=(o("e4c7"),o("2877")),l=Object(i["a"])(a,s,r,!1,null,"0ed357dd",null);e["a"]=l.exports},e4c7:function(t,e,o){"use strict";o("6089")}}]); //# sourceMappingURL=chunk-fc919e8e.0cdcebb6.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure