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
<template>
    <div class="raindrops">
        <x-header :left-options="{backText: '', preventGoBack: false}">信用等级
        </x-header>
        <div class="bgbox">
            <img src="../../assets/img/bule.png" alt="">
        </div>
        <div class="textBox">
            <div class="assd">
                <img src="../../assets/img/pope.png" alt="">
            </div>
            <p class="level">您当前信用等级为:{{ level }}</p>
            <p class='content'>您点击【申请】即视为您同意将您的个人信息及贷款申请信息传递、披露给贷款人,并同意将您引导至贷款人平台并自动注册为该平台用户</p>
            <FButton @on-click-button="handelClick" style="width: 100%;">我知道了</FButton>
        </div>
    </div>
</template>
<script>
    import {XHeader} from 'vux';
    import FButton from '../../components/common/FButton'
    import api from '../../api/api';
    import statusCodeManage from '../../api/statusCodeManage';
 
    export default {
        components: {
            XHeader,
            FButton
        },
        data() {
            return {
                level: '',
            }
        },
        methods: {
            handelClick() {
                let token = this.$route.query.token;
                api.prodUrl({token}).then(
                    res => {
                        let url = decodeURIComponent(res.body);
                        window.location.href = url;
                    },
                    err => {
                        statusCodeManage.showTipOfStatusCode(err, this);
                    }
                )
            }
        },
        activated() {
            let lv = this.$route.query.credit;
            let result = '';
            switch (lv) {
                case '0':
                    result = '低级';
                    break;
                case '1':
                    result = '中级';
                    break;
                case '2':
                    result = '高级';
                    break;
                default:
                    break;
            }
            this.level = result;
        }
    }
</script>
<style lang="less">
    @import '../../style/mixin';
 
    .raindrops {
        background: linear-gradient(to left, #0092f1, #18bfff);
        .bgbox {
            width: 100%;
            height: 100%;
            position: relative;
        }
 
        .bgbox > img {
            width: 100%;
            height: 100%;
        }
 
        .textBox {
            width: 94%;
            height: 48%;
            background-color: #ffffff;
            border-radius: 7.5px;
            position: absolute;
            top: 41%;
            left: 50%;
            margin-left: -47%;
            .level {
                font-size: 18px;
                color: #0092f1;
                text-align: center;
                padding: 3rem 0 2rem;
            }
            .content {
                font-size: 14px;
                color: #666666;
                padding: 0 1rem 0rem;
            }
        }
 
        .assd {
            width: 22%;
            height: 27%;
            position: absolute;
            top: -18%;
            left: 5px;
        }
 
        .assd > img {
            width: 100%;
            height: 100%;
        }
    }
 
    @media only screen and (device-width: 375px) and (device-height: 812px) and   (-webkit-device-pixel-ratio: 3) {
        .textBox {
            top: 35%;
        }
    }
</style>