|
|
|
@ -66,23 +66,31 @@ |
|
|
|
|
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="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> |
|
|
|
|
</div> |
|
|
|
|
</body> |
|
|
|
|
|
|
|
|
|
<script src="../../js/lib/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script> |
|
|
|
@ -91,9 +99,10 @@ |
|
|
|
|
<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"); |
|
|
|
@ -101,6 +110,27 @@ |
|
|
|
|
$('.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> |
|
|
|
|