|
@@ -43,13 +43,13 @@
|
|
|
<select name="first_classify" lay-filter ="first_classify">
|
|
|
<option value="0">请选择</option>
|
|
|
{if !empty($goods_cate)}
|
|
|
- {foreach $goods_cate as $ck=>$cv}
|
|
|
- {if !empty($vo.first_classify) && $vo.first_classify == $cv['id'] }
|
|
|
- <option selected data-cl_key="{$ck}" value="{$cv['id']}">{$cv['title']}</option>
|
|
|
- {else}
|
|
|
- <option data-cl_key="{$ck}" value="{$cv['id']}">{$cv['title']}</option>
|
|
|
- {/if}
|
|
|
- {/foreach}
|
|
|
+ {foreach $goods_cate as $ck=>$cv}
|
|
|
+ {if !empty($vo.first_classify) && $vo.first_classify == $cv['id'] }
|
|
|
+ <option selected data-cl_key="{$ck}" value="{$cv['id']}">{$cv['title']}</option>
|
|
|
+ {else}
|
|
|
+ <option data-cl_key="{$ck}" value="{$cv['id']}">{$cv['title']}</option>
|
|
|
+ {/if}
|
|
|
+ {/foreach}
|
|
|
{/if}
|
|
|
</select>
|
|
|
</div>
|
|
@@ -57,17 +57,17 @@
|
|
|
<select name="second_classify" lay-filter ="second_classify">
|
|
|
<option value="0">请选择</option>
|
|
|
{if !empty($goods_cate)}
|
|
|
- {foreach $goods_cate as $ck=>$cv}
|
|
|
- {if !empty($vo.first_classify) && $vo.first_classify == $cv['id'] }
|
|
|
- {foreach $cv['children'] as $cln}
|
|
|
- {if $vo.second_classify == $cln['id'] }
|
|
|
- <option selected value="{$cln['id']}">{$cln['title']}</option>
|
|
|
- {else}
|
|
|
- <option value="{$cln['id']}">{$cln['title']}</option>
|
|
|
- {/if}
|
|
|
- {/foreach}
|
|
|
- {/if}
|
|
|
- {/foreach}
|
|
|
+ {foreach $goods_cate as $ck=>$cv}
|
|
|
+ {if !empty($vo.first_classify) && $vo.first_classify == $cv['id'] }
|
|
|
+ {foreach $cv['children'] as $cln}
|
|
|
+ {if $vo.second_classify == $cln['id'] }
|
|
|
+ <option selected value="{$cln['id']}">{$cln['title']}</option>
|
|
|
+ {else}
|
|
|
+ <option value="{$cln['id']}">{$cln['title']}</option>
|
|
|
+ {/if}
|
|
|
+ {/foreach}
|
|
|
+ {/if}
|
|
|
+ {/foreach}
|
|
|
{/if}
|
|
|
</select>
|
|
|
</div>
|
|
@@ -79,11 +79,11 @@
|
|
|
<div class="layui-input-inline">
|
|
|
<select class="layui-select" name="level">
|
|
|
{foreach $lev_set as $k=>$v}
|
|
|
- {if isset($vo.level) && $vo.level eq $k}
|
|
|
- <option selected value="{$k}">{$v}</option>
|
|
|
- {else}
|
|
|
- <option value="{$k}">{$v}</option>
|
|
|
- {/if}
|
|
|
+ {if isset($vo.level) && $vo.level eq $k}
|
|
|
+ <option selected value="{$k}">{$v}</option>
|
|
|
+ {else}
|
|
|
+ <option value="{$k}">{$v}</option>
|
|
|
+ {/if}
|
|
|
{/foreach}
|
|
|
</select>
|
|
|
</div>
|
|
@@ -180,8 +180,8 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="layui-form-item freight_mud" {if !isset($vo.freight_type) || !$vo.freight_type}style="display:none"{/if}>
|
|
|
- <label class="layui-form-label">运费模板</label>
|
|
|
- <div class="layui-input-inline">
|
|
|
+ <label class="layui-form-label">运费模板</label>
|
|
|
+ <div class="layui-input-inline">
|
|
|
<select name="freight_id" lay-filter ="freight_id">
|
|
|
<option value="0">请选择</option>
|
|
|
{if !empty($all_temp)}
|
|
@@ -195,34 +195,31 @@
|
|
|
{/if}
|
|
|
</select>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
|
|
|
|
|
|
<div class="layui-form-item postage" {if isset($vo.freight_type) && $vo.freight_type}style="display:none"{/if}>
|
|
|
- <label class="layui-form-label">运费金额</label>
|
|
|
- <div class="layui-input-inline">
|
|
|
- <input type="number" step="1" min="0" name="postage" value="{$vo.postage|default=''}" class="layui-input">
|
|
|
- </div>
|
|
|
- <div class="layui-form-mid layui-word-aux">不填(或0)表示包邮</div>
|
|
|
+ <label class="layui-form-label">运费金额</label>
|
|
|
+ <div class="layui-input-inline">
|
|
|
+ <input type="number" step="1" min="0" name="postage" value="{$vo.postage|default=''}" class="layui-input">
|
|
|
</div>
|
|
|
+ <div class="layui-form-mid layui-word-aux">不填(或0)表示包邮</div>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="layui-form-item" >
|
|
|
- <label class="layui-form-label">详情</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <textarea name="detail">{$vo.detail|default=""}</textarea>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
|
|
|
- <div class="layui-form-item text-center">
|
|
|
- <span class="layui-btn" type='submit' id ="submit">保 存</span>
|
|
|
- <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定取消编辑吗?" data-close>取消编辑</button>
|
|
|
- </div>
|
|
|
+ <div class="layui-form-item" >
|
|
|
+ <label class="layui-form-label">详情</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <textarea name="detail">{$vo.detail|default=""}</textarea>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
+ {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
|
|
|
+ <div class="layui-form-item text-center">
|
|
|
+ <span class="layui-btn" type='submit' id ="submit">保 存</span>
|
|
|
+ <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定取消编辑吗?" data-close>取消编辑</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</form>
|
|
|
</div>
|
|
|
<script src="/static/plugs/layui/layui.all.js" charset="utf-8"></script>
|