12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <div style="margin-top: 10px;" id="memberBoths-app">
- <div style="text-align: center;margin-top: 5px;margin-bottom: 10px;font-size: 20px;">
- 新增 - MemberBoth
- </div>
- <el-form action="{{route('admin.memberBoth.save')}}" method="post" id="form-create">
- <!-- image -->
- <ui-file label="图片(686*128)" size="0.5" name="image" :data="{uploadName:'memberBoths'}" tips="图片建议(686*128)"></ui-file>
- <!-- link -->
- {{-- <ui-input-text label="memberBoth链接" name="link" placeholder="memberBoth跳转链接" maxlength="255" tips="请输入有效的链接" autofocus="true"></ui-input-text>--}}
- <!-- show -->
- <ui-radio label="是否开启" :params="params" tips="控制前台是否显示"></ui-radio>
- <!-- sort -->
- <ui-input-number label="排序" checked="checked" value="50" name="sort" min="1" max="100" tips="控制前台显示顺序"></ui-input-number>
- <ui-submit></ui-submit>
- </el-form>
- </div>
- <script type="application/javascript">
- $(function () {
-
- new Vue({
- el: '#memberBoths-app',
- data :function () {
- return {
- params: {
-
- group: {},
- attr: {
- name: 'status',
- radioCheck:1,
- label: 'el-radio-button',
- radios: [
- {
- value:0,
- label: '关闭',
- disable: false
- },
- {
- value:1,
- label: '开启',
- disable: false
- }
- ]
- }
- }
- };
- }
- });
- jQuery.validator.setDefaults({
- debug: false,
- success: "success",
- errorElement: 'div'
- });
-
- window.form = $('#form-create').validate({
- rules: {
- image: {
- required: true,
- maxlength: 255,
- normalizer: function ( value ) {
- return $.trim(value);
- }
- },
-
-
-
-
-
-
-
-
- show: {
- required: true
- },
- sort: {
- required: true,
- normalizer: function ( value ) {
- return $.trim(value);
- }
- }
- }
- });
- });
- </script>
- @include('layouts.admin.form_script')
|