daofen_qrcode.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <style>
  2. .pop_fixed{
  3. position: fixed;
  4. left: 0;
  5. top: 0;
  6. width: 100%;
  7. height: 100%;
  8. background:rgba(0,0,0,0.7);
  9. font-family:PingFang-SC-Bold,PingFang-SC;
  10. z-index: 999;
  11. }
  12. .pop_box{
  13. width: 3.15rem;
  14. background: #fff;
  15. border-radius: 0.12rem;
  16. position: relative;
  17. left: 50%;
  18. top: 50%;
  19. transform: translateX(-50%) translateY(-50%);
  20. -webkit-transform: translateX(-50%) translateY(-50%);
  21. -ms-transform: translateX(-50%) translateY(-50%);
  22. -o-transform: translateX(-50%) translateY(-50%);
  23. -moz-transform: translateX(-50%) translateY(-50%);
  24. }
  25. .pop_title{
  26. font-size: 0.17rem;
  27. font-weight: bold;
  28. color: rgba(66,66,66,1);
  29. line-height: 0.27rem;
  30. text-align: center;
  31. padding-top: 0.2rem;
  32. }
  33. .pop_img{
  34. width: 100%;
  35. text-align: center;
  36. margin: 0.12rem 0 0.18rem;
  37. font-size: 0;
  38. }
  39. .pop_img img{
  40. width: 1.78rem;
  41. height: 1.78rem;
  42. box-shadow: 0rem 0.02rem 0.12rem 0rem rgba(0,0,0,0.3);
  43. border-radius: 0.08rem;
  44. }
  45. .pop_tip{
  46. font-size: 0.13rem;
  47. color:rgba(66,66,66,1);
  48. line-height: 0.24rem;
  49. text-align: center;
  50. }
  51. .pop_btn{
  52. width: 100%;
  53. border-top: 0.01rem solid #D6D6D6;
  54. padding: 0.1rem 0;
  55. text-align: center;
  56. color:rgba(234,94,94,1);
  57. font-size: 0.18rem;
  58. margin-top: 0.15rem;
  59. }
  60. .pop_btn a{
  61. color:rgba(234,94,94,1);
  62. display: block;
  63. width: 100%;
  64. }
  65. .pop_close{
  66. position: absolute;
  67. width: 0.28rem;
  68. height: 0.28rem;
  69. background: #fff url(/assets/img/frontend/icon/cha_icon_2.png) no-repeat center center/100% 100%;
  70. left: 1.44rem;
  71. bottom: -0.58rem;
  72. border-radius: 100%;
  73. }
  74. </style>
  75. {if condition="$is_subscribed neq 1 && $subscribe_method eq 2 && $guid_chapter_idx && $chapter_idx >= $guid_chapter_idx && !$Think.cookie.pop_times"}
  76. <div class="pop_fixed">
  77. {else}
  78. <div class="pop_fixed" style="display: none">
  79. {/if}
  80. <div class="pop_box">
  81. <div class="pop_title">
  82. {if condition="$subscribe_method eq 1"}
  83. 篇幅有限,长按关注公众号<br>
  84. 继续阅读后续精彩内容
  85. {else/}
  86. 长按关注公众号,继续阅读精彩内容
  87. {/if}
  88. </div>
  89. <div class="pop_img">
  90. <img src="{$qrcode_image}" alt="">
  91. </div>
  92. <div class="pop_tip">
  93. 长按上图二维码3秒<br/>
  94. 点击【前往图中包含的公众号】<br/>
  95. 关注公众号,精彩内容继续看<br/>
  96. </div>
  97. {if condition="$subscribe_method eq 1"}
  98. <div class="pop_btn">关闭</div>
  99. {else/}
  100. <div class="pop_btn pop_times"><a href="{$next_link}">关闭</a></div>
  101. {/if}
  102. </div>
  103. </div>