Commit 3f147148 by zhousil

银行卡转账

parent 0822f25b
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
payMethodMapping, payMethodMapping,
PayStatus, PayStatus,
payStatusMapping, payStatusMapping,
cardPayStatusMapping,
} from "@/customer-service/model"; } from "@/customer-service/model";
import { PayMessageBody } from "@/customer-service/xim/models/chat"; import { PayMessageBody } from "@/customer-service/xim/models/chat";
import { Component } from "vue-property-decorator"; import { Component } from "vue-property-decorator";
...@@ -54,6 +55,10 @@ ...@@ -54,6 +55,10 @@
} }
private get status() { private get status() {
// 银行卡转账
if (+this.payData.paymentFunction === PayMethod.CardTransfer) {
return cardPayStatusMapping.get(+this.payData.status);
}
return payStatusMapping.get(+this.payData.status); return payStatusMapping.get(+this.payData.status);
} }
......
...@@ -102,6 +102,11 @@ export const payStatusMapping = new Map<PayStatus, string>([ ...@@ -102,6 +102,11 @@ export const payStatusMapping = new Map<PayStatus, string>([
[PayStatus.Refund, "已退费"], [PayStatus.Refund, "已退费"],
]); ]);
export const cardPayStatusMapping = new Map<PayStatus, string>([
[PayStatus.UnPay, "待转账"],
[PayStatus.Paied, "已转账"],
]);
export const enum PayMethod { export const enum PayMethod {
CardTransfer = 1, CardTransfer = 1,
Balance, Balance,
......
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 sign in to comment