subscribe.blade.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
  6. <meta content="telephone=no" name="format-detection"/>
  7. <meta content="yes" name="apple-mobile-web-app-capable"/>
  8. <link rel=icon type=image/png href="data:image/png;base64,iVBORw0KGgo=">
  9. <title>【支持正版】</title>
  10. <style>
  11. body {
  12. background-color: #fff8f5;
  13. font-size: 12px;
  14. }
  15. .mainbody {
  16. text-align: center;
  17. display: inline-block;
  18. width: 100%;
  19. }
  20. .q_title {
  21. margin-top: 30px;
  22. }
  23. .q_title h3 {
  24. font-size: 2em;
  25. padding: 5px 0;
  26. color:#ef670e;
  27. }
  28. .q_title p {
  29. padding: 5px 0;
  30. font-size: 1.4em;
  31. color: #a57d6a;
  32. }
  33. .img_qr img {
  34. width: 64%;
  35. margin-top: 10px;
  36. diplay:block;
  37. margin:auto;
  38. border:15px solid #ffebdf;
  39. border-radius:20px;
  40. /*pointer-events: none;*/
  41. }
  42. .q_bottom {
  43. color: #f09f60;
  44. background:#ffeddf;
  45. border:2px solid #f1cca7;
  46. text-align:left;
  47. width:85%;
  48. padding:15px;
  49. margin:30px auto;
  50. }
  51. .q_bottom h3{
  52. color: #df6d1f;
  53. font-size: 2em;
  54. margin-top: 0;
  55. margin-bottom: 17px;
  56. }
  57. .q_bottom p{
  58. font-size: 1.1em;
  59. line-height: 23px;
  60. padding: 0;
  61. margin: 0;
  62. }
  63. .icon_area {
  64. width: 8em;
  65. height: 8em;
  66. background-color: #10aeff;
  67. border-radius: 4em;
  68. color: #fff;
  69. margin: 5em auto;
  70. }
  71. .icon_msg {
  72. font-size: 8em;
  73. font-family: -webkit-body;
  74. line-height: 1em;
  75. }
  76. .msg_title {
  77. font-family: 'Helvetica Neue';
  78. font-size: 2em;
  79. }
  80. </style>
  81. </head>
  82. <body>
  83. <div class="mainbody">
  84. <div class="q_title">
  85. <h3>关注作者授权公众号继续阅读</h3>
  86. <p>由于版权问题,请关注后继续阅读</p>
  87. <p>( 每日免费领书币 )</p>
  88. </div>
  89. @if($img)
  90. <div class="img_qr" >
  91. <img src="{{$img}}">
  92. </div>
  93. @else
  94. <div class="img_qr" id="qrcode_url">
  95. </div>
  96. @endif
  97. <div class="q_bottom" >
  98. <h3>关注步骤 :</h3>
  99. <p>1. 将二维码截图保存</p>
  100. <p>2. 打开微信-扫一扫-相册,选中二维码后点击扫描</p>
  101. <p>3. 点击关注公众号</p>
  102. </div>
  103. </div>
  104. </body>
  105. <script>
  106. if (typeof WeixinJSBridge == "object" && typeof WeixinJSBridge.invoke == "function") {
  107. handleFontSize();
  108. } else {
  109. if (document.addEventListener) {
  110. document.addEventListener("WeixinJSBridgeReady", handleFontSize, false);
  111. } else if (document.attachEvent) {
  112. document.attachEvent("WeixinJSBridgeReady", handleFontSize);
  113. document.attachEvent("onWeixinJSBridgeReady", handleFontSize);
  114. }
  115. }
  116. function handleFontSize() {
  117. // 设置网页字体为默认大小
  118. WeixinJSBridge.invoke('setFontSizeCallback', {'fontSize': 0});
  119. // 重写设置网页字体大小的事件
  120. WeixinJSBridge.on('menu:setfont', function () {
  121. WeixinJSBridge.invoke('setFontSizeCallback', {'fontSize': 0});
  122. });
  123. }
  124. </script>
  125. <script src='https://cdn-novel.iycdm.com/static/qrcode.min.js'></script>
  126. <script>
  127. var img_url = "{!! $url !!}"
  128. /*if(img_url){
  129. $('#qrcode_url').qrcode({
  130. render: "canvas",
  131. width: 200,
  132. height: 200,
  133. text: img_url
  134. });
  135. }*/
  136. var qrcode = new QRCode("qrcode_url", {
  137. text: img_url,
  138. width: 200,
  139. height: 200,
  140. colorDark : "#000000",
  141. colorLight : "#ffffff",
  142. correctLevel : QRCode.CorrectLevel.H
  143. });
  144. </script>
  145. </html>