<?xml version="1.0" encoding="utf-8"?>
<root><![CDATA[<div class="card-header dragobj">长按分享图片<button href="javascript:;" type="button" class="btn-close float-end" onclick="hideWindow('');" ></div>
<div id="capture" class="card-body p-0 position-relative bg-success text-white">
<div class="ratio ratio-21x9"><img src="/hlapp/scratchcards/static/image/common/gg_cover_300.png" class="card-img-top bg-danger"></div>
<div class="bg-info text-white p-2">

<div class="d-flex justify-content-between"><img src="https://www.2656.fun/uc_server/avatar.php?uid=281&size=middle" class="rounded m-2" width="40" height="40">
<img src="https://www.2656.fun/uc_server/avatar.php?uid=3&size=middle" class="rounded m-2" width="40" height="40">
<img src="https://www.2656.fun/uc_server/avatar.php?uid=285&size=middle" class="rounded m-2" width="40" height="40">
<img src="https://www.2656.fun/uc_server/avatar.php?uid=327&size=middle" class="rounded m-2" width="40" height="40">
<img src="https://www.2656.fun/uc_server/avatar.php?uid=292&size=middle" class="rounded m-2" width="40" height="40">
  	
</div>
<h2>恭喜！以上会员近期获得实物奖励</h2>
</div>
<div class="alert alert-info rounded-0">
<span>截至于2026-12-02宜倍美好运来已持续<b class="text-danger mx-1">2379</b>天</span>
</div>	
<div id="qrcode_share" style="width: 116px; height: 116px; margin: 8px; border: 8px solid rgb(255, 255, 255);"></div>
<div class="position-absolute" style="bottom: 12px;left: 135px;">
<p class="mb-0">本活动已累计送出积分奖励：</p>
<b class="text-danger fs-4 me-1">60081</b>乐豆<p class="mb-0">本活动已累计开出实物奖励：</p>
<b class="text-danger fs-4 me-1">181</b>件
</div>

</div>
<script>
function html2share(){
var element = document.querySelector("#capture");
var Yoffset = window.pageYoffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
html2canvas(element,{
//useCORS: true,
//width: element.clientWidth,//一下步骤完美解决截图区超出窗口范围空白
//height: element.clientHeight,
//windowWidth: document.body.scrollWidth,
//windowHeight: document.body.scrollHeight,
//x: element.getBoundingClientRect().x,//x: ele.getBoundingClientRect().x + window.scrollX;
//y: Yoffset+element.getBoundingClientRect().y,//y: ele.getBoundingClientRect().y + window.scrollY;
imageTimeout: 30000,
}).then(function(canvas) {
var imgUri = canvas.toDataURL("image/png"); // 获取生成的图片的url
$('#capture').html("<img src='" + imgUri + "' class='img-fluid'>");
//window.location.href= imgUri; // 下载图片
//saveFile(imgUri.replace("image/jpeg", "image/octet-stream"),"倍丝美微信推广公众号.png"); 	// 下载图片2		
});
}
var random = 201103181;
$(function() {
window.qrcode(document.querySelector("#qrcode_share"), {render: "canvas", text: 'https://www.2656.fun//scratchcards',width: 100,height: 100,src: '/favicon.ico',imagedown: html2share});

});
</script>]]></root>