quanyawei
2024-05-13 1ee177908aaf4cf2474384503404cd238036596c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
export class TransferService {
    private step: 0 | 1 | 2 = 1;
 
    /**
     * 付款账户
     */
    private payAccount: string = '';
 
    /**
     * 收款账户类型
     */
    private receiverType: 'alipay' | 'bank' = 'alipay';
 
    get receiverTypeStr() {
        return this.receiverType === 'alipay' ? '支付宝' : '银行';
    }
 
    /**
     * 收款账户
     */
    private receiverAccount: string = '';
 
    /**
     * 收款姓名
     */
    private receiverName: string = '';
 
    /**
     * 金额
     */
    private amount: number = 0;
 
    /**
     * 支付密码
     */
    private password: string = '123456';
 
    constructor() {
        this.again();
    }
 
    private again() {
        this.step = 0;
        this.payAccount = 'ant-design@alipay.com';
        this.receiverType = 'alipay';
        this.receiverAccount = 'test@example.com';
        this.receiverName = 'asdf';
        this.amount = 500;
    }
 
}