default.html 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. {extend name="layout/layout" /}
  2. {block name="title"}小额充值{/block}
  3. {block name="css"}
  4. <!-- 这里引入css -->
  5. <link href="{:asset('/css/frontend/common.css')}" rel="stylesheet" type="text/css">
  6. <link href="{:asset('/css/frontend/classify.css')}" rel="stylesheet" type="text/css">
  7. <style type="text/css">
  8. html,
  9. body {
  10. background:linear-gradient(90deg,#f9dc8b 0%,#f9dc8b 100%);
  11. }
  12. .js_loading strong{
  13. padding: .1rem .1rem .1rem .8rem;
  14. position:fixed;
  15. top:50%;
  16. left: .6rem;
  17. right: .6rem;
  18. z-index: 199;
  19. margin: -.3rem auto;
  20. height: .7rem;
  21. font-size:.16rem;
  22. color:#fff;
  23. line-height: .5rem;
  24. background:rgba(0,0,0,0.7) url({:asset('/img/frontend/icon/oval.svg')}) no-repeat .2rem center;
  25. background-size: .4rem .4rem;
  26. box-sizing: border-box;
  27. border-radius: .08rem;
  28. }
  29. .js_loading{
  30. display: none;
  31. position: fixed;
  32. left: 0;
  33. right: 0;
  34. top: 0;
  35. bottom: 0;
  36. z-index: 100;
  37. background-color: rgba(0,0,0,.3);
  38. }
  39. /*弹出框*/
  40. .bind_alert_box{
  41. display: none;
  42. position:fixed;
  43. left:0;
  44. top:0;
  45. right:0;
  46. bottom:0;
  47. padding:20px 0;
  48. overflow:hidden;
  49. background-color:rgba(0,0,0,0.5);
  50. text-align:center;
  51. font-size:0;
  52. z-index:3000;
  53. }
  54. .bind_alert_main,
  55. .bind_alert_height{
  56. display:inline-block;
  57. *display:inline;
  58. *zoom:1;
  59. vertical-align:middle;
  60. }
  61. .bind_alert_height{
  62. height:100%;
  63. overflow:hidden;
  64. width:1px;
  65. margin-left:-10px;
  66. }
  67. .bind_alert_main{
  68. overflow:hidden;
  69. width:240px;
  70. background-color:#fff;
  71. border-radius:6px;
  72. font-size:14px;
  73. -moz-box-shadow:0 0 10px 0px rgba(0,0,0,0.3);
  74. -webkit-box-shadow:0 0 10px 0px rgba(0,0,0,0.3);
  75. box-shadow:0 0 10px 0px rgba(0,0,0,0.3);
  76. }
  77. .bind_alert_off{
  78. float: right;
  79. width: 26px;
  80. height: 26px;
  81. background:#fff url(/assets/img/frontend/icon/cha_icon_2.png) no-repeat center center;
  82. background-size: 13px 13px;
  83. border-radius: 26px;
  84. margin: 0 0 10px;
  85. }
  86. .alert_tit{
  87. margin: 20px 40px;
  88. text-align:center;
  89. overflow:hidden;
  90. }
  91. .alert_tit_clear{
  92. margin:5px 5px 0 0;
  93. float:right;
  94. width:30px;
  95. height:30px;
  96. background:url(/images/icons/cha_icon_2.png) no-repeat center center;
  97. background-size:18px auto;
  98. }
  99. .alert_tit h2{
  100. margin:0 40px;
  101. overflow:hidden;
  102. height:40px;
  103. font-size:16px;
  104. color:#808080;
  105. text-align:center;
  106. line-height:40px;
  107. }
  108. .alert_tit h3{
  109. margin-top:10px;
  110. padding-left:22px;
  111. display:inline-block;
  112. *display:inline;
  113. *zoom:1;
  114. overflow:hidden;
  115. height:30px;
  116. background:url(/images/icons/warning_icon_2.png) no-repeat 0 center;
  117. background-size:18px auto;
  118. font-size:16px;
  119. color:#333;
  120. text-align:center;
  121. line-height:30px;
  122. }
  123. .alert_text{
  124. padding:10px;
  125. }
  126. .alert_txt_c{
  127. font-size:14px;
  128. color:#808080;
  129. text-align:left;
  130. line-height:20px;
  131. }
  132. .alert_but_box{
  133. border-top:1px solid #d8d8d8;
  134. overflow:hidden;
  135. }
  136. .alert_but_box a{
  137. display:block;
  138. box-sizing:border-box;
  139. }
  140. .alert_but_1{
  141. height:46px;
  142. font-size:15px;
  143. color:#77a4ff;
  144. text-align:center;
  145. line-height:46px;
  146. }
  147. /*.v_top_bg{*/
  148. /* overflow: hidden;*/
  149. /*}*/
  150. /*.v_top_bg img{*/
  151. /* display: block;*/
  152. /* width: 100%;*/
  153. /* height: auto;*/
  154. /*}*/
  155. .v_text_box{
  156. margin-bottom: .3rem;
  157. overflow: hidden;
  158. height:.54rem;
  159. text-align: center;
  160. font-size: 0;
  161. }
  162. .v_text_box span{
  163. padding: 0 .16rem;
  164. overflow: hidden;
  165. display: inline-block;
  166. *display: inline;
  167. *zoom:1;
  168. height: .52rem;
  169. font-size: .18rem;
  170. color: #e7423a;
  171. line-height: .52rem;
  172. border:.01rem solid #e7423a;
  173. border-radius:.05rem;
  174. -ms-border-radius:.05rem;
  175. -moz-border-radius:.05rem;
  176. -webkit-border-radius:.05rem;
  177. -o-border-radius:.05rem;
  178. }
  179. /*.re_but_box .v_pay_but{*/
  180. /* margin: 0 auto .2rem;*/
  181. /* display: block;*/
  182. /* height: .45rem;*/
  183. /* width: 2.8rem;*/
  184. /* background: url({:asset('/img/frontend/vip_pay_banner/default_but.png')}) no-repeat 0 0; */
  185. /* background-size: 2.8rem .45rem;*/
  186. /*}*/
  187. .v_pay_txt{
  188. margin-bottom: .3rem;
  189. overflow: hidden;
  190. height: .2rem;
  191. text-align: center;
  192. font-size: .13rem;
  193. color: #8d5e49;
  194. line-height: .2rem;
  195. }
  196. /*.re_but_box{*/
  197. /* padding: 0;*/
  198. /*}*/
  199. .a_pop_up{
  200. display:none;
  201. position: fixed;
  202. left: 0;
  203. top: 0;
  204. right: 0;
  205. bottom: 0;
  206. background-color: rgba(0,0,0,.8);
  207. white-space: nowrap;
  208. text-align: center;
  209. }
  210. .a_pop_up_box,
  211. .a_pop_jgb{
  212. overflow: hidden;
  213. display: inline-block;
  214. vertical-align: middle;
  215. white-space: normal;
  216. }
  217. .a_pop_jgb{
  218. margin-left: -1px;
  219. height: 100%;
  220. width: 1px;
  221. }
  222. .a_pop_up_box{
  223. min-width: 2.6rem;
  224. padding: .3rem .2rem;
  225. background-color: #fff;
  226. border-radius: .1rem;
  227. box-sizing: border-box;
  228. }
  229. .a_pop_up_box strong{
  230. display: block;
  231. text-align: center;
  232. font-size: .18rem;
  233. color: #414141;
  234. line-height: .3rem;
  235. }
  236. .a_pop_up_box span{
  237. display: block;
  238. text-align: center;
  239. font-size: .13rem;
  240. color: #414141;
  241. line-height: .3rem;
  242. }
  243. .a_pop_up_box a{
  244. display: block;
  245. margin: .1rem .2rem;
  246. background-color: #ff2f10;
  247. font-size: .14rem;
  248. color: #fff;
  249. line-height: .4rem;
  250. border-radius: .06rem;
  251. }
  252. </style>
  253. <style>
  254. .dialoge_bg { position: fixed; left:0; top:0; right:0; right:0; width:100%; height:100%; background:rgba(0,0,0,0.6); z-index: 1; display: none}
  255. .dialoge_main_div {position: fixed; top:50%; left:50%; margin:-1.655rem 0 0 -1.5125rem; width:3.025rem; height:3.31rem; z-index: 2;}
  256. .dialoge_main_div .h3 {position:absolute; top:0; left:0; width:100%; height:0.46rem; background:url({:asset('/img/frontend/recharge/pop-tit-bk.png')}) no-repeat center; background-size:2.725rem;
  257. padding-top:.16rem;
  258. font-size:0.175rem;
  259. font-family:PingFang-SC-Bold,PingFang-SC;
  260. font-weight:bold;
  261. color:rgba(81,61,61,1);
  262. text-align: center;
  263. z-index: 3;
  264. }
  265. .dialoge_main { position: relative; margin-top:.395rem;padding-top:.28rem; width:3.025rem; height:2.17rem; background:#fff; border-radius:0.115rem; text-align: center;}
  266. .suc_ico { margin:0 auto; width:.96rem;}
  267. .suc_p1 {font-size:.125rem;font-family:PingFangSC-Regular,PingFang SC;color:rgba(184,190,204,1);line-height:.18rem;text-align: center;}
  268. .dialoge_main .suc_btn_look {
  269. position:absolute; left:50%; bottom:.19rem; margin-left:-1.2375rem;
  270. display:block; width:2.475rem;height:.365rem;line-height:.365rem;background:rgba(255,180,115,1);border-radius:.18rem;color:#fff;}
  271. .suc_close { position: absolute; left:50%; bottom:0.02rem; margin-left:-0.13rem; width:.26rem;}
  272. .suc_close img {width:.26rem;}
  273. </style>
  274. {/block}
  275. {block name="zepto"}
  276. <!-- 这是zepto插件 -->
  277. {/block}
  278. {block name="menu"}{/block}
  279. {block name="main"}
  280. <div class="v_top_bg re_but_box">
  281. <a href="javascript:;" class="v_pay_but" data-money="{$goods_info['money']}" data-business_line="{$business_line}" data-goods-id="{$goods_info['id']}" data-goods-category="{$goods_info['category_id']}">
  282. <img src="{:asset('/img/frontend/smallpay/pay.jpg')}" />
  283. </a>
  284. </div>
  285. <input type="hidden" value="{$recent_url}" class="js_recent_url">
  286. <div class="bind_alert_box" id="clear_alert_box">
  287. <div class="bind_alert_main">
  288. <a href="javascript:;" class="bind_alert_off"></a>
  289. <div class="alert_tit">
  290. <h2>充值成功</h2>
  291. </div>
  292. <div class="alert_but_box">
  293. <a href="javascript:;" class="alert_but_1">去看书</a>
  294. </div>
  295. </div>
  296. <div class="bind_alert_height"></div>
  297. </div>
  298. <div class="dialoge_bg">
  299. <div class="dialoge_main_div">
  300. <h3 class="h3">已充值成功</h3>
  301. <div class="dialoge_main">
  302. <img class="suc_ico" src="{:asset('/img/frontend/recharge/pic-delayed.png')}">
  303. <p class="suc_p1">书币到账可能存在短暂延迟,<br>请稍后刷新继续阅读!</p>
  304. <a class="suc_btn_look" style="background:#FFB473;" href="javascript:;">去看书</a>
  305. </div>
  306. <a class="suc_close" href="javascript:;"><img src="{:asset('/img/frontend/recharge/close.png')}"></a>
  307. </div>
  308. </div>
  309. <div class="js_loading"><strong>正在加载</strong></div>
  310. <div class="a_pop_up" {notempty name="$isend"}style="display:block;"{/notempty}>
  311. <div class="a_pop_up_box">
  312. <strong>活动已结束</strong>
  313. <span>敬请期待下次活动</span>
  314. <a href="{$recent_url}">去看书</a>
  315. </div>
  316. <div class="a_pop_jgb"></div>
  317. </div>
  318. {/block}
  319. {block name="js"}
  320. <script>
  321. </script>
  322. <script type="text/javascript" src="{:asset('/js/frontend/recharge/pay.js')}"></script>
  323. {/block}