Commit 13d8ff18 authored by ‘yangmengxue’'s avatar ‘yangmengxue’

银行卡图片转账回显

parent 8d42f7c6
......@@ -137,7 +137,7 @@
window.localStorage.removeItem("bank_first" + code);
window.localStorage.removeItem("bank_idcard" + code);
window.localStorage.removeItem(
"bank_info" + window.localStorage.getItem("index-phone-all") + code
"sign_up_payfile_" + window.localStorage.getItem("index-phone-all") + code
);
this.isLogin = false;
this.reload()
......
......@@ -295,17 +295,21 @@ export default {
};
},
created() {
this.getAccount();
this.commonApi(33);
const code = this.$store.state.indexIdentity;
this.has_amount = window.localStorage.getItem("has_amount" + code);
// 已上传的银行付款图片
let bank_infoFile = window.localStorage.getItem(
"sign_up_payfile_" + window.localStorage.getItem("index-phone-all") + code
);
JSON.parse(bank_infoFile).map((i) => {
if (i.url != "") {
this.isBank_infoFile = true;
}
});
if (bank_infoFile && JSON.parse(bank_infoFile).length > 0) {
JSON.parse(bank_infoFile).map((i) => {
if (i.url != "") {
this.isBank_infoFile = true;
}
});
}
if (
bank_infoFile &&
this.isBank_infoFile == true &&
......@@ -314,8 +318,6 @@ export default {
console.log(JSON.parse(bank_infoFile));
this.fileList = JSON.parse(bank_infoFile);
}
this.getAccount();
this.commonApi(33);
},
methods: {
handleClose(done) {
......@@ -459,11 +461,9 @@ export default {
// this.personalInfo.create_time = parseTime(res.data.info.create_time);
});
},
openBank(){
},
openBank() {},
// 上传银行卡转账截图
// 图片上传成功前钩子
beforeAvatarUpload(file) {
// console.log(file, "beforeImage");
......
......@@ -358,11 +358,11 @@
};
return obj;
});
window.localStorage.setItem("bank_info" + window.localStorage.getItem("index-phone-all") + code,
window.localStorage.setItem("sign_up_payfile_" + window.localStorage.getItem("index-phone-all") + code,
JSON.stringify(fileList)
); //上传的图片
} else {
window.localStorage.setItem("bank_info" + window.localStorage.getItem("index-phone-all") + code,
window.localStorage.setItem("sign_up_payfile_" + window.localStorage.getItem("index-phone-all") + code,
"[]"
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment