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

银行卡图片转账回显

parent 8d42f7c6
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
window.localStorage.removeItem("bank_first" + code); window.localStorage.removeItem("bank_first" + code);
window.localStorage.removeItem("bank_idcard" + code); window.localStorage.removeItem("bank_idcard" + code);
window.localStorage.removeItem( 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.isLogin = false;
this.reload() this.reload()
......
...@@ -295,17 +295,21 @@ export default { ...@@ -295,17 +295,21 @@ export default {
}; };
}, },
created() { created() {
this.getAccount();
this.commonApi(33);
const code = this.$store.state.indexIdentity; const code = this.$store.state.indexIdentity;
this.has_amount = window.localStorage.getItem("has_amount" + code); this.has_amount = window.localStorage.getItem("has_amount" + code);
// 已上传的银行付款图片 // 已上传的银行付款图片
let bank_infoFile = window.localStorage.getItem( let bank_infoFile = window.localStorage.getItem(
"sign_up_payfile_" + window.localStorage.getItem("index-phone-all") + code "sign_up_payfile_" + window.localStorage.getItem("index-phone-all") + code
); );
if (bank_infoFile && JSON.parse(bank_infoFile).length > 0) {
JSON.parse(bank_infoFile).map((i) => { JSON.parse(bank_infoFile).map((i) => {
if (i.url != "") { if (i.url != "") {
this.isBank_infoFile = true; this.isBank_infoFile = true;
} }
}); });
}
if ( if (
bank_infoFile && bank_infoFile &&
this.isBank_infoFile == true && this.isBank_infoFile == true &&
...@@ -314,8 +318,6 @@ export default { ...@@ -314,8 +318,6 @@ export default {
console.log(JSON.parse(bank_infoFile)); console.log(JSON.parse(bank_infoFile));
this.fileList = JSON.parse(bank_infoFile); this.fileList = JSON.parse(bank_infoFile);
} }
this.getAccount();
this.commonApi(33);
}, },
methods: { methods: {
handleClose(done) { handleClose(done) {
...@@ -459,9 +461,7 @@ export default { ...@@ -459,9 +461,7 @@ export default {
// this.personalInfo.create_time = parseTime(res.data.info.create_time); // this.personalInfo.create_time = parseTime(res.data.info.create_time);
}); });
}, },
openBank(){ openBank() {},
},
// 上传银行卡转账截图 // 上传银行卡转账截图
// 图片上传成功前钩子 // 图片上传成功前钩子
......
...@@ -358,11 +358,11 @@ ...@@ -358,11 +358,11 @@
}; };
return obj; 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) JSON.stringify(fileList)
); //上传的图片 ); //上传的图片
} else { } 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