标签 纪念币预约 下的文章

// ==UserScript==
// @name         工商银行纪念币预约自动填表
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  自动填充工商银行纪念币预约表单(含地区选择)
// @match        *://*.icbc.com.cn/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';


    const CONFIG = {
        custName: '',           // 客户姓名
        paperNum: '',      // 证件号码
        mobileno: '',          // 手机号码
        exchangeQuanlity: '20',        // 预约数量
        province: '天津市',            // 省份
        city: '天津市',                // 城市
        district: '静海区',            // 区县
        branch: '',   // 网点
        exchangeTime: '2026-01-20'    // 兑换时间
    };
    // ================================================

    function fillInput(placeholder, value) {
        const inputs = document.querySelectorAll('input.el-input__inner');
        for (const input of inputs) {
            if ((input.placeholder || '').includes(placeholder)) {
                input.value = value;
                input.dispatchEvent(new Event('input', { bubbles: true }));
                return true;
            }
        }
        return false;
    }

    async function selectDropdown(placeholder, optionText) {
        const inputs = document.querySelectorAll('input.el-input__inner[readonly]');
        for (const input of inputs) {
            if ((input.placeholder || '').includes(placeholder)) {
                input.click();
                await new Promise(r => setTimeout(r, 1));
                const items = document.querySelectorAll('.el-select-dropdown__item:not(.is-disabled)');
                for (const item of items) {
                    if (item.textContent.includes(optionText)) {
                        item.click();
                        await new Promise(r => setTimeout(r, 1));
                        return true;
                    }
                }
            }
        }
        return false;
    }

    async function fillForm() {
        // 填充文本输入框
        fillInput('客户姓名', CONFIG.custName);
        fillInput('证件号码', CONFIG.paperNum);
        fillInput('手机号码', CONFIG.mobileno);
        fillInput('预约数量', CONFIG.exchangeQuanlity);

        // 填充下拉选择框
        await selectDropdown('省份', CONFIG.province);
        await selectDropdown('城市', CONFIG.city);
        await selectDropdown('区县', CONFIG.district);
        await selectDropdown('网点', CONFIG.branch);
        await selectDropdown('兑换时间', CONFIG.exchangeTime);

        console.log('表单已填充');
    }

    function addButton() {
        const btn = document.createElement('button');
        btn.textContent = '手动填充';
        btn.style.cssText = 'position:fixed;top:10px;right:10px;z-index:9999;padding:10px 20px;background:#409EFF;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:14px;';
        btn.onclick = fillForm;
        document.body.appendChild(btn);
    }

    window.addEventListener('load', () => {
        addButton();
        setTimeout(fillForm, 1500);
    });
})();

📌 转载信息
原作者:
sam5440
转载时间:
2026/1/14 10:47:28

这个事儿我是 9 点半才知道的(
首先我选择了工商银行,然后进入到了预约界面:

像广大佬友一样,我等到了 10 点,结果一直卡死在加载,再过几分钟刷新好了,币也没了
但是我并没有灰心,转而去研究纪念币的链接构造:
在我点击兑换纪念币的一瞬间,先是跳转到了这个网页:https://jnb.icbc.com.cn/ICBCCOINWEBPC/?a=202611322#/1/null/pc?curtype=47 ,然后又跳转到了一个无规律可循的网页。
我试探性地把末尾的 47 改成了 48,结果发现:网页提示 22:30 才开始,真的是纪念钞。
于是我直接把这个链接放到地址栏,等到整点,别人还在走第一步中转,我已经到了第二步,直接发动母胎单身手速,光速输入信息和验证码,完美抢到


📌 转载信息
原作者:
haliang0409
转载时间:
2026/1/14 10:44:28

25 年写的中行预约的填充信息的脚本,26 年应该还能用,可惜湖北今年不是在中行约了,发出来给大家参考,自行修改关键信息,主要是一键填充信息,预约还是要自己提交的,我记得预约界面还有短信验证码和图片验证码

中行的纪念币预约地址: 中国银行纪念币销售

脚本里还有填充预约查询的,可以试试看。记得修改脚本里要填写的内容

javascript: (function() {
	var t = 0,
	e = 0;
	try {
		document.getElementById("txt_name_1956714") && (document.getElementById("txt_name_1956714").value = "姓名") ? t++:e++
	} catch(t) {
		e++
	}
	try {
		document.getElementById("txt_mobile_1956715") && (document.getElementById("txt_mobile_1956715").value = "手机号") ? t++:e++
	} catch(t) {
		e++
	}
	try {
		document.getElementById("txt_phonenumber_1956668") && (document.getElementById("txt_phonenumber_1956668").value = "手机号") ? t++:e++
	} catch(t) {
		e++
	}
	try {
		document.getElementById("txt_identitynumber_1956717") && (document.getElementById("txt_identitynumber_1956717").value = "身份证号") ? t++:e++
	} catch(t) {
		e++
	}
	try {
		document.getElementById("txt_identitynumber_1956669") && (document.getElementById("txt_identitynumber_1956669").value = "身份证号") ? t++:e++
	} catch(t) {
		e++
	}
	try {
		document.getElementById("date-picker") && (document.getElementById("date-picker").value = "预约的日期如2025/05/10") ? t++:e++
	} catch(t) {
		e++
	}
	try {
		document.getElementById("sel_93844_1956719") && (document.getElementById("sel_93844_1956719").value = "数量") ? t++:e++
	} catch(t) {
		e++
	}
	console.log("完成!成功:" + t + "个,失败:" + e + "个")
})();

📌 转载信息
原作者:
nssiwi
转载时间:
2026/1/12 11:06:58