12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta name="divport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
- <title>JSTYLE精美</title>
- <link href="css/global.css?v=a54dd0df" rel="stylesheet"><link href="css/codedetail.css?v=a54dd0df" rel="stylesheet"></head>
- <body>
- <div class="maginfo">
- <img src='http://7.jstyle.cn/1/2019/03/06/91e4fb0f002311e72cd285706e71d800.jpg' />
- <div>
- <span>兑换码只能被激活一次,当您购买成功后,可进入小程序使用兑换码查看,若您购买了多本,可将剩余兑换码赠送好友。</span>
- <a href="#" node-act="read" class="button black">阅读</a>
- </div>
- </div>
- <div class="code-list">
- <div class='dl'>
- <div class='dd'>
- <div class='p'>
- <span class="ico-code"></span>兑换码:675386834</div>
- <span class="span" style="font-size:.37333rem">未使用</span>
- </div>
- <div class='dt'>
- <a href="javascript:;" class="button" node-id="copy" data-clipboard-text="675386834">复制</a>
- </div>
- </div>
- <div class='dl'>
- <div class='dd'>
- <div class='p'>
- <span class="ico-code"></span>兑换码:675386834</div>
- <span class="span used">已使用</span>
- </div>
- <div class='dt'>
- <div class="button disabled">复制</div>
- </div>
- </div>
- <div class='dl'>
- <div class='dd'>
- <div class='p'>
- <span class="ico-code"></span>兑换码:675386834</div>
- <span class="span used">已作废</text>
- </div>
- <div class='dt'>
- <div class="button disabled">复制</div>
- </div>
- </div>
- </div>
- <div class="success fn-hide" id="success">复制成功</div>
- <div class="mask fn-hide" id="layer">
- <div class="layer read-layer">
- <div class="qrcode-wrap">
- <img src="images/qrcode.png" alt="" class="default" id="code">
- <p>长按识别小程序阅读电子刊</p>
- </div>
- <a href="javascript:;" class="btn-close" id="close"></a>
- </div>
- </div>
- <script type="text/javascript" src="js/global.js?v=a54dd0df"></script><script type="text/javascript" src="js/codedetail.js?v=a54dd0df"></script></body>
- <script src="https://cdn.bootcss.com/clipboard.js/2.0.4/clipboard.min.js"></script>
- <script>
- var timer;
- var clipboard = new ClipboardJS('[node-id="copy"]');
- clipboard.on('success', function (e) {
- $('#success').removeClass('fn-hide');
- clearTimeout(timer);
- timer = setTimeout(function () {
- $('#success').addClass('fn-hide');
- }, 3000)
- e.clearSelection();
- });
- $('[node-act="read"]').on('click', function () {
- $('#layer').show();
- })
- $('#close').on('click', function () {
- $('#layer').hide();
- });
- </script>
- </html>
|