|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
|
|
|
|
<link rel="stylesheet" type="text/css" href="../../css/base.css?v=1.0.7" />
|
|
|
|
<title>发票开具</title>
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
background: #F7F7F7;
|
|
|
|
}
|
|
|
|
|
|
|
|
.border_main {
|
|
|
|
width: 94.7%;
|
|
|
|
height: 11rem;
|
|
|
|
font-size: 0.29rem;
|
|
|
|
text-align: center;
|
|
|
|
background: #FFFFFF;
|
|
|
|
border: 1px solid #D4D4D4;
|
|
|
|
margin: 2.2% auto 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.top_img {
|
|
|
|
width: 1.4rem;
|
|
|
|
height: 1.4rem;
|
|
|
|
margin-top: 1.63rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tip_name {
|
|
|
|
line-height: 0.41rem;
|
|
|
|
color: #4A4A4A;
|
|
|
|
letter-spacing: -1px;
|
|
|
|
margin-top: 0.39rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tip_name span {
|
|
|
|
color: #000000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sl {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.slTipe {
|
|
|
|
margin-top: 2.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.Tip {
|
|
|
|
font-size: 0.25rem;
|
|
|
|
color: #4A4A4A;
|
|
|
|
}
|
|
|
|
|
|
|
|
.EWMpng {
|
|
|
|
width: 2.58rem;
|
|
|
|
height: 2.58rem;
|
|
|
|
margin: 0.8rem auto 0.3rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.name {
|
|
|
|
margin-top: 0.5rem;
|
|
|
|
color: #4A4A4A;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gzh {
|
|
|
|
display: none;
|
|
|
|
font-size: 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.url-link {
|
|
|
|
margin-top: 0.5rem;
|
|
|
|
color: #007BFF;
|
|
|
|
text-decoration: underline;
|
|
|
|
display: block; /* 确保块级元素 */
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div class="border_main">
|
|
|
|
<div class="sl">
|
|
|
|
<img alt="" src="../../image/wxscaninvoice/success.png" class="top_img" />
|
|
|
|
<p class="tip_name">发票开具申请已提交<br>请关注<span><br>
|
|
|
|
个人邮箱或微信卡包或联系商家</span><br>了解更多发票状态!</p>
|
|
|
|
<p class="url-link" id="ewm-url-sl"></p>
|
|
|
|
</div>
|
|
|
|
<div class="gzh">
|
|
|
|
<img alt="" src="../../image/wxscaninvoice/success.png" class="top_img" />
|
|
|
|
<p class="tip_name">请关注个人邮箱或微信卡包或联系商家<br>
|
|
|
|
了解更多发票状态!</p>
|
|
|
|
<p class="url-link" id="ewm-url-gzh"></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
<script src="../../js/lib/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
<script src="../../js/lib/jweixin-1.1.0.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
<script src="../../js/common/base.js?v=1.0.7" type="text/javascript" charset="utf-8"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
const subscribe = window.localStorage.getItem("subscribe");
|
|
|
|
const ewm = window.localStorage.getItem("ewm");
|
|
|
|
const ewmUrl = window.sessionStorage.getItem("ewm-URL");
|
|
|
|
const prePath = '../../image/wxscaninvoice/';
|
|
|
|
const defaultLogoPath = prePath + 'myfp_16.png';
|
|
|
|
|
|
|
|
if (ewm === "" || ewm == null || ewm === undefined) {
|
|
|
|
$(".EWMpng").attr("src", defaultLogoPath);
|
|
|
|
$('.gzh').css("display", "block");
|
|
|
|
} else {
|
|
|
|
$('.sl').css("display", "block");
|
|
|
|
$(".EWMpng").attr("src", prePath + ewm);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (ewmUrl) {
|
|
|
|
console.log('URL:', ewmUrl); // 添加调试信息
|
|
|
|
if ($('.sl').is(':visible')) {
|
|
|
|
$('#ewm-url-sl').html(`<a href="${ewmUrl.replace(/"/g, '')}" target="_blank">跳转税局发票下载</a>`);
|
|
|
|
} else if ($('.gzh').is(':visible')) {
|
|
|
|
$('#ewm-url-gzh').html(`<a href="${ewmUrl.replace(/"/g, '')}" target="_blank">跳转税局发票下载</a>`);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
console.error('ewmUrl is not set or is empty');
|
|
|
|
}
|
|
|
|
|
|
|
|
// 确保点击链接时跳转到正确的 URL
|
|
|
|
$(document).on('click', '.url-link a', function(event) {
|
|
|
|
event.preventDefault();
|
|
|
|
if (ewmUrl) {
|
|
|
|
window.location.href = ewmUrl.replace(/"/g, '');
|
|
|
|
} else {
|
|
|
|
console.error('ewmUrl is not set or is empty');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</html>
|