on_order_set.blade.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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.on_order_set') }}" method="post" id="configs-edit">
  11. <h4>平台服务费</h4>
  12. <ui-input-number label="平台服务费:" value="{{ $configs['server_num'] }}" name="server_num" mix="-10" max="100" tips="线上订单平台服务费(%)"></ui-input-number>
  13. <hr>
  14. <h4>消费金</h4>
  15. <ui-input-number label="消费金让利比列:" value="{{ $configs['expense_num'] }}" name="expense_num" mix="-1" max="100" tips="消费金让利比列(%)"></ui-input-number>
  16. <hr>
  17. <h4>商城订单分层设置</h4>
  18. <ui-input-number label="省级比列:" value="{{ $configs['province_num'] }}" name="province_num" mix="-10" max="100" tips="省级的佣金比列(%)"></ui-input-number>
  19. <ui-input-number label="市级比列:" value="{{ $configs['city_num'] }}" name="city_num" max="100" mix="-1" tips="市级的佣金比列(%)"></ui-input-number>
  20. <ui-input-number label="县级比列:" value="{{ $configs['area_num'] }}" name="area_num" max="100" mix="-1" tips="县级的佣金比列(%)"></ui-input-number>
  21. <ui-input-number label="分销商比列:" value="{{ $configs['sales_num'] }}" name="sales_num" mix="-1" max="100" tips="分销商的佣金比列(%)"></ui-input-number>
  22. <ui-input-number label="店铺比列:" value="{{ $configs['shop_num'] }}" name="shop_num" mix="-1" max="100" tips="店铺的佣金比列(%)"></ui-input-number>
  23. <ui-input-number label="用户比列:" value="{{ $configs['user_num'] }}" name="user_num" mix="-1" max="100" tips="用户的佣金比列(%)"></ui-input-number>
  24. {{ csrf_field() }}
  25. <ui-submit></ui-submit>
  26. </el-form>
  27. </div>
  28. @endsection
  29. @section('scripts')
  30. <script type="application/javascript">
  31. $(function () {
  32. // 注意:Vue组件一定放在jQuery.validator前面验证
  33. new Vue({
  34. el: '#configs',
  35. data :function () {
  36. return {
  37. };
  38. },
  39. methods: {}
  40. });
  41. // 编辑保存变量
  42. window.formDatum = $('form').serialize();
  43. });
  44. </script>
  45. @component('layouts.admin.admin_component')@endcomponent
  46. @endsection