expand.blade.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', trans('分销基础设置'))
  4. <section class="content">
  5. <form id="setform" action="" method="post" class="form-horizontal form">
  6. <div class="right-titpos">
  7. <ul class="add-snav">
  8. <li class="active"><a href="#">分销设置</a></li>
  9. </ul>
  10. </div>
  11. @include('Yunshop\Commission::admin.tabs')
  12. <div class='panel panel-default'>
  13. <div class='panel-body'>
  14. <div class="form-group">
  15. <label class="col-xs-12 col-sm-3 col-md-2 control-label">定制版设置</label>
  16. <div class="col-sm-9 col-xs-12">
  17. <label class="radio-inline">
  18. <input type="radio" name="setdata[is_expand]" value="0"
  19. @if($set['is_expand'] == 0)
  20. checked="checked" @endif />
  21. 关闭</label>
  22. <label class="radio-inline">
  23. <input type="radio" name="setdata[is_expand]" value="1"
  24. @if($set['is_expand'] == 1)
  25. checked="checked" @endif />
  26. 开启</label>
  27. <span class='help-block' style="color: red">开启定制版设置后,所有分红走定制版,不会再走之前分销设置,请谨慎启用</span>
  28. </div>
  29. </div>
  30. </div>
  31. <div class="form-group"></div>
  32. <div class="form-group">
  33. <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
  34. <div class="col-sm-9">
  35. <input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1"
  36. onclick='return formcheck()'/>
  37. </div>
  38. </div>
  39. </div>
  40. </form>
  41. </section><!-- /.content -->
  42. @endsection
  43. <script type="text/javascript" src="./resource/js/lib/jquery-ui-1.10.3.min.js"></script>
  44. {{--<script language='javascript'>--}}
  45. {{--window.onload=function(){--}}
  46. {{--var option=$("#commission_level option:selected").val();--}}
  47. {{--if (option < 3) {--}}
  48. {{--$("#goods_detail_level3").hide();--}}
  49. {{--}--}}
  50. {{--if (option < 2) {--}}
  51. {{--$("#goods_detail_level2").hide();--}}
  52. {{--}--}}
  53. {{--if (option < 1) {--}}
  54. {{--$("#goods_detail_level1").hide();--}}
  55. {{--}--}}
  56. {{--}--}}
  57. {{--require(['select2'], function () {--}}
  58. {{--$('.diy-notice').select2();--}}
  59. {{--})--}}
  60. {{--function dataIdentical(){--}}
  61. {{--$.get("{!! yzWebUrl('plugin.commission.admin.data-identical.index') !!}", function(data) {--}}
  62. {{--alert(data);--}}
  63. {{--});--}}
  64. {{--}--}}
  65. {{--function commissionLevel(){--}}
  66. {{--var selectdIndex = $("#commission_level").get(0).selectedIndex;--}}
  67. {{--$("#goods_detail_level option").attr("selected", false);--}}
  68. {{--$("#goods_detail_level option").eq(selectdIndex).prop("selected", true);--}}
  69. {{--if (selectdIndex == 0) {--}}
  70. {{--$("#goods_detail_level1").show();--}}
  71. {{--$("#goods_detail_level2").hide();--}}
  72. {{--$("#goods_detail_level3").hide();--}}
  73. {{--}--}}
  74. {{--if (selectdIndex == 1) {--}}
  75. {{--$("#goods_detail_level1").show();--}}
  76. {{--$("#goods_detail_level2").show();--}}
  77. {{--$("#goods_detail_level3").hide();--}}
  78. {{--}--}}
  79. {{--if (selectdIndex == 2) {--}}
  80. {{--$("#goods_detail_level1").show();--}}
  81. {{--$("#goods_detail_level2").show();--}}
  82. {{--$("#goods_detail_level3").show();--}}
  83. {{--}--}}
  84. {{--//var goods_detail = $("#goods_detail_level option:selected").val();--}}
  85. {{--// alert(goods_detail);--}}
  86. {{--}--}}
  87. {{--function formcheck() {--}}
  88. {{--var numerictype = /^(0|[1-9]\d*)$/; //整数验证--}}
  89. {{--var reg = /^(([1-9]+)|([0-9]+\.[0-9]{1,2}))$/; //小数验证--}}
  90. {{--var nr = /^(0|[1-9][0-9]*)+(\.\d{1,2})?$/; // Yy 整数或小数--}}
  91. {{--var level = "{{$set['level']}}";--}}
  92. {{--if (level >= '1') {--}}
  93. {{--if (!nr.test($(':input[name="setdata[first_level]"]').val())) {--}}
  94. {{--Tip.focus(':input[name="setdata[first_level]"]', '只能是整数.');--}}
  95. {{--return false;--}}
  96. {{--}--}}
  97. {{--}--}}
  98. {{--if (level >= '2') {--}}
  99. {{--if (!nr.test($(':input[name="setdata[second_level]"]').val())) {--}}
  100. {{--Tip.focus(':input[name="setdata[second_level]"]', '只能是整数.');--}}
  101. {{--return false;--}}
  102. {{--}--}}
  103. {{--}--}}
  104. {{--if (level >= '3') {--}}
  105. {{--if (!nr.test($(':input[name="setdata[third_level]"]').val())) {--}}
  106. {{--Tip.focus(':input[name="setdata[third_level]"]', '只能是整数.');--}}
  107. {{--return false;--}}
  108. {{--}--}}
  109. {{--}--}}
  110. {{--if (!numerictype.test($(':input[name="setdata[settle_days]"]').val())) {--}}
  111. {{--Tip.focus(':input[name="setdata[settle_days]"]', '只能是整数.');--}}
  112. {{--return false;--}}
  113. {{--}--}}
  114. {{--}--}}
  115. {{--</script>--}}