1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
- <div class="layui-card-body padding-left-40">
- <div class="layui-form-item">
- <label class="relative block">
- <span class="color-green font-w7">众筹标题</span>
- <input name="title" autocomplete="off" value="{$vo.title|default=''}" class="layui-input" type="text" >
- </label>
- </div>
- <div class="layui-form-item">
- <label class="relative block">
- <span class="color-green font-w7">众筹单价</span>
- <input name="price" autocomplete="off" value="{$vo.price|default='0'}" class="layui-input" type="number">
- </label>
- </div>
- <div class="layui-form-item">
- <label class="relative block">
- <span class="color-green font-w7">众筹份数</span>
- <input name="number" autocomplete="off" value="{$vo.number|default=1}" class="layui-input" type="number">
- </label>
- </div>
- <div class="layui-form-item">
- <label class="relative block">
- <span class="color-green font-w7">众筹时间</span>
- <input name="time" autocomplete="off" value="{$vo.time|default=''}" class="layui-input" type="text">
- </label>
- </div>
- <div class="layui-form-item">
- <span class="color-green label-required-prev">众筹LOGO及轮播展示图片</span>
- <table class="layui-table">
- <thead>
- <tr>
- <th class="text-center">LOGO</th>
- <th class="text-left">展示图片</th>
- </tr>
- <tr>
- <td width="90px" class="text-center"><input name="logo" type="hidden" value="{$vo.logo|default=''}"></td>
- <td width="auto" class="text-left"><input name="image" type="hidden" value="{$vo.image|default=''}"></td>
- </tr>
- </thead>
- </table>
- <script>$('[name="logo"]').uploadOneImage(), $('[name="image"]').uploadMultipleImage()</script>
- </div>
- <div class="layui-form-item block">
- <span class="label-required-prev color-green">众筹详细内容</span>
- <textarea name="content">{$vo.content|default=''|raw}</textarea>
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
- <div class="layui-form-item text-center">
- <button class="layui-btn" type='submit'>保存数据</button>
- <!-- <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>-->
- </div>
- </form>
- <script>
- window.form.render();
- require(['ckeditor', 'angular'], function () {
- window.createEditor('[name="content"]', {height: 500});
- })
- </script>
|