withdraw-set.blade.php 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <div class='panel panel-default'>
  2. <div class="form-group">
  3. <label class="col-xs-12 col-sm-3 col-md-2 control-label">提现额度</label>
  4. <div class="col-sm-9 col-xs-12">
  5. <input type="text" name="withdraw[commission][roll_out_limit]" class="form-control"
  6. value="{{$set['roll_out_limit']}}"/>
  7. <span class="help-block">当前分销商的佣金达到此额度时才能提现</span>
  8. </div>
  9. </div>
  10. <div class="form-group">
  11. <label class="col-xs-12 col-sm-3 col-md-2 control-label">提现手续费</label>
  12. <div class="col-sm-9 col-xs-12">
  13. <div class="switch">
  14. <label class='radio-inline'>
  15. <input type='radio' name='withdraw[commission][poundage_type]' value='1'
  16. @if($set['poundage_type'] == 1) checked @endif />
  17. 固定金额
  18. </label>
  19. <label class='radio-inline'>
  20. <input type='radio' name='withdraw[commission][poundage_type]' value='0'
  21. @if(empty($set['poundage_type'])) checked @endif />
  22. 手续费比例
  23. </label>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="form-group">
  28. <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
  29. <div class="col-sm-9 col-xs-12">
  30. <div class="cost">
  31. <label class='radio-inline'>
  32. <div class="input-group">
  33. <div class="input-group-addon" id="commission_poundage_hint"
  34. style="width: 120px;">@if($set['poundage_type'] == 1) 固定金额 @else
  35. 手续费比例 @endif</div>
  36. <input type="text" name="withdraw[commission][poundage_rate]"
  37. class="form-control" value="{{ $set['poundage_rate'] ?? '' }}"
  38. placeholder="请输入提现手续费计算值"/>
  39. <div class="input-group-addon" id="commission_poundage_unit">@if($set['poundage_type'] == 1) 元 @else
  40. % @endif</div>
  41. </div>
  42. </label>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="col-xs-12 col-sm-3 col-md-2 control-label">最高提现额度</label>
  48. <div class="col-sm-9 col-xs-12">
  49. <input type="text" name="withdraw[commission][max_roll_out_limit]" class="form-control"
  50. value="{{$set['max_roll_out_limit']}}"/>
  51. <span class="help-block">当前分销商的佣金每天最高提现此额度,超过则不能提现</span>
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="col-xs-12 col-sm-3 col-md-2 control-label">最高提现次数</label>
  56. <div class="col-sm-9 col-xs-12">
  57. <input type="text" name="withdraw[commission][max_time_out_limit]" class="form-control"
  58. value="{{$set['max_time_out_limit']}}"/>
  59. <span class="help-block">当前分销商的佣金每天最高提现次数,超过则不能提现</span>
  60. </div>
  61. </div>
  62. </div>
  63. <script language="javascript">
  64. $(function () {
  65. $(":radio[name='withdraw[commission][poundage_type]']").click(function () {
  66. if ($(this).val() == 1) {
  67. $("#commission_poundage_unit").html('元');
  68. $("#commission_poundage_hint").html('固定金额');
  69. }
  70. else {
  71. $("#commission_poundage_unit").html('%');
  72. $("#commission_poundage_hint").html('手续费比例')
  73. }
  74. });
  75. })
  76. </script>