ann0707
2018-08-16 c9bc8ec61cff4076132f6396d99d383a2cdf5a03
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<template>
    <div class="loan-info-box">
        <x-header slot="header"
                  style="width:100%;height:46px;background-color: #ec6758"
                  title="提交处理"
                  :left-options="{backText: ''}">
            <router-link to="/bnd/repayMent/loanDetails" tag="span" class="slotRight_l" slot="right">贷款查询</router-link>
        </x-header>
        <!--0-失败,1-成功,2-处理中,3-未提交-->
        <div v-if="result.resultCode===0">
            <div class="success_okandno">
                <div>
                    <i class="iconfont icon-roundclosefill Failred"></i>
                </div>
                <h2>贷款失败</h2>
            </div>
            <div class="bindingSuccee">
                <p>
                    您个人存在信用风险,暂时无法放款;如有疑问请联系客服:<span>{{customerHotline}}</span>
                </p>
            </div>
            <div style="height: 20px"></div>
            <box gap="0 15px">
                <x-button type="primary" link="/bnd/loan/quota">退出</x-button>
            </box>
            <div style="height: 20px"></div>
        </div>
        <div v-else-if="result.resultCode===1">
            <div class="success_okandno">
                <div>
                    <i class="iconfont icon-roundcheckfill-copy"></i>
                </div>
                <h2>贷款成功</h2>
            </div>
            <div class="bindingSuccee">
                <p>
                    您的贷款已成功,您可点击"贷款查询"查询您的贷款账单
                </p>
            </div>
            <div style="height: 20px"></div>
            <box gap="0 15px">
                <x-button type="primary" link="/bnd/repayMent/loanDetails">贷款查询</x-button>
            </box>
            <div style="height: 20px"></div>
        </div>
        <div v-else-if="result.resultCode===2">
            <div class="success_okandno">
                <div>
                    <i class="iconfont icon-iconfontdengdai"></i>
                </div>
                <h2>等待处理</h2>
            </div>
            <div class="bindingSuccee">
                <p>
                    您的贷款申请已提交,正在处理,预计2个小时内到账,请耐心等待
                </p>
            </div>
            <div style="height: 20px"></div>
            <box gap="0 15px">
                <x-button type="primary" @click.native="getResult">刷新</x-button>
            </box>
            <div style="height: 20px"></div>
        </div>
        <div v-else-if="result.resultCode===3">
            <div class="success_okandno">
                <div>
                    <i class="iconfont icon-roundclosefill Failred"></i>
                </div>
                <h2>贷款失败</h2>
            </div>
            <div class="bindingSuccee">
                <p>
                    很抱歉,系统处理出错,请重新申请贷款;如有疑问请联系客服:<span>{{customerHotline}}</span>
                </p>
            </div>
            <div style="height: 20px"></div>
            <box gap="0 15px">
                <x-button type="primary" link="/bnd/loan/quota">退出</x-button>
            </box>
            <div style="height: 20px"></div>
        </div>
    </div>
</template>
 
<script>
    import {XHeader, XButton, Box} from 'vux';
    import SysApi from '../../../api/api'
    import statusCodeManage from '../../../api/statusCodeManage'
 
    export default {
        name: 'subSuccess',
        components: {XHeader, XButton, Box},
        data() {
            return {
                result: {},
                customerHotline: ''
            }
        },
        methods: {
            //查询贷款结果
            getResult() {
                SysApi.result({
                    prodId: sessionStorage.prodId,
                    resultType: 5
                }).then(res => {
                    this.result = res.body
                }, err => {
                    statusCodeManage.showTipOfStatusCode(err)
                })
            },
        },
        activated() {
            this.getResult();
            this.customerHotline = JSON.parse((sessionStorage.loanInfo)).customerHotline
        }
    };
</script>
<style lang="less">
    @import "../../../style/mixin.less";
 
    .loan-info-box {
        background-color: @color-background-default;
        .vux-header {
            .color-linear-gradient(@color-primary-light, @color-primary, 90deg);
            .vux-header-left {
                .left-arrow:before {
                    border: solid 1px @color-white;
                    border-width: 2px 0 0 2px;
                }
            }
        }
        .success_okandno .iconfont {
            font-size: 6rem;
            color: #0092f1;
        }
    }
 
    .loan-info-box .weui-btn_primary {
        .color-linear-gradient(@color-primary-light, @color-primary, 90deg);
    }
 
    .loan-info-box .weui-btn_primary:not(.weui-btn_disabled):active {
        color: rgba(255, 255, 255, 0.6);
        background-color: rgb(241, 95, 79);;
    }
 
    .bindingSuccee {
        text-align: center;
        p {
            text-align: center;
            color: @color-text-third;
            font-size: @font-size-medium;
            width: 25rem;
            margin: 0 auto;
            span {
                color: @color-primary;
                display: inline-block;
 
            }
        }
    }
 
    .weui-msg__icon-area {
        margin-bottom: -1.2rem !important;
    }
 
    .success_okandno {
        width: 6.5rem;
        margin: 0 auto;
        padding: 3rem 0;
        div {
            text-align: center;
            height: 8rem;
        }
        img {
            width: 100%;
        }
        h2 {
            font-weight: normal;
            font-size: @font-size-primary;
            text-align: center;
        }
    }
 
    .loan-info-box .weui-wepay-flow, .loan-info-box .weui-wepay-flow-auto {
        padding: 0.83333rem 2.33333rem 2.5rem;
    }
 
    .slotRight_l {
        color: #fff;
        font-size: @font-size-medium;
        position: relative;
        top: -0.1rem;
    }
 
    .Failred {
        color: #ff4d53 !important;
    }
 
    .weui-btn:after {
        border: none !important;
    }
 
    .weui-btn {
        font-size: @font-size-primary !important;
    }
</style>