소스검증을 위한 수정 변경

This commit is contained in:
kimre
2022-07-12 12:26:45 +09:00
parent 74511fb587
commit 3d7032432c
40 changed files with 2028 additions and 2120 deletions

View File

@@ -48,7 +48,7 @@ import api from '../service/api';
import tokenSvc from '@/common/token-service';
import { utils_mixin, chkPattern2 } from '../service/mixins';
import LoginPopup from '@/components/LoginPopup.vue'
import commonModal from "@/components/modal/commonModal";
import commonModal from "../components/commonModal";
export default {
name: 'Params',
@@ -137,16 +137,26 @@ export default {
async authNum(){
var vm = this;
let userId = vm.$route.params.userId;
this.row = {}
if(!this.isLogin){
vm.$store.commit("login/isLogin", false);
vm.$store.commit("login/isAuthChk", false);
vm.$router.push({ path: '/'});
return;
return false;
}
const hp = this.mdn;
if(this.isNull(hp)){
this.row.title = '로그인';
this.row.msg1 = '휴대폰번호를 입력하세요.';
this.$refs.commmonModal.alertModalOpen(this.row);
return false;
}
if(!this.isNull(hp) && !this.isMobile(hp)){
this.row.title = '관리자/유치채널 관리';
this.row.title = '로그인';
this.row.msg1 = '휴대폰 번호 형식이 잘못되었습니다. 확인해 주세요.';
this.$refs.commmonModal.alertModalOpen(this.row);
this.$refs._phone.focus();
@@ -162,13 +172,26 @@ export default {
const response = await api.authNum(params)
console.log(response);
var rsp = response.data;
if(rsp.retCode == '0000'){
if(rsp.retCode == '0000') {
this.timerStop(this.timer);
this.timer = this.timerStart();
this.row.title = '인증번호 발송';
this.row.msg1 = '인증번호를 발송하였습니다.';
this.$refs.commmonModal.alertModalOpen(this.row);
this.isAuthNum = true;
}else if(rsp.retCode == '4008'){
this.row.title = '휴대폰번호 확인';
this.row.msg1 = '휴대폰번호를 확인해주세요.';
this.row.msg2 = '아이디에 등록된 휴대폰번호로만 인증이 가능합니다.';
this.$refs.commmonModal.alertModalOpen(this.row);
}else if(rsp.retCode == '4011'){
this.row.title = '인증실패';
this.row.msg1 = '잘못된 인증번호입니다.';
this.row.msg2 = '5회 실패 시 로그아웃됩니다.';
this.row.callFnc = 'login'
vm.$store.commit("login/isLogin", false);
vm.$store.commit("login/isAuthChk", false);
this.$refs.commmonModal.alertModalOpen(this.row);
}else if (!this.timer) {
this.timerStop(this.timer);
this.timer = null;
@@ -187,7 +210,7 @@ export default {
async ajaxAuth(){
var vm = this;
let userId = vm.$route.params.userId;
this.row = {}
if(!this.mdn){
this.row.title = '휴대폰번호 확인';
this.row.msg1 = '휴대폰번호를 확인해 주세요.';
@@ -209,7 +232,11 @@ export default {
}
if(this.timeCounter == 0){
this.ModalOpen('modal10');
// this.ModalOpen('modal10');
this.row.title = '인증실패';
this.row.msg1 = '인증시간 초과되었습니다.';
this.row.msg2 = '다시 휴대폰번호를 입력해주세요.';
this.$refs.commmonModal.alertModalOpen(this.row);
return false;
}
var params = {
@@ -324,7 +351,12 @@ export default {
+ secondes.toString().padStart(2, "0")
);
},
alertCalbackFnc(callFnc){
console.log(callFnc)
if(callFnc === 'login'){
this.$router.push({ path: '/'});
}
},
}
};
</script>