|
@@ -432,7 +432,11 @@ export default {
|
|
|
backFillData() {
|
|
|
if (Object.keys(this.historyData).length > 0 || this.historyData.id) {
|
|
|
for (let i in this.historyData) {
|
|
|
- this.$set(this.infoForm, i, this.historyData[i].value);
|
|
|
+ this.$set(
|
|
|
+ this.infoForm,
|
|
|
+ i,
|
|
|
+ this.historyData[i] ? this.historyData[i].value : null
|
|
|
+ );
|
|
|
if (i == "recent_photos") {
|
|
|
this.recent_photos_old = this.historyData[i].value;
|
|
|
}
|
|
@@ -554,7 +558,8 @@ export default {
|
|
|
checkFunc() {
|
|
|
//后台设置需要审核通过才允许学习
|
|
|
this.$confirm(
|
|
|
- `资料正在审核中,暂无法学习,请耐心等待!如需加急审核,请联系客服人员`,
|
|
|
+ // `资料正在审核中,暂无法学习,请耐心等待!如需加急审核,请联系客服人员`,
|
|
|
+ `您的资料预计2个工作日内完成审核,请耐心等待,审核通过再进入学习!`,
|
|
|
"提示",
|
|
|
{
|
|
|
confirmButtonText: "确定",
|
|
@@ -577,7 +582,7 @@ export default {
|
|
|
//照片处理逻辑
|
|
|
async uploadImg(e, item) {
|
|
|
try {
|
|
|
- let A = ["idcard_face_photo", "idcard_national_photo"].indexOf(item);
|
|
|
+ let A = ["idcard_face_photo"].indexOf(item); //["idcard_face_photo","idcard_national_photo"]
|
|
|
let file = await this.uploadRules(e.target.files[0]);
|
|
|
if (A !== -1) {
|
|
|
const res = await this.faceCertificationIDCardOCR(A + 1, file);
|
|
@@ -666,7 +671,7 @@ export default {
|
|
|
if (
|
|
|
this.infoForm["name"] &&
|
|
|
this.cacheIdCardData["IdName"] &&
|
|
|
- this.infoForm["name"] !== this.cacheIdCardData["IdName"]
|
|
|
+ this.infoForm["name"].replace(/\s/g, "") !== this.cacheIdCardData["IdName"]
|
|
|
) {
|
|
|
var str = "输入的姓名和身份证人像面照片姓名不匹配,请联系客服";
|
|
|
this.$message.warning(str);
|
|
@@ -674,7 +679,7 @@ export default {
|
|
|
} else if (
|
|
|
this.infoForm["idcard"] &&
|
|
|
this.cacheIdCardData["IdNum"] &&
|
|
|
- this.infoForm["idcard"] !== this.cacheIdCardData["IdNum"]
|
|
|
+ this.infoForm["idcard"].replace(/\s/g, "") !== this.cacheIdCardData["IdNum"]
|
|
|
) {
|
|
|
var str = "输入的身份证号和身份证人像面照片身份证号不匹配,请联系客服";
|
|
|
this.$message.warning(str);
|