withdraw-set.blade.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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[merchant][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[merchant][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[merchant][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="merchant_poundage_hint"
  34. style="width: 120px;">@if($set['poundage_type'] == 1) 固定金额 @else
  35. 手续费比例 @endif</div>
  36. <input type="text" name="withdraw[merchant][poundage_rate]"
  37. class="form-control" value="{{ $set['poundage_rate'] ?? '' }}"
  38. placeholder="请输入提现手续费计算值"/>
  39. <div class="input-group-addon" id="merchant_poundage_unit">@if($set['poundage_type'] == 1) 元 @else
  40. % @endif</div>
  41. </div>
  42. </label>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. <script language="javascript">
  48. $(function () {
  49. $(":radio[name='withdraw[merchant][poundage_type]']").click(function () {
  50. if ($(this).val() == 1) {
  51. $("#merchant_poundage_unit").html('元');
  52. $("#merchant_poundage_hint").html('固定金额');
  53. }
  54. else {
  55. $("#merchant_poundage_unit").html('%');
  56. $("#merchant_poundage_hint").html('手续费比例')
  57. }
  58. });
  59. })
  60. </script>