1f0eeae.js 5.9 KB

12
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[49,50],{703:function(t,e,n){t.exports={}},730:function(t,e,n){"use strict";n.r(e);n(39);var o={props:{mailData:{}}},l=n(22),component=Object(l.a)(o,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"100%","background-color":"#f7f7f7",color:"#4a596c",position:"relative"}},[e("div",{staticStyle:{width:"960px","box-sizing":"border-box",padding:"20px 80px",margin:"0 auto","background-color":"#fff"}},[e("div",{staticStyle:{"background-color":"#fff",margin:"0 auto"}},[t._m(0),t._v(" "),e("hr"),t._v(" "),t._m(1),t._v(" "),e("p",[t._v("Hello! "+t._s(t.mailData.name))]),t._v(" "),e("p",{staticStyle:{width:"620px",margin:"40px 0px 20px"}},[t._v("\n Please click the link below or copy and paste it into your browser\n to create a new password on the PromoCollection website.\n ")]),t._v(" "),e("p",[e("a",{staticStyle:{color:"#5c7dd4"},attrs:{href:t.mailData.Url+"?email="+t.mailData.email,target:"_blank"}},[t._v("\n "+t._s(t.mailData.Url+"?email="+t.mailData.email)+"\n ")])]),t._v(" "),e("p",{staticStyle:{margin:"20px auto 30px"}},[t._v("\n This link is valid for 3 hours after receiving this email.\n ")])])]),t._v(" "),e("div",{staticStyle:{height:"24px",width:"960px","background-color":"#f7f7f7"}}),t._v(" "),t._m(2)])])}),[function(){var t=this._self._c;return t("p",{staticStyle:{"text-align":"center"}},[t("img",{attrs:{src:"https://promocollection.s3.ap-southeast-2.amazonaws.com/uploads/goodsfolder/logo.png"}})])},function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"padding-top":"18px","margin-bottom":"38px","font-size":"18px"}},[e("table",[e("tr",[e("td",{staticStyle:{position:"relative",width:"200px",color:"#02bde3","font-weight":"bold"}},[e("div",{staticStyle:{width:"100%","text-align":"left"}},[t._v("\n Home&lifestyle\n ")])]),t._v(" "),e("td",{staticStyle:{position:"relative",width:"200px",color:"#02bde3","font-weight":"bold"}},[e("div",{staticStyle:{width:"100%","text-align":"center"}},[t._v("\n Antibacterial range\n ")])]),t._v(" "),e("td",{staticStyle:{position:"relative",width:"200px",color:"#02bde3","font-weight":"bold"}},[e("div",{staticStyle:{width:"100%","text-align":"center"}},[t._v("\n Technology\n ")])]),t._v(" "),e("td",{staticStyle:{position:"relative",width:"200px",color:"#02bde3","font-weight":"bold"}},[e("div",{staticStyle:{width:"100%","text-align":"right"}},[t._v("\n Outdoor & leisure\n ")])])])])])},function(){var t=this,e=t._self._c;return e("div",{staticStyle:{width:"960px","box-sizing":"border-box",padding:"20px 80px",margin:"0 auto","background-color":"#fff"}},[e("div",{staticStyle:{height:"180px","background-color":"#fff",margin:"0 auto"}},[e("p",{staticStyle:{color:"#02bde3","font-size":"22px"}},[t._v("\n Have more questions? contact us!\n ")]),t._v(" "),e("p",{staticStyle:{margin:"20px 0"}},[t._v("Phone: 1300 369 252")]),t._v(" "),e("p",[t._v("\n Email:\n "),e("span",{staticStyle:{color:"#5c7dd4","text-decoration":"underline"}},[t._v("\n Info@promocollection.com.au\n ")])])])])}],!1,null,"01ad45ce",null);e.default=component.exports},829:function(t,e,n){"use strict";n(703)},875:function(t,e,n){"use strict";n.r(e);n(39),n(17),n(79);var o=n(227),l=n(636),r={name:"resetPasswordDialog",data:function(){return{disabledFlag:!1,resetDialogVisible:!1,email:"",butonContent:"SEND RESET EMAIL",time:60,timer:null,mailData:{Url:"",name:"",email:""}}},watch:{email:{handler:function(t,e){if(t){/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(this.email)?this.disabledFlag=!1:this.disabledFlag=!0,this.getmailData()}},immediate:!0}},mounted:function(){this.getmailData()},methods:{goBack:function(){this.resetDialogVisible=!1,this.$emit("openLoginDialog")},getmailData:function(){this.mailData.Url=location.origin+"/setNewPassword",this.mailData.name=this.email,this.mailData.email=o.a.encrypt(this.email+"&t="+Date.now())},debounceSendEmail:n.n(l).a.debounce((function(){this.sendEmail()}),200),sendEmail:function(){var t=this;this.email&&(this.disabledFlag=!0,this.getmailData(),this.timer=setInterval((function(){0==t.time?t.resetData():(t.butonContent="Resend Passwords in "+t.time+" s",t.time--)}),1e3),this.$axios.post("au/resetemail",{email:this.email,content:this.$refs.resetPasswordMail.$el.innerHTML}).then((function(e){1==e.code&&(t.resetData(),t.time=60,t.$notify({title:"success",message:"Sending an email successfully",type:"success",duration:3e3}))})).catch((function(){t.resetData(),t.time=60})))},resetData:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];clearInterval(this.timer),this.disabledFlag=t,this.butonContent="SEND RESET EMAIL"}},beforeDestroy:function(){clearInterval(this.timer)}},c=r,d=(n(829),n(22)),component=Object(d.a)(c,(function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{"lock-scroll":!1,visible:t.resetDialogVisible,width:"700px"},on:{"update:visible":function(e){t.resetDialogVisible=e}}},[e("el-page-header",{on:{back:t.goBack}}),t._v(" "),e("div",{staticClass:"dialog-content"},[e("p",[t._v("Reset Password")]),t._v(" "),e("p",[t._v("\n Enter your email address and we'll send a link to reset your password.\n ")]),t._v(" "),e("el-input",{attrs:{placeholder:"Email"},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}}),t._v(" "),e("el-button",{staticClass:"reset-btn",attrs:{plain:"",disabled:t.disabledFlag},on:{click:t.debounceSendEmail}},[t._v("\n "+t._s(t.butonContent)+"\n ")])],1),t._v(" "),e("reset-password-mail",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"resetPasswordMail",attrs:{mailData:t.mailData}})],1)}),[],!1,null,"23a70f61",null);e.default=component.exports;installComponents(component,{ResetPasswordMail:n(730).default})}}]);
  2. //# sourceMappingURL=1f0eeae.js.map