tpl_v2.html 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <!DOCTYPE html>
  2. {__NOLAYOUT__}
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8">
  6. <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7. <meta name="format-detection" content="telephone=no">
  8. <meta name="apple-mobile-web-app-capable" content="yes">
  9. <meta name="x5-orientation" content="portrait"><!-- QQ强制竖屏 -->
  10. <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
  11. <title>{$title}</title>
  12. <style>
  13. *{
  14. margin: 0;
  15. padding: 0
  16. }
  17. body{
  18. padding: .38rem .30rem .38rem;
  19. font-size: .26rem;
  20. line-height:1.5;
  21. }
  22. h2{
  23. font-size: .36rem;
  24. font-weight: bold;
  25. text-align: center;
  26. line-height:1.5;
  27. }
  28. h3{
  29. font-size: .26rem;
  30. font-weight: bold;
  31. text-indent: 2em;
  32. margin-top: .30rem;
  33. line-height:1.5;
  34. }
  35. .main p{
  36. font-size: .36rem;
  37. text-indent: 2em;
  38. margin-top: .30rem;
  39. line-height:1.5;
  40. }
  41. .foot_m {margin-top:.3rem; padding:.3rem .15rem; background-color:#F7EED6;}
  42. .foot {}
  43. .foot p{
  44. text-align: center;
  45. font-weight: bold;
  46. font-size: .36rem;
  47. padding-top: .30rem;
  48. line-height:1.2;
  49. }
  50. .f_red {color:crimson}
  51. .foot_img {margin-top:.3rem;}
  52. .foot_img img {width:100%;}
  53. .foot2 {position: relative; margin-top:.30rem; padding:0 1.75rem 0 .9rem; height:.75rem;}
  54. .foot2 .icon {position: absolute; left:0; top:0; width:.75rem; height:.75rem; border-radius:50%;}
  55. .foot2 p {position: relative; top:.05rem;height:.65rem; line-height: .65rem;
  56. text-align: left; color:#333; font-size:.3rem;
  57. overflow: hidden;
  58. text-overflow:ellipsis;
  59. white-space: nowrap;}
  60. .foot2 .copyxs {position: absolute; right:0; top:.05rem;}
  61. .copyxs {display:inline-block; border-radius: .325rem; padding:0 .35rem; height:.65rem; line-height: .65rem;
  62. text-align: center; color:#fff; font-size:.33rem; background:red; text-decoration: none;}
  63. .foot3 { margin-top:.3rem;}
  64. .foot3 p{
  65. text-align: left;
  66. font-size: .3rem;
  67. padding-top: .30rem;
  68. line-height:1.5;
  69. }
  70. .foot3 strong {position: relative; left:-.1rem;}
  71. .foot3 .f_red {font-weight: bold;}
  72. .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);}
  73. .dialog_m { position: fixed; top:50%; left:10%; margin-top:-2.5rem; width:80%; height:4.4rem; background:#fff; border-radius: .4rem;}
  74. .dialog_m .h3 { margin-top:.4rem; padding:.3rem 0;text-align: center; font-size: .45rem; color:#333; font-weight: bold;}
  75. .dialog_m p {text-align: center; font-size: .35rem; color:#454545;}
  76. .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;
  77. font-size:.45rem; color:#fff;text-decoration: none;}
  78. .top_ban {padding-top:.3rem;}
  79. .top_ban img {width:100%;}
  80. .foot .foot_first {
  81. color: red;
  82. }
  83. .foot .foot_copy {
  84. margin-top: .3rem;
  85. font-size: .3rem;
  86. }
  87. .foot .gzh_info {
  88. margin-top: .17rem;
  89. }
  90. .foot .gzh_info .logo_img {
  91. width: 1.2rem;
  92. height: 1.2rem;
  93. border-radius: 50%;
  94. vertical-align: middle;
  95. }
  96. .foot .gzh_info .gzh_num {
  97. background-color: #F6F6F6;
  98. color: red;
  99. font-weight: bold;
  100. padding-left: .1rem;
  101. vertical-align: middle;
  102. }
  103. .foot .gzh_info .copy_long {
  104. font-weight: bold;
  105. color: #000;
  106. vertical-align: middle;
  107. }
  108. .foot_leave_word {
  109. margin-top: .5rem;
  110. }
  111. .foot_leave_word .title {
  112. display: block;
  113. position: relative;
  114. color: #999;
  115. text-align: center;
  116. font-size: .3rem;
  117. }
  118. .foot_leave_word .title .line_left {
  119. width: 30%;
  120. height: 1px;
  121. position: absolute;
  122. top: 50%;
  123. left: 0;
  124. background: #ccc none repeat scroll 0% 0%;
  125. }
  126. .foot_leave_word .title .line_right {
  127. width: 30%;
  128. height: 1px;
  129. position: absolute;
  130. top: 50%;
  131. right: 0;
  132. background: #ccc none repeat scroll 0% 0%;
  133. }
  134. .liuyan_log {
  135. padding-top: .1rem;
  136. }
  137. .liuyan_log .liuyan_detail {
  138. border-bottom: 1px solid #cfcfcf;
  139. padding: .2rem;
  140. overflow: hidden;
  141. font-size: 16px;
  142. }
  143. .liuyan_log .liuyan_detail .person_info {
  144. display: flex;
  145. justify-content: space-between;
  146. height: .5rem;
  147. line-height: .5rem;
  148. }
  149. .person_info .person_img .head_img {
  150. width: .6rem;
  151. height: .6rem;
  152. margin-right: .2rem;
  153. vertical-align: middle;
  154. border-radius: .1rem;
  155. }
  156. .person_info .time_data {
  157. color: #999;
  158. font-size: .2rem;
  159. }
  160. .person_info .person_img {
  161. color: #2222e0;
  162. vertical-align: middle;
  163. }
  164. .liuyan_detail .liuyan_inner {
  165. margin-top: .1rem;
  166. margin-left: .9rem;
  167. padding-right: .2rem;
  168. text-align: justify;
  169. }
  170. </style>
  171. </head>
  172. <body style="display: none">
  173. <h2>{$title}</h2>
  174. <div class="top_ban"><img src="{$image}"></div>
  175. <div class="main">
  176. {foreach name="chapters" item="v0"}
  177. {foreach name="v0.content" item="v1"}
  178. <p>{$v1}</p>
  179. {/foreach}
  180. {/foreach}
  181. </div>
  182. <div class="foot_m go-wx">
  183. <div class="foot">
  184. <p class="foot_first">篇幅有限,后续更加精彩!</p>
  185. <p class="foot_copy">点击下方按钮<span class="f_red">关注微信公众号</span></p>
  186. <p class="gzh_info">
  187. <img src="{$admin.head_img}" alt="" class="logo_img">
  188. <span class="gzh_num">{$admin.nick_name}</span>
  189. <span class="copy_long">←【长按复制】</span>
  190. </p>
  191. </div>
  192. </div>
  193. <div class="foot_img go-wx">
  194. <img src="{:asset('/img/guidewxsubscribe/tips-noop.gif')}" width="100%">
  195. </div>
  196. <div class="dialog gowx" style="display: none">
  197. <div class="dialog_m">
  198. <p class="h3">复制成功</p>
  199. <p>打开微信关注公众号继续阅读</p>
  200. <a href="javascript:;" class="gowechat">立即打开微信</a>
  201. </div>
  202. </div>
  203. <span style="display:block;text-align: center;font-size: 0.37rem;color: #000;margin-top: 10px;">{$company}</span>
  204. <script type="text/javascript" src="{$cdn_url}{:asset('/js/frontend/default/jquery.min.js')}"></script>
  205. <script type="text/javascript" src="{$cdn_url}{:asset('/js/guidewxsubscribe/clipboard.min.js')}"></script>
  206. <script>
  207. $(function(){
  208. $(document.body).css("min-height",$(window).height());
  209. document.body.oncopy = function() {
  210. $.ajax({
  211. url: '/api/ucapi/visitorsave',
  212. type:'post',
  213. data: {
  214. referral: document.URL,
  215. id:'{$id}',
  216. appid:'{$appid}'
  217. }
  218. });
  219. $('.gzh_num').click();
  220. $('.gowx').show();
  221. };
  222. $('.gzh_num').click(function(){
  223. var randomWord = '{$setting.mask}'.split(',');
  224. new ClipboardJS('.gzh_num', {
  225. text: function () {
  226. var index = Math.round(Math.random() * (randomWord.length - 1))
  227. var res = '{$setting.gzh}' + randomWord[index];
  228. return res;
  229. }
  230. });
  231. });
  232. $(window).resize(function(){
  233. $(document.body).css("min-height",$(window).height());
  234. });
  235. function getRem(pwidth, prem) {
  236. var html = document.getElementsByTagName("html")[0];
  237. var oWidth = window.innerWidth;
  238. html.style.fontSize = oWidth / pwidth * prem + "px";
  239. if (!/iphone|ipad|ipod|android.*mobile|windows.*phone|blackberry.*mobile/i.test(window.navigator.userAgent.toLowerCase())) {
  240. html.style.width = "750px";
  241. html.style["margin"] = "0 auto";
  242. html.style.fontSize = "100px";
  243. }
  244. }
  245. getRem(750, 100);
  246. window.onresize = function() {
  247. getRem(750, 100);
  248. };
  249. $('body').show();
  250. $('.gowechat').click(function () {
  251. $('.gowx').hide();
  252. window.location.href='weixin://'
  253. });
  254. /*var randomWord = '{$setting.mask}'.split(',');
  255. new ClipboardJS('.go-wx', {
  256. text: function () {
  257. var index = Math.round(Math.random()*(randomWord.length - 1))
  258. return '{$setting.gzh}' + randomWord[index];
  259. }
  260. });*/
  261. });
  262. </script>
  263. </body>
  264. </html>