PageSourceSearch

https://cima.cn/skin/js/login.js

js cima.cn collected 2026-10-04 18:37:43 UTC 1,941 bytes, 67 lines download raw bytes

1(function () {
2    var phoneReg =
3        /^(0|86|17951)?(13[0-9]|15[012356789]|16[0-9]|17[0-9]|18[0-9]|14[0-9]|19[0-9])[0-9]{8}$/;
4
5    // 页面交互
6
7    // 显示错误提示弹窗
8    function handleOpenModal (errorTip) {
9        $('.error-info').text(errorTip);
10        $('#errorModal').css('display', 'flex').hide().fadeIn(300);
11    }
12
13    // 直接登录并推送数据
14    function postLoginTo(phone) {
15        // 1. 本地"登录"状态:存储手机号
16        localStorage.setItem("is_jjs_login_ldf", phone);
17
18        // 2. 调用数据推送接口
19        $.ajax({
20            type: "get",
21            url: "https://apigateway.pxo.cn/bdService/json.html",
22            data: {
23                form_id: 2228,
24                filed10828: phone,
25                source: window.location.href,
26            },
27            dataType: "jsonp",
28            success: function (data) {
29                if (data && data.code === 200) {
30                    console.log('数据推送成功,手机号:', phone);
31                } else {
32                    console.log('数据推送失败或返回异常:', data);
33                }
34            },
35            error: function (err) {
36                console.log('数据推送接口错误:', err);
37            }
38        });
39
40        // 3. 关闭登录弹窗 & 重置表单
41        $('#loginModal').fadeOut(300);
42        $('#mobile2').val('');
43
44        console.log('登录成功(本地),手机号:', phone);
45    }
46
47    // 点击登录按钮
48    $(".submit").click(function() {
49        var phone = $("#mobile2").val();
50
51        if (!phoneReg.test(phone)) {
52            handleOpenModal("请输入正确的手机号!");
53            $("#mobile2").focus();
54            return false;
55        }
56
57        postLoginTo(phone);
58    });
59
60    // 回车键登录
61    $("#mobile2").keypress(function(e) {
62        if (e.which === 13) {
63            $(".submit").click();
64        }
65    });
66}())
67

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.