Commit b6d15899 authored by wuwangwolihui's avatar wuwangwolihui

修改-微信二维码截图支付

parent 387c0eae
......@@ -536,9 +536,12 @@
// transfer_account 判断微信支付宝或者银行卡支付
if (this.$store.state.tp_qr_pay == 1) {
//tp_qr_pay 微信二维码截图支付
const camArr = ['9ccaf182cc0b41b59775c91efd863d79', '38fed647ca494a688ce74e263ca60d2a', 'c306126c0f1d41ff947a4c456a2a8349'];
const camArr = [
'9ccaf182cc0b41b59775c91efd863d79', '38fed647ca494a688ce74e263ca60d2a', 'c306126c0f1d41ff947a4c456a2a8349',
'b28c05dd76a8495896f6bc66ef2959f8', '418b49e17c4543968fb4c285e630a809', '287503fe219d4b8790805194cc9b630d'
];
if (camArr.includes(this.$store.state.indexIdentity)) {
// 2025-10-17 西交大营地
// 2025-10-17 西交大营地、 2026-04-27 西交大营地
this.wxImgDialogVisibleXJ = true;
return false;
}
......@@ -729,6 +732,8 @@
await cosSignature({image: image, index: "3"})
.then((res) => {
let resData = res.data.data;
console.log(resData)
return false;
if (res.data.code === 200) {
const cos = new COS({
// 必选参数
......@@ -919,6 +924,77 @@
});
});
},
// 未支付按钮
async signUploadNo(path, resData) {
await achievementCallBack({key: resData.key, index: 3})
.then((res) => {
if (res.data.code != 200) {
this.loading = false;
return this.$message.error("上传失败!");
}
console.log(res);
this.loading = false;
this.$message.success("上传成功!");
this.resultPicture = path + "?t=" + Date.parse(new Date());
this.$forceUpdate();
let obj = {
url: res.data.picture_path,
};
this.fileList.push(obj);
let code = this.$store.state.indexIdentity;
window.localStorage.setItem(
"sign_up_payfile_" +
window.localStorage.getItem("index-phone-all") +
code,
JSON.stringify(this.fileList)
);
this.$message.success({
message: "您已上传成功,等待邮件通知,审核通过后登录报名网址。",
duration: 5000,
});
this.hideUpload = this.fileList.length >= 1;
this.changeStatus();
})
.catch((err) => {
this.loading = false;
});
},
// 已成功支付按钮
async signUploadYes(path, resData) {
await achievementCallBack({key: resData.key, index: 3})
.then((res) => {
if (res.data.code != 200) {
this.loading = false;
return this.$message.error("上传失败!");
}
console.log(res);
this.loading = false;
this.$message.success("上传成功!");
this.resultPicture = path + "?t=" + Date.parse(new Date());
this.$forceUpdate();
let obj = {
url: res.data.picture_path,
};
this.fileList.push(obj);
let code = this.$store.state.indexIdentity;
window.localStorage.setItem(
"sign_up_payfile_" +
window.localStorage.getItem("index-phone-all") +
code,
JSON.stringify(this.fileList)
);
this.$message.success({
message: "您已上传成功,等待邮件通知,审核通过后登录报名网址。",
duration: 5000,
});
this.hideUpload = this.fileList.length >= 1;
this.changeStatus();
})
.catch((err) => {
this.loading = false;
});
},
},
};
</script>
......
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