use_expense.blade.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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.ajax.use_expense') }}" method="post" id="configs-edit">
  11. <h4>消费金使用设置</h4>
  12. <ui-input-number label="消费金使用初始金额:" value="{{ $configs['initial_num'] }}" name="initial_num" max="999999999" tips="订单金额大于等于此金额才能使用消费金"></ui-input-number>
  13. <ui-input-number label="消费金使用初始数量:" value="{{ $configs['initial_money'] }}" name="initial_money" max="999999999" tips="消费金最初能使用的金额"></ui-input-number>
  14. <ui-input-number label="消费金叠加金额:" value="{{ $configs['increase_num'] }}" name="increase_num" max="999999999" tips="订单每叠加对应金额"></ui-input-number>
  15. <ui-input-number label="消费金叠加使用金额:" value="{{ $configs['increase_money'] }}" name="increase_money" max="999999999" tips="消费金叠加使用金额"></ui-input-number>
  16. {{ csrf_field() }}
  17. <ui-submit></ui-submit>
  18. </el-form>
  19. </div>
  20. @endsection
  21. @section('scripts')
  22. <script type="application/javascript">
  23. $(function () {
  24. // 注意:Vue组件一定放在jQuery.validator前面验证
  25. new Vue({
  26. el: '#configs',
  27. data :function () {
  28. return {
  29. };
  30. },
  31. methods: {}
  32. });
  33. // 编辑保存变量
  34. window.formDatum = $('form').serialize();
  35. });
  36. </script>
  37. @component('layouts.admin.admin_component')@endcomponent
  38. @endsection