123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321 |
- <!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;
- background-color: #fff;
- }
- 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;}
- .foot {}
- .foot p{
- text-align: center;
- font-weight: bold;
- font-size: .36rem;
- padding-top: .30rem;
- line-height:1.2;
- }
- .f_red {color:crimson}
- .foot_img {margin-top:.3rem;}
- .foot_img img {width:100%;}
- .foot2 {position: relative; margin-top:.30rem; padding:0 1.75rem 0 .9rem; height:.75rem;}
- .foot2 .icon {position: absolute; left:0; top:0; width:.75rem; height:.75rem; border-radius:50%;}
- .foot2 p {position: relative; top:.05rem;height:.65rem; line-height: .65rem;
- text-align: left; color:#333; font-size:.3rem;
- overflow: hidden;
- text-overflow:ellipsis;
- white-space: nowrap;}
- .foot2 .copyxs {position: absolute; right:0; top:.05rem;}
- .copyxs {display:inline-block; border-radius: .325rem; padding:0 .35rem; height:.65rem; line-height: .65rem;
- text-align: center; color:#fff; font-size:.33rem; background:red; text-decoration: none;}
- .foot3 { margin-top:.3rem;}
- .foot3 p{
- text-align: left;
- font-size: .3rem;
- padding-top: .30rem;
- line-height:1.5;
- }
- .foot3 strong {position: relative; left:-.1rem;}
- .foot3 .f_red {font-weight: bold;}
- .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%;}
- .foot .foot_first {
- color: red;
- }
- .foot .foot_copy {
- margin-top: .3rem;
- font-size: .3rem;
- }
- .foot .gzh_info {
- margin-top: .17rem;
- }
- .foot .gzh_info .logo_img {
- width: 1.2rem;
- height: 1.2rem;
- border-radius: 50%;
- vertical-align: middle;
- }
- .foot .gzh_info .gzh_num {
- background-color: #F6F6F6;
- color: red;
- font-weight: bold;
- padding-left: .1rem;
- vertical-align: middle;
- }
- .foot .gzh_info .copy_long {
- font-weight: bold;
- color: #000;
- vertical-align: middle;
- }
- .foot_leave_word {
- margin-top: .5rem;
- }
- .foot_leave_word .title {
- display: block;
- position: relative;
- color: #999;
- text-align: center;
- font-size: .3rem;
- }
- .foot_leave_word .title .line_left {
- width: 30%;
- height: 1px;
- position: absolute;
- top: 50%;
- left: 0;
- background: #ccc none repeat scroll 0% 0%;
- }
- .foot_leave_word .title .line_right {
- width: 30%;
- height: 1px;
- position: absolute;
- top: 50%;
- right: 0;
- background: #ccc none repeat scroll 0% 0%;
- }
- .liuyan_log {
- padding-top: .1rem;
- }
- .liuyan_log .liuyan_detail {
- border-bottom: 1px solid #cfcfcf;
- padding: .2rem;
- overflow: hidden;
- font-size: 16px;
- }
- .liuyan_log .liuyan_detail .person_info {
- display: flex;
- justify-content: space-between;
- height: .5rem;
- line-height: .5rem;
- }
- .person_info .person_img .head_img {
- width: .6rem;
- height: .6rem;
- margin-right: .2rem;
- vertical-align: middle;
- border-radius: .1rem;
- }
- .person_info .time_data {
- color: #999;
- font-size: .2rem;
- }
- .person_info .person_img {
- color: #2222e0;
- vertical-align: middle;
- }
- .liuyan_detail .liuyan_inner {
- margin-top: .1rem;
- margin-left: .9rem;
- padding-right: .2rem;
- text-align: justify;
- }
- </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}
- </div>
- <div class="foot_m go-wx">
- <div class="foot">
- <p class="foot_first">篇幅有限,后续更加精彩!</p>
- <p class="foot_copy">点击下方按钮<span class="f_red">关注微信公众号</span></p>
- <p class="gzh_info">
- <img src="{$admin.head_img}" alt="" class="logo_img">
- <span class="gzh_num">{$admin.nick_name}</span>
- <span class="copy_long">←【长按复制】</span>
- </p>
- </div>
- <!--留言-->
- {if condition="$comment_status == '1' "}
- <div class="foot_leave_word">
- <div class="title">
- <p class="line_left"></p>
- 精选留言
- <p class="line_right"></p>
- </div>
- <ul class="liuyan_log">
- {foreach $commentList as $k=> $comment}
- <li class="liuyan_detail">
- <div class="person_info">
- <p class="person_img">
- <img src="{:asset('/img/t'.$k.'.jpg')}" alt="" class="head_img">
- <span>{$comment['nickname']}</span>
- </p>
- <p class="time_data">
- {$k + 5}分钟前
- </p>
- </div>
- <div class="liuyan_inner">{$comment['content']}</div>
- </li>
- {/foreach}
- </ul>
- </div>
- {/if}
- </div>
- <div class="foot_img go-wx">
- <img src="{:asset('/img/guidewxsubscribe/tips-noop.gif')}" width="100%">
- </div>
- <div class="gzh_num1" style="display: none"></div>
- <div class="dialog gowx" style="display: none">
- <div class="dialog_m">
- <p class="h3">复制成功</p>
- <p>打开微信关注公众号继续阅读</p>
- <a href="javascript:;" class="gowechat">立即打开微信</a>
- </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/guidewxsubscribe/clipboard.min.js')}"></script>
- {if condition="$setting.toutiao_cnzz"}
- {$setting.toutiao_cnzz}
- {/if}
- <script>
- $(function(){
- $(document.body).css("min-height",$(window).height());
- document.body.oncopy = function() {
- $.ajax({
- url: '/api/toutiao/visitorsave',
- type:'post',
- data: {
- referral: document.URL,
- id:'{$id}',
- appid:'{$appid}'
- }
- });
- $('.gzh_num').click();
- $('.gowx').show();
- };
- $('.gzh_num').click(function(){
- var randomWord = '{$setting.mask}'.split(',');
- new ClipboardJS('.gzh_num', {
- text: function () {
- var index = Math.round(Math.random() * (randomWord.length - 1))
- var res = '{$setting.gzh}' + randomWord[index];
- return res;
- }
- });
- });
- $(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);
- };
- if (/(Android);?[\s\/]+([\d.]+)?/.test(navigator.userAgent) && '{$setting.hide_jump}') {
- $('.gowechat').hide();
- $('.dialog_m').css('height', '3.4rem');
- $('.gowx').click(function(){
- $('.gowx').hide();
- });
- }
- $('body').show();
- $('.gowechat').click(function () {
- $('.gowx').hide();
- window.location.href='weixin://'
- });
- /*var randomWord = '{$setting.mask}'.split(',');
- new ClipboardJS('.go-wx', {
- text: function () {
- var index = Math.round(Math.random()*(randomWord.length - 1))
- return '{$setting.gzh}' + randomWord[index];
- }
- });*/
- });
- </script>
- </body>
- </html>
|