beans.blade.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. <ue label="公益豆规则:" value="{{ $configs->get('beans','') }}" name="about_us" max="100" tips=""></ue>
  13. <hr>
  14. {{ csrf_field() }}
  15. <ui-submit></ui-submit>
  16. </el-form>
  17. </div>
  18. @endsection
  19. @section('scripts')
  20. <script type="application/javascript">
  21. $(function () {
  22. // 注意:Vue组件一定放在jQuery.validator前面验证
  23. new Vue({
  24. el: '#configs',
  25. data :function () {
  26. return {
  27. };
  28. },
  29. methods: {}
  30. });
  31. // 编辑保存变量
  32. window.formDatum = $('form').serialize();
  33. });
  34. </script>
  35. @component('layouts.admin.admin_component')@endcomponent
  36. @endsection