davienaskincaree.com Open in urlscan Pro
2606:4700:3037::ac43:8dc7  Public Scan

URL: https://davienaskincaree.com/js/chunk-2d0c0c19.34f6450f.js
Submission: On October 26 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c0c19"],{"42af":function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"content-wrapper"},[r("van-nav-bar",{staticClass:"header bg-template",attrs:{title:e.$t("forget_withdraw_password"),fixed:"","z-index":"999","left-arrow":""},on:{"click-left":function(t){return e.$router.back()}}}),r("div",{staticClass:"m-login-wrap"},[r("van-form",{on:{submit:e.commit}},[r("van-field",{attrs:{type:"tel",label:e.$t("phone")+(e.paramMapAll["SMS_PHONE_PREFIX"]?"("+e.paramMapAll["SMS_PHONE_PREFIX"]+")":""),placeholder:e.$t("phone"),readonly:"",rules:[{required:!0,message:e.$t("please_input_phone")},{pattern:/^\d{5,}$/,message:"Incorrect phone number format",trigger:"blur"}]},model:{value:e.forgetForm.phone,callback:function(t){e.$set(e.forgetForm,"phone",t)},expression:"forgetForm.phone"}}),r("div",{staticClass:"d-flex"},[r("van-field",{attrs:{type:"number",name:e.$t("captcha"),label:e.$t("captcha"),rules:[{required:!0,message:e.$t("please_input_captcha")}]},scopedSlots:e._u([{key:"button",fn:function(){return[e.time>0?r("van-count-down",{attrs:{time:e.time},on:{change:e.changeTime},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",{staticClass:"block text-grey"},[e._v(e._s(e.$t("send_captcha_after",{second:t.seconds})))])]}}],null,!1,3279296530)}):r("van-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return t.stopPropagation(),e.sendCode(t)}}},[e._v(e._s(e.$t("send_captcha")))])]},proxy:!0}]),model:{value:e.forgetForm.smsCode,callback:function(t){e.$set(e.forgetForm,"smsCode",t)},expression:"forgetForm.smsCode"}})],1),r("van-field",{attrs:{type:"password",name:e.$t("password"),label:e.$t("password"),placeholder:e.$t("password"),rules:[{required:!0,message:e.$t("tips.tip_enter",{tip:e.$t("password")})},{pattern:/^.{4,16}$/,message:e.$t("withdraw_password_format_error"),trigger:"blur"}]},model:{value:e.forgetForm.password,callback:function(t){e.$set(e.forgetForm,"password",t)},expression:"forgetForm.password"}}),r("van-field",{attrs:{type:"password",name:e.$t("confirm_password"),label:e.$t("confirm_password"),placeholder:e.$t("confirm_password"),rules:[{required:!0,message:e.$t("please_input_confirm_password")},{pattern:/^.{4,16}$/,message:e.$t("withdraw_password_format_error"),trigger:"blur"}]},model:{value:e.forgetForm.rePassowrd,callback:function(t){e.$set(e.forgetForm,"rePassowrd",t)},expression:"forgetForm.rePassowrd"}}),r("div",{staticStyle:{margin:"16px"}},[r("van-button",{attrs:{loading:e.loading,small:"",round:"",block:"",type:"primary","native-type":"submit","loading-text":e.$t("submitting")}},[e._v("\n                    "+e._s(e.$t("submit"))+"\n                ")])],1)],1)],1)],1)},s=[],n=r("ad20");function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p={name:"M_FrogetTk",components:{},computed:i(i({},Vuex.mapGetters(["userInfo","paramMapAll"])),{},{isPhoneLoginOpen:function(){return"1"===this.paramMapAll["PHONE_LOGIN_OPEN"]}}),data:function(){return{loading:!1,forgetForm:{},time:0}},watch:{},created:function(){this.forgetForm.phone=this.userInfo.phone,this.time=parseInt(Cookies.get("Forget_Code_Countdown_Time"))},methods:{sendCode:function(){var e=this;this.forgetForm.phone?(this.time=6e4,Cookies.set("Forget_Code_Countdown_Time",6e4),Object(n["i"])({phone:this.forgetForm.phone,sendType:"FORGET_TK_PWD_CODE"}).then((function(t){e.$dialog.alert({message:e.$t("send_captcha_success")})})).catch((function(t){e.time=0,Cookies.set("Forget_Code_Countdown_Time",0)}))):this.$dialog.alert({message:this.$t("please_input_phone")})},changeTime:function(e){this.time=1e3*e.seconds+e.milliseconds,Cookies.set("Forget_Code_Countdown_Time",1e3*e.seconds+e.milliseconds)},commit:function(){var e=this;if(this.forgetForm.rePassowrd==this.forgetForm.password){this.loading=!0;var t=Object.assign({},this.forgetForm);this.$store.dispatch("user/forgetTkPwd",t).then((function(){e.loading=!1,e.$toast.success(e.$t("commit_success")),e.$router.back()})).catch((function(){e.loading=!1}))}else this.$toast.fail(this.$t("confirm_password_error"))}}},l=p,d=r("2877"),u=Object(d["a"])(l,o,s,!1,null,"4fef269b",null);t["default"]=u.exports}}]);