You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

104 lines
4.9 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8" name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
  5. <title>充值 - {$kx.config.sitename}</title>
  6. <link rel="stylesheet" href="{$kx.config.resurl}/template/kxmobileno1/css/global.css"/>
  7. <script src="{$kx.config.resurl}/template/kxmobileno1/js/flexible.min.js"></script>
  8. </head>
  9. <body>
  10. <div class="w100">
  11. <div class="w100 bg-white flex-wrp flex-align-center flex-between lh100 plr15 ptb15">
  12. <img src="{$kx.config.resurl}/template/kxmobileno1/images/return.png" class="pt-return">
  13. <div class="size18 bold color37">充值</div>
  14. <div>
  15. <img src="{$kx.config.resurl}/template/kxmobileno1/images/ellipsis.png" class="mr5 pt-ellipsis">
  16. </div>
  17. <div class="pt5 pb5 pt-tip">
  18. <a href="{link=index.index}" class="block color1 text-center pt-tip-item" title="{$kx.config.sitename}">前往首页</a>
  19. <a href="{link=novel.search.index}" class="block color1 text-center pt-tip-item">搜索小说</a>
  20. </div>
  21. </div>
  22. <div class="bg-white bold pl20 ptb20 mb10">
  23. <span>充值账号</span>
  24. <span class="fr color32 mr20">{$userinfo.name}</span>
  25. </div>
  26. <div class="bg-white mb10 pt-list pt-pay-platform">
  27. <div class="flex-wrp flex-align-center mb20" data-platform="2">
  28. <img src="{$kx.config.resurl}/template/kxmobileno1/images/wx.png" class="mr10" style="height: .22rem;width:.22rem">
  29. <span class="size14 lh100 color7">微信</span>
  30. </div>
  31. <div class="flex-wrp flex-align-center active" data-platform="1">
  32. <img src="{$kx.config.resurl}/template/kxmobileno1/images/alipay.png" class="mr10" style="height: .22rem;width:.22rem">
  33. <span class="size14 lh100 color7">支付宝</span>
  34. </div>
  35. </div>
  36. <div class="bg-white mb10 pt-list pt-pay-list">
  37. <div class="flex-wrp flex-align-center">
  38. <img src="{$kx.config.resurl}/template/kxmobileno1/images/wx.png" class="mr10" style="height: .22rem;width:.22rem">
  39. <span class="size14 lh100 color7">我的书架</span>
  40. </div>
  41. <ul style="padding: .1rem;">
  42. {section loop=$kx.config.recharge.list item=$loop}
  43. <li class="ptb10">
  44. <input type="radio" id="money_list_{$loop}" name="money_list" value="{$loop}">
  45. <label for="money_list_{$loop}">
  46. <span class="inline-block size20 color32 bold mr20" style="border-right: 1px solid #858585;width: 1rem">
  47. {=$loop * $kx.config.recharge.ratio}{$kx.config.user.money_caption}
  48. </span>
  49. &yen;<span>{$loop}</span>
  50. </label>
  51. </li>
  52. {/section}
  53. <li class="ptb10">
  54. <input type="radio" id="money_list_other" name="money_list" value="0">
  55. <label for="money_list_other">
  56. <span class="inline-block size20 color32 bold mr20" style="border-right: 1px solid #858585;width: 1rem">自定金额</span>
  57. <input type="number" id="money_other" placeholder="请输入自定义金额">
  58. </label>
  59. </li>
  60. </ul>
  61. </div>
  62. <div class="mb10 pt-list pt-pay-bottom">
  63. <button class="pt-login-btn color1" style="width:90vw;">立即支付</button>
  64. <div class="text-center color32 size14 mt10">
  65. <input type="checkbox" id="read_and_agree" checked="checked">
  66. <label for="read_and_agree">我同意<span class="color2">《用户服务协议》</span></label>
  67. </div>
  68. </div>
  69. </div>
  70. <!-- 底部版权 -->
  71. {include file="/system/footer"}
  72. <script>
  73. $('.pt-pay-platform .flex-align-center').click(function () {
  74. $('.pt-pay-list .flex-align-center img').attr('src', $(this).find('img').attr('src'));
  75. $('.pt-pay-list .flex-align-center span').text($(this).find('span').text());
  76. $('.pt-pay-list .flex-align-center').data('platform', $(this).data('platform'));
  77. $('.pt-pay-list').show();
  78. $('.pt-pay-bottom').show();
  79. $(this).parent().hide()
  80. });
  81. $('#money_other').click(function () {
  82. $('#money_list_other').prop('checked',true)
  83. }).change(function () {
  84. $('#money_list_other').val($(this).val());
  85. });
  86. $('#money_list_other').change(function () {
  87. $('#money_other').focus();
  88. });
  89. $('.pt-pay-bottom button').click(function () {
  90. if(!$('#read_and_agree').prop('checked')){
  91. return alert('请先阅读并同意协议');
  92. }
  93. var platform = $('.pt-pay-list .flex-align-center').data('platform'), price = parseFloat($('input[name=money_list]:checked').val());
  94. if (price > 0) {
  95. window.location.href = '{link=user.pay.unifiedOrder method=1 type=1}&type_info=' + price + '&platform=' + platform
  96. }
  97. });
  98. </script>
  99. </body>
  100. </html>