pd_cash.html 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. {extend name="default/base/base_member" /}
  2. {block name="member_main"}
  3. <div class="dsm-default-form">
  4. <form method="post" id="cash_form" action="{:url('Predeposit/pd_cash_add')}">
  5. <dl>
  6. <dt><i class="required">*</i>{$Think.lang.withdrawal_amount}:</dt>
  7. <dd><input name="pdc_amount" type="text" class="text w50" id="pdc_amount" maxlength="10" ><em class="add-on">
  8. <i class="iconfont">&#xe65c;</i></em> ({$Think.lang.current_available_amount}:<strong class="orange">{:floatval($member_info.available_predeposit)}</strong>&nbsp;&nbsp;{$Think.lang.ds_yuan})<span></span>
  9. <p class="hint mt5">{$Think.lang.predeposit_withdraw_cycle}{$Think.config.ds_config.member_withdraw_cycle}{$Think.lang.day},{$Think.lang.predeposit_withdraw_min}{$Think.config.ds_config.member_withdraw_min}{$Think.lang.ds_yuan},{$Think.lang.predeposit_withdraw_max}{$Think.config.ds_config.member_withdraw_max}{$Think.lang.ds_yuan}</p>
  10. </dd>
  11. </dl>
  12. <dl>
  13. <dt><i class="required">*</i>{$Think.lang.collection_bank}:</dt>
  14. <dd>
  15. <select name="memberbank_id">
  16. {foreach name="memberbank_list" item="memberbank"}
  17. <option value="{$memberbank.memberbank_id}" >
  18. {if $memberbank.memberbank_type eq 'alipay'}
  19. {$Think.lang.pay_method_alipay}
  20. {elseif $memberbank.memberbank_type eq 'weixin'}
  21. {$Think.lang.pay_method_wechat}
  22. {else/}
  23. {$memberbank.memberbank_name}
  24. {/if}
  25. {$memberbank.memberbank_no}
  26. </option>
  27. {/foreach}
  28. </select>
  29. <p class="hint mt5"><a href="{:url('Memberbank/index')}" target="_blank">管理提现账户</a></p>
  30. </dd>
  31. </dl>
  32. <dl>
  33. <dt><i class="required">*</i>{$Think.lang.payment_password}:</dt>
  34. <dd><input name="password" type="password" autocomplete="new-password" class="text w100" id="password" maxlength="20"/><span></span>
  35. <p class="hint">
  36. {if !$member_info.member_paypwd}
  37. <strong class="red">{$Think.lang.withdrawal_information3}</strong><a href="{:url('Membersecurity/auth',['type'=>'modify_paypwd'])}" class="dsm-btn-mini dsm-btn-acidblue vm ml10" target="_blank">{$Think.lang.immediately_set}</a>
  38. {/if}
  39. </p>
  40. </dd>
  41. </dl>
  42. <dl class="bottom"><dt>&nbsp;</dt>
  43. <dd>
  44. <input type="submit" class="submit" value="{$Think.lang.confirm_withdrawal}" />
  45. <a class="dsm-btn ml10" href="javascript:history.go(-1);">{$Think.lang.cancel_return}</a>
  46. </dd>
  47. </dl>
  48. </form>
  49. </div>
  50. <script type="text/javascript">
  51. $(function () {
  52. $('#cash_form').validate({
  53. submitHandler: function (form) {
  54. ds_ajaxpost('cash_form', 'url', "{:url('Predeposit/pd_cash_list')}")
  55. },
  56. errorPlacement: function (error, element) {
  57. var error_td = element.parent('dd').children('span');
  58. error_td.append(error);
  59. },
  60. rules: {
  61. pdc_amount: {
  62. required: true,
  63. number: true,
  64. min: 0.01,
  65. max: {$member_info.available_predeposit}
  66. },
  67. password: {
  68. required: true
  69. }
  70. },
  71. messages: {
  72. pdc_amount: {
  73. required: '<i class="iconfont">&#xe64c;</i>{$Think.lang.enter_withdrawal_amount_correctly}',
  74. number: '<i class="iconfont">&#xe64c;</i>{$Think.lang.enter_withdrawal_amount_correctly}',
  75. min: '<i class="iconfont">&#xe64c;</i>{$Think.lang.enter_withdrawal_amount_correctly}',
  76. max: '<i class="iconfont">&#xe64c;</i>{$Think.lang.enter_withdrawal_amount_correctly}'
  77. },
  78. password: {
  79. required: '<i class="iconfont">&#xe64c;</i>{$Think.lang.enter_payment_password}'
  80. }
  81. }
  82. });
  83. });
  84. </script>
  85. {/block}