You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
2.9 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="__CSS__/weui.mim.css">
<link rel="stylesheet" href="__CSS__/sdkptbpay.css">
<script src="__JS__/resize.js" type=""></script>
<title>礼包详情</title>
</head>
<body class="gifbag-box">
<!-- <div class="ptbnav" style="background:url('__IMG__/navbg.png') no-repeat bottom center/100% 100%;">
<img src="./img/back.png">
<p>礼包详情</p>
<div></div>
</div> -->
<div class="ptbboxpad">
<div class="gifbox">
<div class="weui-cell gifcopy">
<div class="weui-cell__bd">
<p>{$content.giftbag_name}</p>
<p>剩余{$content.novice_num}个</p>
<div class="gifcopybox">
<!--激活码样式-->
<div>激活码:{$novice}</div>
<div class="copybtn" onclick="" data-clipboard-text="{$novice}">复制</div>
</div>
</div>
<div class="weui-cell__ft">
<div class="hbtn">
已领取
</div>
</div>
</div>
<div class="weui-cell gifinfo">
<p class="info-title">有效期</p>
<p class="info-desc">有效期:{$content.start_time}至 {$content.end_time}</p>
<p class="info-title">礼包内容</p>
<p class="info-desc">{$content.desribe}</p>
<p class="info-title">使用说明</p>
<p class="info-desc">{$content.digest}</p>
</div>
</div>
</div>
</body>
<script src="__JS__/jquery.min.js"></script>
<script src="__JS__/clipboard.min.js"></script>
<script>
$(function() {
$(".copybtn").click(function() {
var u = navigator.userAgent, app = navigator.appVersion;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if (isAndroid) {
window.txyxsdk.getCopy("{$novice}");
}
if (isIOS) {
try{
location.href = '?action=copy&copycontent={$novice}'
}catch(err){
}
}
});
});
/*
var clipboard = new ClipboardJS(".copybtn");
clipboard.on('success', function (e) {
alert("复制成功");
});
clipboard.on('error', function (e) {
var ua = navigator.userAgent;
var isIOS = !!ua.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
if (isIOS && ua.match(/os\s+(\d+)/i)[1] - 0 < 10) {
alert("您的系统版本过低,请手动复制下方地址");
}
}); */
</script>
</html>