神券日领券代码

打开神券日页面:神券日链接

一、直接在页面上领取,在浏览器的console中输入以下代码:

$('.categoryTicketModuleItemBox').each(function() {
 var div = $(this).find('div');
 var style = "position:absolute;top:50%;left:50%;width:100px;height:40px;display:block;text-align:center;line-height:40px;background:#FF5722;color:#fff;margin-top:-20px;margin-left:-50px;box-shadow:2px 2px 5px #ec5c5c;z-index: 111111;cursor: pointer;";
 var link = '<a style="' + style + '">领券</ a>';
 div.append(link);
 });
 $('.goodsTicketModuleItemBox').each(function() {
 var div = $(this).find('div');
 var style = "position:absolute;top:50%;left:50%;width:100px;height:40px;display:block;text-align:center;line-height:40px;background:#FF5722;color:#fff;margin-top:-20px;margin-left:-50px;box-shadow:2px 2px 5px #ec5c5c;z-index: 111111;cursor: pointer;";
 var link = '<a style="' + style + '">领券</ a>';
 div.append(link);
 });
 $('.financePlusTicketItemBox').each(function() {
 var div = $(this).find('div');
 var style = "position:absolute;top:50%;left:50%;width:100px;height:40px;display:block;text-align:center;line-height:40px;background:#FF5722;color:#fff;margin-top:-20px;margin-left:-50px;box-shadow:2px 2px 5px #ec5c5c;z-index: 111111;cursor: pointer;";
 var link = '<a style="' + style + '">领券</ a>';
 div.append(link);
 });
 $('.goodsTicketModuleZDLQItemBox').each(function() { 
 var  div = $(this).find('div'); 
 var  style = "position:absolute;top:50%;left:50%;width:100px;height:40px;display:block;text-align:center;line-height:40px;background:#FF5722;color:#fff;margin-top:-20px;margin-left:-50px;box-shadow:2px 2px 5px #ec5c5c;z-index: 111111;cursor: pointer;"; 
 var  link = '<a style="' + style + '">领券</ a>'; 
 div.append(link); 
 });

二、跳转到领取页面提取接口:

$('.categoryTicketModuleItemBox').each(function() {
 var div = $(this).find('div');
 var roleId = div.attr('data-ruleid');
 var key = div.attr('data-key');
 var style1 = "position:absolute;top:50%;left:50%;width:100px;height:40px;display:block;text-align:center;line-height:40px;background:#FF5722;color:#fff;margin-top:-20px;margin-left:-50px;box-shadow:2px 2px 5px #ec5c5c;z-index: 111111;cursor: pointer;";
 var style2 = "position:absolute;top:50%;left:50%;width:100px;height:40px;display:block;text-align:center;line-height:40px;background:#FF5722;color:#fff;margin-top:-20px;margin-left:-50px;box-shadow:2px 2px 5px #ec5c5c;z-index: 111111;cursor: pointer;";
 var href = 'https://coupon.m.jd.com/coupons/show.action?key=' + key + '&roleId=' + roleId;
 var link = '<a href="' + href + '" style="' + style1 + '" target="_blank">领券页面</ a>';
 $(this).append(link);
 });
 $('.goodsTicketModuleItemBox').each(function() {
 var div = $(this).find('div');
 var roleId = div.attr('data-ruleid');
 var key = div.attr('data-key');
 var style1 = "position:absolute;top:50%;left:50%;width:100px;height:40px;display:block;text-align:center;line-height:40px;background:#FF5722;color:#fff;margin-top:-20px;margin-left:-50px;box-shadow:2px 2px 5px #ec5c5c;z-index: 111111;cursor: pointer;";
 var style2 = "position:absolute;top:50%;left:50%;width:100px;height:40px;display:block;text-align:center;line-height:40px;background:#FF5722;color:#fff;margin-top:-20px;margin-left:-50px;box-shadow:2px 2px 5px #ec5c5c;z-index: 111111;cursor: pointer;";
 var href = 'https://coupon.m.jd.com/coupons/show.action?key=' + key + '&roleId=' + roleId;
 var link = '<a href="' + href + '" style="' + style1 + '" target="_blank">领券页面</ a>';
 $(this).append(link);
 });
 $('.financePlusTicketItemBox').each(function() {
 var div = $(this).find('div');
 var roleId = div.attr('data-ruleid');
 var key = div.attr('data-key');
 var style = "position:absolute;top:50%;left:50%;width:100px;height:40px;display:block;text-align:center;line-height:40px;background:#FF5722;color:#fff;margin-top:-20px;margin-left:-50px;box-shadow:2px 2px 5px #ec5c5c;z-index: 111111;cursor: pointer;";
 var href = 'https://coupon.m.jd.com/coupons/show.action?key=' + key + '&roleId=' + roleId;
 var link = '<a href="' + href + '" style="' + style + '" target="_blank">领券页面</ a>';
 $(this).append(link);
 });
 $('.goodsTicketModuleZDLQItemBox').each(function() {
 var div = $(this).find('div');
 var roleId = div.attr('data-ruleid');
 var key = div.attr('data-key');
 var style = "position:absolute;top:50%;left:50%;width:100px;height:40px;display:block;text-align:center;line-height:40px;background:#FF5722;color:#fff;margin-top:-20px;margin-left:-50px;box-shadow:2px 2px 5px #ec5c5c;z-index: 111111;cursor: pointer;";
 var href = 'https://coupon.m.jd.com/coupons/show.action?key=' + key + '&roleId=' + roleId;
 var link = '<a href="' + href + '" style="' + style + '" target="_blank">领券页面</ a>';
 $(this).append(link);
 });

请勿随意转载。

评论已关闭。