1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <form method="post" action="{:url('combination2')}" class="form-horizontal">
- <input type="hidden" name="group_id" value="{$groupId}">
- <input type="hidden" name="dinner_type_id" value="{$typeId}">
- <input type="hidden" name="day" value="{$day}">
- <div id="module-box" style="display: block;">
- <div class="form-group">
- <label class="col-sm-2 control-label">组合菜品<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- {:widget_view('common/multiselect',['name'=>'items','lists' => $dinners, 'val' => [] ])}
- </div>
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <div class="col-sm-6 col-sm-offset-2">
- <button class="btn btn-primary ajax-post" data-layer="1" target-form="form-horizontal" type="submit">确 定</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script>
- $(document).ready(function(){
- formSetValue("enable", {$info.enable|default=1});
- formSetValue("type", {$info.type|default=0});
- formSetValue("auth", {$info.auth|default=0});
- formSetValue("ucenter", {$info.ucenter|default=0});
- changeAuth();
- });
- function changeAuth(){
- let auth = $('#auth').val();
- console.log('auth',auth);
- // if(auth == 0){
- // $('#module-box').show();
- // }else{
- // $('#module-box').hide();
- // }
- }
- </script>
- {/block}
|