// ==UserScript== // @name 纪念币建设银行 // @namespace http://tampermonkey.net/ // @version 1.0 // @description 建设银行脚本 // @author yanzongzhen // @match *://jinianbi.ccb.com/tran/WCCMainPlatV5* // @grant none // @require https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js // @downloadURL https://update.greasyfork.icu/scripts/375707/%E7%BA%AA%E5%BF%B5%E5%B8%81%E5%BB%BA%E8%AE%BE%E9%93%B6%E8%A1%8C.user.js // @updateURL https://update.greasyfork.icu/scripts/375707/%E7%BA%AA%E5%BF%B5%E5%B8%81%E5%BB%BA%E8%AE%BE%E9%93%B6%E8%A1%8C.meta.js // ==/UserScript== (function() { 'use strict'; var $ = $ || window.$; var people = [{ "name": '人名1', "id": '21020312102031', "phone": '自己电话不超过5次' }, { "name": '人名2', "id": '21020312102031', "phone": '自己电话不超过5次' }, { "name": '人名3', "id": '21020312102031', "phone": '自己电话不超过5次' }, { "name": '人名4', "id": '21020312102031', "phone": '自己电话不超过5次' }, { "name": '人名5', "id": '21020312102031', "phone": '自己电话不超过5次' }]; var html = "
"; $('body').append(html); $('#people_info').find('li').click(function () { var index = $(this).index('#people_info li'); var p = people[index]; console.log(p); $('#USR_NM').val(p.name); $('#CRDT_NO').val(p.id); $('#MBLPH_NO').val(p.phone); }); $('#txtexchangedate').val('2019-01-25'); $('#time').onchange(function () { $('#txtexchangedate').val($('#time').val()); }); // Your code here... })();