123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332 |
- <!DOCTYPE html>
- {__NOLAYOUT__}
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
- <meta name="format-detection" content="telephone=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="x5-orientation" content="portrait"><!-- QQ强制竖屏 -->
- <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
- <title>{$title}</title>
- <style>
- *{
- margin: 0;
- padding: 0
- }
- body{
- padding: .38rem .30rem .38rem;
- font-size: .26rem;
- line-height:1.5;
- }
- h2{
- font-size: .36rem;
- font-weight: bold;
- text-align: center;
- line-height:1.5;
- }
- h3{
- font-size: .26rem;
- font-weight: bold;
- text-indent: 2em;
- margin-top: .30rem;
- line-height:1.5;
- }
- .main p{
- font-size: .36rem;
- text-indent: 2em;
- margin-top: .30rem;
- line-height:1.5;
- }
- .foot_m {margin-top:.3rem; padding:.3rem .15rem; background-color:#F7EED6;}
- .footer {
- font-size: .16rem;
- padding: .16rem;
- margin-top: .60rem;
- text-align: center;
- }
- .footer-img img {
- width: 100%;
- }
- .footer-copyright {
- font-size: .14rem;
- color: #999;
- margin: .11rem 0;
- }
- .readbtn {
- background: #67ac5b;
- border-radius: .03rem;
- text-align: center;
- line-height: .40rem;
- font-size: .40rem;
- margin-bottom: .10rem;
- border: none;
- padding: .1rem;
- color: #FFF;
- -webkit-animation-name: scaleDraw;
- -webkit-animation-timing-function: ease-in-out;
- -webkit-animation-iteration-count: infinite;
- -webkit-animation-duration: 3s;
- }
- .colorR-label {
- color: #f54343;
- }
- @keyframes scaleDraw {
- 0% {
- transform: scale(1);
- }
- 25% {
- transform: scale(1.2);
- }
- 50% {
- transform: scale(1);
- }
- 75% {
- transform: scale(1.2);
- }
- }
- .footer-text {
- font-size: .36rem;
- line-height: 1.9;
- text-align: center;
- font-weight: 700;
- }
- .footer-icon {
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG0AAAAcCAYAAABrhjEyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQwIDc5LjE2MDQ1MSwgMjAxNy8wNS8wNi0wMTowODoyMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ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Yfbtniei6M6UgMa9m64KTEKEEZN753ijvriQgdcA19Qbc2G5bohAVumw37K/ePAAMAxAomSJZ7AbkAAAAASUVORK5CYII=);
- background-size: cover;
- width: 1.09rem;
- height: .28rem;
- margin: .1rem auto;
- }
- .alert {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- }
- .alert .mask {
- position: absolute;
- background: #00000080;
- z-index: 1;
- width: 100%;
- height: 100%;
- }
- .alert-content {
- position: relative;
- left: 50%;
- transform: translate(-50%, -50%);
- width: 6.5rem;
- height: 8.5rem;
- background: #fff;
- z-index: 2;
- }
- .animated {
- display: block !important;
- -webkit-animation-name: slideInUp;
- animation-name: slideInUp;
- -webkit-animation-duration: 1s;
- animation-duration: 1s;
- -webkit-animation-fill-mode: both;
- animation-fill-mode: both;
- }
- @keyframes slideInUp {
- 0% {
- top: 0px;
- }
- 100% {
- top: 45%;
- }
- }
- .gzh_img {
- width: 100%;
- }
- .focus-box {
- text-align: center;
- }
- .popup-cancel {
- border: 1px solid #999999;
- color: #999999;
- }
- .btn {
- display: inline-block;
- padding: 0.02rem 0.05rem;
- text-align: center;
- -ms-touch-action: manipulation;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- width: 35%;
- border-radius: 0.20rem;
- font-size: 0.25rem;
- margin: 0.20rem 5% 0 0;
- height: .42rem;
- line-height: .42rem;
- }
- .surebtn {
- -webkit-animation-name: scaleDraw;
- -webkit-animation-timing-function: ease-in-out;
- -webkit-animation-iteration-count: infinite;
- -webkit-animation-duration: 3s;
- }
- .popup-sure {
- background: #4caf50;
- color: #fff;
- border: 0;
- box-shadow: 0 0.03rem 0.01rem -0.02rem rgba(0, 0, 0, .2), 0 0.02rem 0.02rem 0 rgba(0, 0, 0, .14), 0 0.01rem 0.05rem 0 rgba(0, 0, 0, .12);
- }
- .footer-wechat-text {
- padding: .12rem .13rem;
- background-color: #f6f6f6;
- font-size: .26rem;
- -webkit-user-select: text;
- -moz-user-select: text;
- -ms-user-select: text;
- user-select: text;
- }
- .dialog { position: fixed; top:0; right:0; bottom:0; left:0; width:100%; height:100%; z-index: 5; background:rgba(0,0,0,0.4);}
- .dialog_m { position: fixed; top:50%; left:10%; margin-top:-2.5rem; width:80%; height:4.4rem; background:#fff; border-radius: .4rem;}
- .dialog_m .h3 { margin-top:.4rem; padding:.3rem 0;text-align: center; font-size: .45rem; color:#333; font-weight: bold;}
- .dialog_m p {text-align: center; font-size: .35rem; color:#454545;}
- .dialog_m a {display:block; margin:0 auto; margin-top:.4rem; border-radius: .5rem; width:80%; height:1rem; line-height: 1rem; background:red; text-align: center;
- font-size:.45rem; color:#fff;text-decoration: none;}
- .top_ban {padding-top:.3rem;}
- .top_ban img {width:100%;}
- </style>
- </head>
- <body style="display: none">
- <h2>{$title}</h2>
- <div class="top_ban"><img src="{$image}"></div>
- <div class="main">
- {foreach name="chapters" item="v0"}
- {foreach name="v0.content" item="v1"}
- <p>{$v1}</p>
- {/foreach}
- {/foreach}
- <input type="hidden" id="admin_card" value="{$admin.admin_card}">
- </div>
- <div class="footer footer-uc">
- <p class="footer-text">篇幅有限,后续更加精彩!</p>
- <p class="footer-text">按下方步骤<span class="colorR-label">前往关注公众号</span>继续阅读</p>
- <p class="footer-icon"></p>
- <p style="text-align: center;padding:5px 0 15px;">
- <button class="readbtn" id="readUcButton">点此继续阅读下一章</button>
- </p>
- <div class="footer-img">
- <img src="https://s.kjcdn.com/es/resource/images/wx02.gif" alt="">
- </div>
- <p class="footer-copyright">{$company}</p>
- </div>
- <div class="alert alert-uc" style="display: none;">
- <div class="mask"></div>
- <div class="alert-content animated">
- <div style="text-align: center; ">
- <img src="https://s.kjcdn.com/es/resource/images/tips.gif" class="gzh_img">
- </div>
- <div class="focus-box">
- <div class="btn popup-cancel hideTips">取消</div>
- <div class="btn popup-sure surebtn" id="goToFocus" onclick="call('wechatTimeline')" data-jump="http://mp.weixin.qq.com/mp/getmasssendmsg?__biz=MzI1NDY3OTI5Nw==#wechat_webview_type=1&wechat_redirect">前往关注
- </div>
- </div>
- </div>
- </div>
- <!-- <span style="display:block;text-align: center;font-size: 0.37rem;color: #000;margin-top: 10px;">{$company}</span>-->
- <script type="text/javascript" src="{$cdn_url}{:asset('/js/frontend/default/jquery.min.js')}"></script>
- <script type="text/javascript" src="{$cdn_url}{:asset('/js/NativeShare.js')}"></script>
- <script>
- $(function(){
- $(document.body).css("min-height",$(window).height());
- $(window).resize(function(){
- $(document.body).css("min-height",$(window).height());
- });
- function getRem(pwidth, prem) {
- var html = document.getElementsByTagName("html")[0];
- var oWidth = window.innerWidth;
- html.style.fontSize = oWidth / pwidth * prem + "px";
- if (!/iphone|ipad|ipod|android.*mobile|windows.*phone|blackberry.*mobile/i.test(window.navigator.userAgent.toLowerCase())) {
- html.style.width = "750px";
- html.style["margin"] = "0 auto";
- html.style.fontSize = "100px";
- }
- }
- getRem(750, 100);
- window.onresize = function() {
- getRem(750, 100);
- };
- $('body').show();
- $(".footer-uc").on('click', function() {
- $.ajax({
- url: '/api/ucapi/visitorsave',
- type:'post',
- data: {
- referral: document.URL,
- id:'{$id}',
- appid:'{$appid}'
- }
- });
- });
- //uc分享到朋友圈
- $('#readUcButton').on('click', function () {
- $('.alert-uc').show();
- });
- $('.mask').on('click', function () {
- $('.alert').hide();
- });
- $('.hideTips').on('click', function () {
- $('.alert').hide();
- });
- });
- function isAndroid() {
- var ua = navigator.userAgent;
- return /(Android);?[\s\/]+([\d.]+)?/.test(ua);
- }
- var nativeShare = new NativeShare();
- if(isAndroid()){
- var shareData = {
- target:"WechatTimeline",
- title: "👉点此处关注公众号继续精彩阅读👈",
- content: "精彩小说继续阅读",
- imgUrl: "https://cpsn.zsjwaw.cn/uploads/20200427/9260d042f238396da4b1be0da3f3b8b5.jpg",
- link: document.getElementById("admin_card").value,
- };
- }else{
- var shareData = {
- target:"timeline",
- title: "👉点此处关注公众号继续精彩阅读👈",
- content: "精彩小说继续阅读",
- imgUrl: "https://cpsn.zsjwaw.cn/uploads/20200427/9260d042f238396da4b1be0da3f3b8b5.jpg",
- link: document.getElementById("admin_card").value,
- };
- }
- nativeShare.setShareData(shareData);
- function call(command) {
- try {
- nativeShare.call(command);
- //history.go(-1);
- } catch (err) {
- // 如果不支持,你可以在这里做降级处理
- alert(err.message)
- }
- }
- </script>
- </body>
- </html>
|