zhaoxiaoqiang
2021-07-28 9e6e98a8c6541354619f15e81009082db8d3ad14
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
<!--
 * @Date: 2019-09-02 09:01:22
 * @LastEditors: 小明丶
 * @LastEditTime: 2019-09-04 10:50:04
 * @Description: 
 -->
 
<template>
    <div class="gjzj-result-page">
        <x-header :title="isHeyd ? '开通智享花' : '开通购机直降'" :left-options="{backText:'',preventGoBack:true}"
                  @on-click-back="pageGoBack"></x-header>
        <div class="status-icon">
            <i v-if="openStatus === 1"
               class="iconfont scene_Staging-shenhezhong1"></i>
            <i v-if="openStatus === 2"
               class="iconfont scene_Staging-danxuan"></i>
            <i v-if="openStatus === 3"
               class="iconfont scene_Staging-shibai1"></i>
        </div>
        <div class="tips">
            <p v-if="openStatus === 1">您的资料已提交成功,请耐心等待审核。</p>
            <p v-if="openStatus === 2">您已通过审核。</p>
            <p v-if="openStatus === 3">产品被停用,请联系管理员</p>
        </div>
        <f-button @on-click="handleBack">{{ buttonText }}</f-button>
    </div>
</template>
 
<script>
    export default {
        name: 'add-account',
        data() {
            return {
                // 0-待开通,1-开通中,2-已开通,3-开通失败
                openStatus: 0, // 开通状态
                buttonText: '返回', // 底部按钮文字
            };
        },
        computed:{
            isHeyd(){
                let icon = this.$route.query.icon;
                if(icon ==='scene_Staging-zxh'){
                    return true
                }else{
                    return false
                }
            }
        },
        methods: {
            pageGoBack(){
                this.$router.push({
                    path: '/main/productManagement'
                });
            },
            handleBack () {
                // 如果是在开通中的话,那么底部有重新提交按钮
                // 点击重新提交,那么用户可以重新填写资料
                if (this.openStatus === 1) {
                    this.$router.push({
                        path: `/gjzj/open?icon=${this.$route.query.icon}`
                    });
                } else {
                    this.$router.push({
                        path: '/main/productManagement'
                    });
                }
 
            },
        },
        created() {
            this.openStatus = Number(this.$route.query.openStatus);
            this.buttonText = this.openStatus === 1 ? '重新提交' : '返回';
        }
    };
</script>
 
<style lang="less" scoped>
    .gjzj-result-page {
        height: 100%;
        padding-top: 54px;
        background-color: #f1f1f1;
        .status-icon {
            padding-top: 20px;
            text-align: center;
        }
        .iconfont {
            font-size: 64px;
            color: #BFA073;
        }
        .scene_Staging-shibai1 {
            color: #F76260;
        }
        .tips {
            color: #999;
            font-size: 14px;
            line-height: 1.6;
            text-align: center;
        }
    }
</style>