predeposit_pay.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {include file="default/base/mall_top" /}
  2. <style>
  3. .w1200{width:1000px;}
  4. </style>
  5. <link rel="stylesheet" href="{$Think.HOME_SITE_ROOT}/css/home_cart.css">
  6. <script src="{$Think.PLUGINS_SITE_ROOT}/mlselection.js"></script>
  7. <div class="dsc-header">
  8. <div class="logo">
  9. <a href="{$Think.HOME_SITE_URL}"><img src="{:ds_get_pic(ATTACH_COMMON,$Think.config.ds_config.site_logo)}"/></a>
  10. </div>
  11. <ul class="dsc-flow">
  12. <li class=""><i class="iconfont">&#xe69a;</i>
  13. <p>{$Think.lang.cart_index_ensure_order}</p>
  14. <sub></sub>
  15. <div class="hr"></div>
  16. </li>
  17. <li class="current"><i class="iconfont">&#xe731;</i>
  18. <p>{$Think.lang.cart_index_ensure_info}</p>
  19. <sub></sub>
  20. <div class="hr"></div>
  21. </li>
  22. <li class=""><i class="iconfont">&#xe64f;</i>
  23. <p>{$Think.lang.cart_index_payment}</p>
  24. <sub></sub>
  25. <div class="hr"></div>
  26. </li>
  27. <li class=""><i class="iconfont">&#xe67e;</i>
  28. <p>{$Think.lang.cart_index_buy_finish}</p>
  29. <sub></sub>
  30. <div class="hr"></div>
  31. </li>
  32. </ul>
  33. </div>
  34. <div class="dsc-line"></div>
  35. <div class="dsc-main">
  36. <div class="dsc-title">
  37. <h3>{$Think.lang.cart_index_payment}</h3>
  38. <h5>{$Think.lang.recharge_record_through}<a href="{:url('Predeposit/index')}" target="_blank">{$Think.lang.my_recharge_list} </a>{$Think.lang.view_order_details}</h5>
  39. </div>
  40. <form action="{:url('Payment/pd_order')}" method="POST" id="buy_form">
  41. <input type="hidden" name="pdr_sn" value="{$pdr_info.pdr_sn}">
  42. <input type="hidden" id="payment_code" name="payment_code" value="">
  43. <div class="dsc-receipt-info">
  44. <div>{$Think.lang.prepaid_phone_number} : {$pdr_info.pdr_sn}</div>
  45. <div class="dsc-receipt-info-title">
  46. <h3>{$Think.lang.immediate_online_payment}
  47. {$Think.lang.recharge_amount}:<strong>¥{$pdr_info.pdr_amount}</strong> </h3>
  48. </div>
  49. </div>
  50. <div class="dsc-receipt-info">
  51. {notempty name="payment_list"}
  52. <div class="dsc-receipt-info-title">
  53. <h3>{$Think.lang.payment_option}</h3>
  54. </div>
  55. <ul class="dsc-payment-list">
  56. {foreach name="payment_list" item="val"}
  57. {if $val.payment_code=='allinpay'}
  58. {php}$sub_payment_list=array('W01','A01','Q01','U01');{/php}
  59. <input type="hidden" id="{$val.payment_code}_sub_payment_code" name="paytype" value="">
  60. {else}
  61. {php}$sub_payment_list=array('');{/php}
  62. {/if}
  63. {foreach name="sub_payment_list" item="sub"}
  64. <li payment_code="{$val.payment_code}" sub_payment_code="{$sub}">
  65. <label for="pay_{$val.payment_code}">
  66. <i></i>
  67. <div class="logo" for="pay_{$val.payment_code}"> <img src="{$Think.HOME_SITE_ROOT}/images/payment/{$val.payment_code}{notempty name='sub'}_{$sub}{/notempty}_logo.gif" /> </div>
  68. <div class="predeposit" ds_type="predeposit" style="display:none">
  69. {if $val.payment_code == 'predeposit'}
  70. {if $available_predeposit}
  71. <p>{$Think.lang.current_prepaid_balance}<br/>¥{$available_predeposit}<br/>{$Think.lang.insufficient_pay_order}<br/><a href="{:url('Predeposit/index')}">{$Think.lang.recharge_immediately}</a></p>
  72. {else /}
  73. <input type="password" class="text w120" name="password" maxlength="40" id="password" value="">
  74. <p>{$Think.lang.enter_login_password}</p>
  75. {/if}
  76. {/if}
  77. </div>
  78. </label>
  79. </li>
  80. {/foreach}
  81. {/foreach}
  82. </ul>
  83. {/notempty}
  84. </div>
  85. <div class="dsc-bottom tc mb50">
  86. <a href="javascript:void(0);" id="next_button" class="dsc-btn dsc-btn-green"><i class="iconfont">&#xe6f0;</i>{$Think.lang.confirm_submit_payment}</a>
  87. </div>
  88. </form>
  89. </div>
  90. <script type="text/javascript">
  91. $(function(){
  92. $('.dsc-payment-list > li').on('click',function(){
  93. $('.dsc-payment-list > li').removeClass('using');
  94. $(this).addClass('using');
  95. $('#payment_code').val($(this).attr('payment_code'));
  96. if($(this).attr('sub_payment_code')!=''){
  97. $('#'+$(this).attr('payment_code')+'_sub_payment_code').val($(this).attr('sub_payment_code'));
  98. }
  99. });
  100. $('#next_button').on('click',function(){
  101. if ($('#payment_code').val() != '') {
  102. $('#buy_form').submit();
  103. }
  104. });
  105. });
  106. </script>
  107. {include file="default/base/mall_footer" /}