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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
| <template>
| <div>
| <a-form style="max-width: 500px; margin: 40px auto 0;">
| <a-alert
| :closable="true"
| :message="$t('note')"
| style="margin-bottom: 24px;"
| />
| <a-form-item
| :label="$t('payment')"
| :labelCol="{span: 7}"
| :wrapperCol="{span: 17}"
| class="stepFormText"
| >
| ant-design@alipay.com
| </a-form-item>
| <a-form-item
| :label="$t('collection')"
| :labelCol="{span: 7}"
| :wrapperCol="{span: 17}"
| class="stepFormText"
| >
| test@example.com
| </a-form-item>
| <a-form-item
| :label="$t('collectionName')"
| :labelCol="{span: 7}"
| :wrapperCol="{span: 17}"
| class="stepFormText"
| >
| Alex
| </a-form-item>
| <a-form-item
| :label="$t('transferAmount')"
| :labelCol="{span: 7}"
| :wrapperCol="{span: 17}"
| class="stepFormText"
| >
| ¥ 5,000.00
| </a-form-item>
| <a-form-item :wrapperCol="{span: 17, offset: 7}">
| <a-button :loading="loading" type="primary" @click="nextStep">{{$t('submit')}}</a-button>
| <a-button style="margin-left: 8px" @click="prevStep">{{$t('preStep')}}</a-button>
| </a-form-item>
| </a-form>
| </div>
| </template>
|
| <script>
| export default {
| name: 'Step2',
| i18n: require('./i18n'),
| data () {
| return {
| loading: false
| }
| },
| methods: {
| nextStep () {
| let _this = this
| _this.loading = true
| setTimeout(function () {
| _this.$emit('nextStep')
| }, 1500)
| },
| prevStep () {
| this.$emit('prevStep')
| }
| }
| }
| </script>
|
| <style lang="less" scoped>
| .stepFormText {
| margin-bottom: 24px;
| :global {
| .ant-form-item-label,
| .ant-form-item-control {
| line-height: 22px;
| }
| }
| }
| </style>
|
|