|
@@ -209,7 +209,7 @@ export default {
|
|
|
activeData: {},
|
|
activeData: {},
|
|
|
idcard_face_photo_old: "",
|
|
idcard_face_photo_old: "",
|
|
|
recent_photos_old: "",
|
|
recent_photos_old: "",
|
|
|
- checkStatus:0,//是否审核通过才允许学习 1是0否
|
|
|
|
|
|
|
+ checkStatus: 0, //是否审核通过才允许学习 1是0否
|
|
|
STATUS: false //区分个人中心入口操作
|
|
STATUS: false //区分个人中心入口操作
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
@@ -286,7 +286,7 @@ export default {
|
|
|
...JSON.parse(res.data.keyValue2)
|
|
...JSON.parse(res.data.keyValue2)
|
|
|
];
|
|
];
|
|
|
let Obj = {};
|
|
let Obj = {};
|
|
|
- this.checkStatus = res.data.checkStatus || 0
|
|
|
|
|
|
|
+ this.checkStatus = res.data.checkStatus || 0;
|
|
|
Ary.forEach(i => {
|
|
Ary.forEach(i => {
|
|
|
Obj[i.fieldKey] = [
|
|
Obj[i.fieldKey] = [
|
|
|
{
|
|
{
|
|
@@ -409,25 +409,10 @@ export default {
|
|
|
JSON.parse(res.data.keyValue)
|
|
JSON.parse(res.data.keyValue)
|
|
|
); //历史数据
|
|
); //历史数据
|
|
|
resolve();
|
|
resolve();
|
|
|
- }else if(this.checkStatus == 1 && res.data.status !== 1){
|
|
|
|
|
|
|
+ } else if (this.checkStatus == 1 && res.data.status !== 1) {
|
|
|
//后台设置需要审核通过才允许学习
|
|
//后台设置需要审核通过才允许学习
|
|
|
- this.$confirm(`资料正在审核中,暂无法学习,请耐心等待!如需加急审核,请联系客服人员`, "提示", {
|
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
|
- cancelButtonText: "返回",
|
|
|
|
|
- closeOnClickModal: false,
|
|
|
|
|
- closeOnPressEscape: false,
|
|
|
|
|
- distinguishCancelAndClose: false,
|
|
|
|
|
- showClose: false
|
|
|
|
|
- })
|
|
|
|
|
- .then(_ => {
|
|
|
|
|
- //停止执行-退出页面
|
|
|
|
|
- this.$router.back(-1);
|
|
|
|
|
- })
|
|
|
|
|
- .catch(_ => {
|
|
|
|
|
- //停止执行-退出页面
|
|
|
|
|
- this.$router.back(-1);
|
|
|
|
|
- });
|
|
|
|
|
- }else {
|
|
|
|
|
|
|
+ this.checkFunc();
|
|
|
|
|
+ } else {
|
|
|
this.isShow = false;
|
|
this.isShow = false;
|
|
|
//不需要填写
|
|
//不需要填写
|
|
|
this.$emit("callbackDataReview");
|
|
this.$emit("callbackDataReview");
|
|
@@ -558,6 +543,30 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ //审核通过才允许学习
|
|
|
|
|
+ checkFunc() {
|
|
|
|
|
+ //后台设置需要审核通过才允许学习
|
|
|
|
|
+ this.$confirm(
|
|
|
|
|
+ `资料正在审核中,暂无法学习,请耐心等待!如需加急审核,请联系客服人员`,
|
|
|
|
|
+ "提示",
|
|
|
|
|
+ {
|
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
|
+ cancelButtonText: "返回",
|
|
|
|
|
+ closeOnClickModal: false,
|
|
|
|
|
+ closeOnPressEscape: false,
|
|
|
|
|
+ distinguishCancelAndClose: false,
|
|
|
|
|
+ showClose: false
|
|
|
|
|
+ }
|
|
|
|
|
+ )
|
|
|
|
|
+ .then(_ => {
|
|
|
|
|
+ //停止执行-退出页面
|
|
|
|
|
+ this.$router.back(-1);
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(_ => {
|
|
|
|
|
+ //停止执行-退出页面
|
|
|
|
|
+ this.$router.back(-1);
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
//照片处理逻辑
|
|
//照片处理逻辑
|
|
|
async uploadImg(e, item) {
|
|
async uploadImg(e, item) {
|
|
|
try {
|
|
try {
|
|
@@ -745,10 +754,15 @@ export default {
|
|
|
//证件照与身份证匹配
|
|
//证件照与身份证匹配
|
|
|
IdCardCompareFace() {
|
|
IdCardCompareFace() {
|
|
|
return new Promise(async (resolve, reject) => {
|
|
return new Promise(async (resolve, reject) => {
|
|
|
- if (!(
|
|
|
|
|
- this.infoForm["idcard_face_photo"] &&
|
|
|
|
|
- this.infoForm["recent_photos"] && (this.infoForm["idcard_face_photo"] !== this.idcard_face_photo_old || this.infoForm["recent_photos"] !== this.recent_photos_old)
|
|
|
|
|
- )) {
|
|
|
|
|
|
|
+ if (
|
|
|
|
|
+ !(
|
|
|
|
|
+ this.infoForm["idcard_face_photo"] &&
|
|
|
|
|
+ this.infoForm["recent_photos"] &&
|
|
|
|
|
+ (this.infoForm["idcard_face_photo"] !==
|
|
|
|
|
+ this.idcard_face_photo_old ||
|
|
|
|
|
+ this.infoForm["recent_photos"] !== this.recent_photos_old)
|
|
|
|
|
+ )
|
|
|
|
|
+ ) {
|
|
|
resolve();
|
|
resolve();
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -845,6 +859,11 @@ export default {
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
this.$message.success("提交成功");
|
|
this.$message.success("提交成功");
|
|
|
this.isShow = false;
|
|
this.isShow = false;
|
|
|
|
|
+ if (this.checkStatus == 1) {
|
|
|
|
|
+ //后台设置需要审核通过才允许学习
|
|
|
|
|
+ this.checkFunc();
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
this.$emit("callbackDataReview");
|
|
this.$emit("callbackDataReview");
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
@@ -865,6 +884,11 @@ export default {
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
this.$message.success("提交成功");
|
|
this.$message.success("提交成功");
|
|
|
this.isShow = false;
|
|
this.isShow = false;
|
|
|
|
|
+ if (this.checkStatus == 1) {
|
|
|
|
|
+ //后台设置需要审核通过才允许学习
|
|
|
|
|
+ this.checkFunc();
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
this.$emit("callbackDataReview");
|
|
this.$emit("callbackDataReview");
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|