admin
2022-01-20 d8ef9a783b9e0b2a495f02fdf3daaf27ef49e99d
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
<!DOCTYPE html>
<html>
 
    <head>
        <meta charset="utf-8" />
        <title>账户注销</title>
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
        <link rel="stylesheet" type="text/css" href="./css/sytleaccount.css" />
        <script>
            window.onresize = function() {
            document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px';
        };
        window.onresize();
    </script>
        <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
        <script src="../js/app.js"></script>
        <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
        <style type="text/css">
            [v-cloak] {
                display: none !important;
            }
        </style>
    </head>
 
    <body>
        <div id="root" v-cloak>
            <div class="div_hedaer_bg">
                <div class="div_hedaer_gary_bg"></div>
                <div class="div_hedaer_white_bg"></div>
                <img src="img/icon_logo.png">
                <div class="hedaer_title">你正在注销账户!</div>
            </div>
            <div class="div_tips_bg">
                <div class="tips_title">账户注销</div>
                <div class="tips_contetn">
                    1.您的账户无法登录与使用<br> 2.您的账户信息将永久删除且无法恢复
                    <br> 3.您授权的微信账户将会自动解绑
                    <br> 4.您账户所关联的订单将无法查询与找回
                    <br> 5.您的账户相关绑定的手机号、微信号等;将无法再次用于注册账户
                    <br>
                </div>
                <div style="height: 0.36rem;"></div>
            </div>
 
            <div class="div_register">
                <img :src="imgLogo" @click="readDelegate">
                <div class="register_title">
                    我已阅读并同意<a href="javascript:void()" style="text-decoration: none;color: #0E96FF; " @click="register">《账户注销须知》</a>
                </div>
            </div>
 
            <div class="div_sure" @click="zxsure">同意须知,下一步</div>
            <div class="div_pl" style="height: 0.3rem;">
            </div>
    </body>
 
    <script type="text/javascript">
        var host = "http://api.location.izzql.com:8090";
        var jumpUrl = null;
 
        $(function() {
            var app = new Vue({
                el: "#root",
                data: {
                    select: true,
                    user: null,
                    imgLogo: 'img/icon_select.png'
                },
                methods: {
                    register: function() {
                        window.location.href = 'zxAgreement.html';
                        // yesApp.jumpWeb(jumpUrl, null);
                    },
                    zxsure: function() {
                        ksbridge.call("getUid", function(res) {
 
                            if (res == null || res == "") {
                                ksbridge.call("toast", {
                                    msg: "尚未登录"
                                });
                                return;
                            }
 
                            if (app.select == true) {
                                window.location.href = "phoneNumber.html";
                            } else {
                                ksbridge.call("toast", {
                                    msg: "请先同意账户注销协议"
                                });
                            }
 
 
                        });
 
 
 
                    },
                    readDelegate: function() {
                        if (app.select == true) {
                            app.imgLogo = 'img/icon_normol.png';
                            app.select = false;
 
                        } else {
                            app.imgLogo = 'img/icon_select.png';
                            app.select = true;
                        }
                    },
                    fetchProtocol: function() {
                        ksbridge.call("getUid", function(res) {
 
                            if (res == null || res == "") {
                                ksbridge.call("toast", {
                                    msg: "尚未登录"
                                });
                                return;
                            }
                            var params = {
                                uid: res
                            };
 
                            ksbridge.call("getRequestBaseParams", params, function(res) {
                                params = JSON.parse(res);
                                $.ajax({
                                    type: "POST",
                                    data: params,
                                    url: host + "/api/v1/user/getUserInfo",
                                    dataType: "json",
                                    async: false,
                                    success: function(result) {
                                        if (result.code == 0) {
                                            jumpUrl = result.data.link;
                                            app.user = result.data;
 
                                        } else {
 
                                        }
                                    },
                                    error: function(XMLHttpRequest, textStatus, errorThrown) {
                                        if (textStatus === 'timeout') {
                                            setTimeout(function() {}, 2000);
                                        }
                                    }
                                });
 
 
                            });
 
 
                        });
                        var uid = 5; //yesApp.getUid();
                        var params = null
                        params = {
                            uid: uid
                        }; //yesApp.getRequestBaseParams(params);
 
                    }
 
                }
            });
            app.fetchProtocol();
        });
    </script>
 
</html>