Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

85 Zeilen
3.6 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>账户充值 - 用户中心 - {$kx.config.sitename}</title>
  6. <link rel="stylesheet" href="{$kx.config.resurl}/template/kxwebno1/css/global.css"/>
  7. <link rel="stylesheet" href="{$kx.config.resurl}/template/kxwebno1/css/style.css"/>
  8. </head>
  9. <body>
  10. <!-- 头部 -->
  11. {include file="/system/header"}
  12. <!-- 内容 -->
  13. <div class="pt-content">
  14. <!-- 面包屑 -->
  15. <div class="pt-crumb">
  16. <img src="{$kx.config.resurl}/template/kxwebno1/images/crumb_icon.png" class="pt-crumb-icon">
  17. <span class="color5">
  18. <a href="{$kx.config.siteurl}">{$kx.config.sitename}</a> > <a href="{link=user.index.index}" class="color5">用户中心</a> > <a href="{link=user.pay.recharge}">账户充值</a>
  19. </span>
  20. </div>
  21. <!-- 一楼 -->
  22. <div class="pt-floor1 bg-white pt-recharge" style="padding: 50px;">
  23. <label>账号</label>
  24. <div class="pb30 pt10">
  25. <img class="avatar" src="{$userinfo.avatar}" alt="{$userinfo.name}">
  26. <span class="size16 color32 bold">{$userinfo.name}</span>
  27. </div>
  28. <label>充值方式</label>
  29. <div class="pt20 pt-recharge-platform">
  30. <ul>
  31. <li class="size16 text-center lh50 color32 pt-active" data-platform="1">
  32. <img src="{$kx.config.resurl}/template/kxwebno1/images/alipay.png" alt="支付宝"> 支付宝
  33. </li>
  34. <li class="size16 text-center lh50 color32 ml10" data-platform="2">
  35. <img src="{$kx.config.resurl}/template/kxwebno1/images/wx.png" alt="微信"> 微信
  36. </li>
  37. </ul>
  38. </div>
  39. <label>充值金额</label>
  40. <ul class="pt-recharge-list mt20">
  41. {section loop=$kx.config.recharge.list item=$loop}
  42. <li data-price="{$loop}">
  43. &yen;<span class="size24 color32">{$loop}</span>
  44. <span>({=$loop * $kx.config.recharge.ratio}{$kx.config.user.money_caption})</span>
  45. </li>
  46. {/section}
  47. </ul>
  48. <button class="color1 pay">立即支付</button>
  49. <div class="mt30">
  50. <input type="checkbox" checked="checked" id="read_and_agree">
  51. <label for="read_and_agree" class="color3">我已阅读同意 <a href="" class="color2">《付款协议》</a></label>
  52. </div>
  53. </div>
  54. </div>
  55. <!-- 底部版权-->
  56. {include file="/system/footer"}
  57. <!-- js-->
  58. <script>
  59. $('.pt-recharge li').click(function () {
  60. $(this).siblings().removeClass('pt-active');
  61. $(this).addClass('pt-active');
  62. if ($(this).parent().hasClass('pt-recharge-list')) {
  63. $('.pay').html('立即支付 &yen;' + $(this).data('price'));
  64. }
  65. if ($('.pt-recharge-platform li.pt-active').length && $('.pt-recharge-list li.pt-active').length) {
  66. $('.pay').addClass('bg-red');
  67. } else {
  68. $('.pay').removeClass('bg-red');
  69. }
  70. });
  71. $('.pay').click(function () {
  72. if(!$('#read_and_agree').prop('checked')){
  73. return alert('请先阅读并同意协议');
  74. }
  75. var platform = $('.pt-recharge-platform li.pt-active'), price = $('.pt-recharge-list li.pt-active');
  76. if (platform.length === 1 && price.length === 1) {
  77. window.location.href = '{link=user.pay.unifiedOrder method=2 type=1}&type_info=' + price.data('price') + '&platform=' + platform.data('platform')
  78. }
  79. });
  80. </script>
  81. </body>
  82. </html>