index.blade.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. @extends('layouts.admin.app')
  2. @section('crumbs')
  3. <ol class="breadcrumb crumbs">
  4. <li><a href="{{ route('admin.index') }}#">后台导航</a></li>
  5. <li class="active">系统配置</li>
  6. </ol>
  7. @endsection
  8. @section('content')
  9. <div id="configs">
  10. <el-form action="{{ route('admin.config.update') }}" method="post" id="configs-edit">
  11. <h4>价格设置</h4>
  12. <ui-input-float-number label="代币价格:" :min="0" :precision="6" value="{{ $configs->get('exchange_money','') }}" name="exchange_money" max="999999" tips="1BNB兑换代币数量"></ui-input-float-number>
  13. <h4>分发设置</h4>
  14. <ui-radio label="系统转账" :params="params" tips="开启后合约清分至对应的系统地址"></ui-radio>
  15. <h4>分红设置</h4>
  16. <ui-input-float-number label="默认分红比例:" :min="0" :precision="6" value="{{ $configs->get('receive_mix','') }}" name="receive_mix" max="999999" tips="默认分红比例"></ui-input-float-number>
  17. <ui-input-float-number label="大团队合约数量:" :min="0" :precision="6" value="{{ $configs->get('receive_user_max','') }}" name="receive_user_max" max="999999" tips="获取高分红团队合约数量"></ui-input-float-number>
  18. <ui-input-float-number label="高分红比例:" :min="0" :precision="6" value="{{ $configs->get('receive_max','') }}" name="receive_max" max="999999" tips="高分红比例"></ui-input-float-number>
  19. <ui-input-float-number label="最低分红等级:" :min="0" :precision="6" value="{{ $configs->get('receive_level_id','') }}" name="receive_level_id" max="999999" tips="最低分红等级"></ui-input-float-number>
  20. <ui-select label="最低分红等级:" value="{{$configs->get('receive_level_id','').''}}" id="level" name="receive_level_id" placeholder="" :options="levelList" :free="true"></ui-select>
  21. <ui-input-text label="分红收款地址:" value="{{ $configs->get('receive_address','') }}" name="receive_address" tips="系统分红金额收款地址"></ui-input-text>
  22. <h4>公排设置</h4>
  23. <ui-input-text label="公排收款地址:" value="{{ $configs->get('common_address','') }}" name="common_address" tips="系统公排金额收款地址"></ui-input-text>
  24. <ui-input-float-number label="公排合约数量:" :min="0" :precision="6" value="{{ $configs->get('common_num','') }}" name="common_num" max="999999" tips="公排合约数量"></ui-input-float-number>
  25. <ui-input-float-number label="出局BNB数量:" :min="0" :precision="6" value="{{ $configs->get('common_bnb','') }}" name="common_bnb" max="999999" tips="出局BNB数量"></ui-input-float-number>
  26. <ui-input-float-number label="出局代币比例:" :min="0" :precision="6" value="{{ $configs->get('common_db','') }}" name="common_db" max="999999" tips="出局时多少BNB转换代币"></ui-input-float-number>
  27. <h4>沉淀设置</h4>
  28. <ui-input-text label="沉淀收款地址:" value="{{ $configs->get('sediment_address','') }}" name="sediment_address" tips="系统沉淀金额收款地址"></ui-input-text>
  29. {{ csrf_field() }}
  30. <ui-submit></ui-submit>
  31. </el-form>
  32. </div>
  33. @endsection
  34. @section('scripts')
  35. <script type="application/javascript">
  36. $(function () {
  37. // 注意:Vue组件一定放在jQuery.validator前面验证
  38. new Vue({
  39. el: '#configs',
  40. data :function () {
  41. return {
  42. levelList:{!! $levelList !!},
  43. params: {
  44. // 注意:group和attr连个属性都不能省略 就算为空
  45. group: {},
  46. attr: {
  47. name: 'open_sys', // 当前checkbox框的name属性 【必填】
  48. radioCheck:{{$configs->get('open_sys',0)}}, // 当前选中项 int | string 【必填】
  49. label: 'el-radio-button', // 当前样式 默认 el-radio 样式 【非必填】
  50. radios: [ // 每个checkbox 就是一个json对象 【必填】
  51. {
  52. value:0, // 当前选中时值也就是value属性的值 【必填】
  53. label: '关闭', // 当前提示文字 【必填】
  54. disable: false // 是否禁止点击 默认:false 不禁止
  55. },
  56. {
  57. value:1, // 当前选中时值也就是value属性的值 【必填】
  58. label: '开启', // 当前提示文字 【必填】
  59. disable: false // 是否禁止点击 默认:false 不禁止
  60. }
  61. ]
  62. }
  63. }
  64. };
  65. },
  66. methods: {}
  67. });
  68. // 编辑保存变量
  69. window.formDatum = $('form').serialize();
  70. });
  71. </script>
  72. @component('layouts.admin.admin_component')@endcomponent
  73. @endsection