PageSourceSearch

https://dash.lightxi.com/themes/clientarea/QRuser/assets/js/app.js?v=0cce8edc24ad7a5dcfe98a5431c29ea1

js lightxi.com collected 2026-10-08 09:38:00 UTC 19,211 bytes, 308 lines download raw bytes

1!function (s) {
2    "use strict";
3    var e, t = localStorage.getItem("language"), n = "eng";
4    function l () {
5        document.webkitIsFullScreen || document.mozFullScreen || document.msFullscreenElement || (console.log("pressed"), s("body").removeClass("fullscreen-enable"))
6    }
7    s("#side-menu").metisMenu(),
8        s("#vertical-menu-btn").on("click", function (e) {
9            e.preventDefault(),
10                s("body").toggleClass("sidebar-enable"),
11                s("#fa-indent").toggleClass("fzglox"),
12                992 <= s(window).width() ? s("body").toggleClass("vertical-collpsed") : s("body").removeClass("vertical-collpsed")
13        }),
14        s("#sidebar-menu a").each(function () {
15            // var e = window.location.href.split(/[?#]/)[0];
16            var e = window.location.href.split(/[?#]/);
17            var e_href = this.href.split(/[?#]/);
18            var hidden_url = {
19                '/billing': ['/viewbilling'],
20                '/service': ['/servicedetail'],
21                '/supporttickets': ['/viewticket'],
22                //帮助中心
23                '/knowledgebase': ['/knowledgebaseview'],
24                '/news': ['/newsview'],
25                // 登录日志
26                '/systemlog': ['/loginlog']
27            };
28            var is_hidden_menu = false;
29            for (var i in hidden_url) {
30                if (e_href[0] == window.location.protocol + '//' + window.location.hostname + i) {
31                    if (document.referrer == this.href && hidden_url[i].includes(window.location.pathname)) {
32                        // console.log('e_href[0]:' + e_href[0] + ';e_href[1]:' + e_href[1] + ';e[0]:' + e[0] + ';e[1]:' + e[1] + ';哈哈哈哈哈');
33                        is_hidden_menu = true;
34                        break;
35                    }
36                }
37            }
38            if (window.location.href.includes("keywords") || window.location.href.includes("domain_status")) {
39                var is_searchMenu = window.location.href.includes(this.href + "&");
40            } else if (window.location.href == this.href) {
41                var is_searchMenu = true;
42            } else {
43                var is_searchMenu = false;
44            }
45            // console.log('e_href[0]:' + e_href[0] + ';e_href[1]:' + e_href[1] + ';e[0]:' + e[0] + ';e[1]:' + e[1] + ';');
46            // var is_searchMenu = window.location.href.includes(this.href);
47            if ((e_href[0] == e[0] && !e_href[1]) || (e_href[0] == e[0] && e_href[1] == e[1]) || is_hidden_menu || is_searchMenu) {
48                (s(this).addClass("active"), s(this).parent().siblings().find('a').removeClass('active'), s(this).parent().addClass("mm-active").siblings().removeClass('mm-active'), s(this).parent().parent().addClass("mm-show"), s(this).parent().parent().prev().addClass("mm-active"), s(this).parent().parent().parent().addClass("mm-active"), s(this).parent().parent().parent().parent().addClass("mm-show"), s(this).parent().parent().parent().parent().parent().addClass("mm-active"))
49                return false;
50            }
51        }),
52
53        s(document).ready(function () {
54            var e;
55            0 < s("#sidebar-menu").length && 0 < s("#sidebar-menu .mm-active .active").length && (300 < (e = s("#sidebar-menu .mm-active .active").offset().top) && (e -= 300, s(".simplebar-content-wrapper").animate({
56                scrollTop: e
57            },
58                "slow")))
59        }),
60        s(".navbar-nav a").each(function () {
61            var e = window.location.href.split(/[?#]/)[0];
62            this.href == e && (s(this).addClass("active"), s(this).parent().addClass("active"), s(this).parent().parent().addClass("active"), s(this).parent().parent().parent().addClass("active"), s(this).parent().parent().parent().parent().addClass("active"), s(this).parent().parent().parent().parent().parent().addClass("active"))
63        }),
64        s('[data-toggle="fullscreen"]').on("click",
65            function (e) {
66                e.preventDefault(),
67                    s("body").toggleClass("fullscreen-enable"),
68                    document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement ? document.cancelFullScreen ? document.cancelFullScreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.webkitCancelFullScreen && document.webkitCancelFullScreen() : document.documentElement.requestFullscreen ? document.documentElement.requestFullscreen() : document.documentElement.mozRequestFullScreen ? document.documentElement.mozRequestFullScreen() : document.documentElement.webkitRequestFullscreen && document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)
69            }),
70        document.addEventListener("fullscreenchange", l),
71        document.addEventListener("webkitfullscreenchange", l),
72        document.addEventListener("mozfullscreenchange", l),
73        s(".right-bar-toggle").on("click", function (e) {
74            s("body").toggleClass("right-bar-enabled")
75        }),
76        s(document).on("click", "body",
77            function (e) {
78                0 < s(e.target).closest(".right-bar-toggle, .right-bar").length || s("body").removeClass("right-bar-enabled")
79            }),
80        s(".dropdown-menu a.dropdown-toggle").on("click",
81            function (e) {
82                return s(this).next().hasClass("show") || s(this).parents(".dropdown-menu").first().find(".show").removeClass("show"),
83                    s(this).next(".dropdown-menu").toggleClass("show"),
84                    !1
85            }),
86        s(function () {
87            s('[data-toggle="tooltip"]').tooltip()
88        }),
89        s(function () {
90            s('[data-toggle="popover"]').popover()
91        }),
92        s(".language").on("click",
93            function (e) {
94                a(s(this).attr("data-lang"))
95            }),
96        s(window).on("load",
97            function () {
98                s("#status").fadeOut(),
99                    s("#preloader").delay(350).fadeOut("slow")
100            }),
101        Waves.init()
102}(jQuery);
103
104(function () {
105    if (window.location.host == "market.idcsmart.com") {
106        var webUrl = window.location.origin;
107        $.ajax({
108            type: 'GET',
109            url: 'developer/developer',
110            contentType: 'application/json;charset=UTF-8',
111            dataType: 'json',
112            success: function (res, textStatus, jqXHR) {
113                if (res.status == 200) {
114                    console.log(res)
115                    var status = res.data.developer.status || 'null'
116                    var devType = res.data.developer.type
117                    console.log('status', status)
118                    console.log('devType', devType)
119                    //啥也不是先入驻
120                    if (status === 'null' || status === 'Pending' || status === 'Cancelled' || status === 'Suspended') {
121                        // 删除入驻之外的菜单
122                        $('li').each(function () {
123                            if ($(this).children("a").attr('href') === webUrl + '/developerInfo' || $(this).children("a").attr('href') === webUrl + '/appManageList' || $(this).children("a").attr('href') === webUrl + '/serverManageList' || $(this).children("a").attr('href') === webUrl + '/dataCenetr' || $(this).children("a").attr('href') === webUrl + '/ActivityList' || $(this).children("a").attr('href') === webUrl + '/taskManageList' || $(this).children("a").attr('href') === webUrl + '/development/#/developerInfo' || $(this).children("a").attr('href') === webUrl + '/development/#/appManageList' || $(this).children("a").attr('href') === webUrl + '/development/#/serverManageList' || $(this).children("a").attr('href') === webUrl + '/development/#/dataCenetr' || $(this).children("a").attr('href') === webUrl + '/development/#/ActivityList' || $(this).children("a").attr('href') === webUrl + '/development/#/taskManageList'
124                                || $(this).children("a").attr('href') === 'developerInfo' || $(this).children("a").attr('href') === 'appManageList' || $(this).children("a").attr('href') === 'serverManageList' || $(this).children("a").attr('href') === 'dataCenetr' || $(this).children("a").attr('href') === 'ActivityList' || $(this).children("a").attr('href') === 'taskManageList' || $(this).children("a").attr('href') === 'development/#/developerInfo' || $(this).children("a").attr('href') === 'development/#/appManageList' || $(this).children("a").attr('href') === 'development/#/serverManageList' || $(this).children("a").attr('href') === 'development/#/dataCenetr' || $(this).children("a").attr('href') === 'development/#/ActivityList' || $(this).children("a").attr('href') === 'development/#/taskManageList'
125                            ) {
126                                $(this).remove()
127                            }
128                        })
129                    } else {
130                        // 开发者
131                        $('li').each(function () {
132                            if ((status === 'Active' || status === 'Review' || status === 'Failed') && devType == 1) {
133                                if ($(this).children("a").attr('href') === webUrl + '/developerSettleIn' || $(this).children("a").attr('href') === webUrl + '/serverManageList' || $(this).children("a").attr('href') === webUrl + '/development/#/developerSettleIn' || $(this).children("a").attr('href') === webUrl + '/development/#/serverManageList'
134                                    || $(this).children("a").attr('href') === 'developerSettleIn' || $(this).children("a").attr('href') === 'serverManageList' || $(this).children("a").attr('href') === 'development/#/developerSettleIn' || $(this).children("a").attr('href') === 'development/#/serverManageList'
135                                ) {
136                                    $(this).remove()
137                                }
138                            }
139                        })
140                        // 服务商
141                        $('li').each(function () {
142                            if ((status === 'Active' || status === 'Review' || status === 'Failed') && devType == 2) {
143                                if ($(this).children("a").attr('href') === webUrl + '/developerSettleIn' || $(this).children("a").attr('href') === webUrl + '/appManageList' || $(this).children("a").attr('href') === webUrl + '/taskManageList' || $(this).children("a").attr('href') === webUrl + '/development/#/developerSettleIn' || $(this).children("a").attr('href') === webUrl + '/development/#/appManageList' || $(this).children("a").attr('href') === webUrl + '/development/#/taskManageList'
144                                    || $(this).children("a").attr('href') === 'developerSettleIn' || $(this).children("a").attr('href') === 'appManageList' || $(this).children("a").attr('href') === 'taskManageList' || $(this).children("a").attr('href') === 'development/#/developerSettleIn' || $(this).children("a").attr('href') === 'development/#/appManageList' || $(this).children("a").attr('href') === 'development/#/taskManageList'
145                                ) {
146                                    $(this).remove()
147                                }
148                            }
149                        })
150                        // 开发者和服务商
151                        $('li').each(function () {
152                            if ((status === 'Active' || status === 'Review' || status === 'Failed') && devType == 3) {
153                                //http://w5.test.idcsmart.com/development/#/developerSettleIn
154                                if ($(this).children("a").attr('href') === webUrl + '/developerSettleIn' || $(this).children("a").attr('href') === webUrl + '/development/#/developerSettleIn'
155                                    || $(this).children("a").attr('href') === 'developerSettleIn' || $(this).children("a").attr('href') === 'development/#/developerSettleIn'
156                                ) {
157                                    $(this).remove()
158                                }
159                            }
160                        })
161                    }
162                }
163            }
164        });
165    }
166
167    var webUrl = window.location.origin;
168	if (window.location.host == "my.doopcloud.com" || window.location.host=="my.doopres.com") {
169    // 资源池
170    $.ajax({
171        type: 'GET',
172        url: 'resource/resource',
173        contentType: 'application/json;charset=UTF-8',
174        dataType: 'json',
175        success: function (res, textStatus, jqXHR) {
176            if (res.status == 200) {
177                var userType = "", supplierStatus = "", agentStatus = "";
178                if (res.data.agent.id) {
179                    userType = "agent"
180                    agentStatus = res.data.agent.status
181                    sessionStorage.setItem('userType', 'agent')
182                    sessionStorage.setItem('status', res.data.agent.status)
183                }
184                if (res.data.supplier.id) {
185                    userType = "supplier"
186                    supplierStatus = res.data.supplier.status
187                    sessionStorage.setItem('userType', 'supplier')
188                    sessionStorage.setItem('status', res.data.supplier.status)
189                }
190                if (res.data.agent.id && res.data.supplier.id) {
191                    userType = "supplier_agent"
192                    agentStatus = res.data.agent.status
193                    supplierStatus = res.data.supplier.status
194                    sessionStorage.setItem('userType', 'supplier_agent')
195                    sessionStorage.setItem('agentStatus', res.data.agent.status)
196                    sessionStorage.setItem('status', res.data.supplier.status)
197                }
198                if (!res.data.agent.id && !res.data.supplier.id) {
199                    userType = ''
200                    supplierStatus = 'register'
201                    sessionStorage.setItem('userType', '')
202                    sessionStorage.setItem('status', 'register')
203                }
204
205                console.log(userType, supplierStatus, agentStatus)
206
207                // 未入驻-删除其他菜单保留入驻菜单
208                if (supplierStatus == 'register') {
209                    $('li').each(function () {
210                        if ($(this).children("a").attr('href') === 'res/#/agentManage' || $(this).children("a").attr('href') === 'res/#/supplierManage') {
211                            $(this).remove()
212                        }
213                    })
214                }
215                // 代理商-删除供应商菜单
216                if (userType == 'agent') {
217                    $('li').each(function () {
218                        if ($(this).children("a").attr('href') === 'res/#/supplierManage') {
219                            $(this).remove()
220                        }
221                    })
222                    if (agentStatus != 'Active') {
223                        $('li').each(function () {
224                            if ($(this).children("a").attr('href') === 'res/#/agentManage') {
225                                $(this).remove()
226                            }
227                        })
228                    }
229                }
230                // 供应商-删除代理商菜单
231                if (userType == 'supplier') {
232                    $('li').each(function () {
233                        if ($(this).children("a").attr('href') === 'res/#/agentManage') {
234                            $(this).remove()
235                        }
236                    })
237                    if (supplierStatus != 'Active') {
238                        $('li').each(function () {
239                            if ($(this).children("a").attr('href') === 'res/#/supplierManage') {
240                                $(this).remove()
241                            }
242                        })
243                    }
244                }
245                // 供应商-代理商
246                if (userType == 'supplier_agent') {
247                    if (supplierStatus == 'Active' && agentStatus == 'Active') {
248                        $('li').each(function () {
249                            if ($(this).children("a").attr('href') === 'res/#/enterpriseSettlement') {
250                                $(this).remove()
251                            }
252                        })
253                    }
254                    if (supplierStatus == 'Active' && (agentStatus == 'Pending' || agentStatus == 'Wait' || agentStatus == 'Cancelled')) {
255                        $('li').each(function () {
256                            if ($(this).children("a").attr('href') === 'res/#/agentManage') {
257                                $(this).remove()
258                            }
259                        })
260                    }
261                    if ((supplierStatus == 'Pending' || supplierStatus == 'Unpaid' || supplierStatus == 'Wait' || supplierStatus == 'Cancelled') && agentStatus == 'Active') {
262                        $('li').each(function () {
263                            if ($(this).children("a").attr('href') === 'res/#/supplierManage') {
264                                $(this).remove()
265                            }
266                        })
267                    }
268                    if (supplierStatus == 'Active' && agentStatus == 'Suspended') {
269                        $('li').each(function () {
270                            if ($(this).children("a").attr('href') === 'res/#/enterpriseSettlement') {
271                                $(this).remove()
272                            }
273                        })
274                    }
275                    if (supplierStatus == 'Active' && agentStatus == 'Wait') {
276                        $('li').each(function () {
277                            if ($(this).children("a").attr('href') === 'res/#/agentManage') {
278                                $(this).remove()
279                            }
280                        })
281                    }
282                    if (supplierStatus == 'Suspended' && agentStatus == 'Active') {
283                        $('li').each(function () {
284                            if ($(this).children("a").attr('href') === 'res/#/enterpriseSettlement') {
285                                $(this).remove()
286                            }
287                        })
288                    }
289                    if (supplierStatus == 'Suspended' && agentStatus == 'Suspended') {
290                        $('li').each(function () {
291                            if ($(this).children("a").attr('href') === 'res/#/enterpriseSettlement') {
292                                $(this).remove()
293                            }
294                        })
295                    }
296                    if ((supplierStatus == 'Cancelled' || supplierStatus == 'Unpaid' || supplierStatus == 'Wait') && agentStatus == 'Cancelled') {
297                        $('li').each(function () {
298                            if ($(this).children("a").attr('href') === 'res/#/agentManage' || $(this).children("a").attr('href') === 'res/#/supplierManage') {
299                                $(this).remove()
300                            }
301                        })
302                    }
303                }
304            }
305        }
306    });
307	}
308})()

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.