withdraw-set.blade.php 2.8 KB

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