mitao
2024-07-08 022a7ff7abf82cd2546e18071ade5228b4e2339f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="formId">
            <input type="hidden" id="id" name="id" value="${item.id}">
            <div class="row">
                <div class="col-sm-10">
                    <#input id="classifyName" name="分类名称" value="${item.classifyName}" required="true"/>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">状态</label>
                        <div class="col-sm-9">
                            <select class="form-control" id="isLock" name="isLock">
                                <option value="0" ${item.isLock==0?'selected="selected"':''}>正常</option>
                                <option value="1" ${item.isLock==1?'selected="selected"':''}>隐藏</option>
                            </select>
                        </div>
                    </div>
                    <!--上传图片标签-begin -->
                    <div class="form-group">
                        <label class="col-sm-3 control-label">分类图片</label>
                        <div class="col-sm-6">
                            <div id="classImagePreId">
                                <img id="classImageView" style="max-height:150px;">
                                <script type="text/javascript">
                                    $("#classImageView").attr("src", Feng.getImageUrlFormat('${item.classImage!}'));
                                </script>
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <div class="head-scu-btn upload-btn" id="classImageBtnId">
                                <i class="fa fa-upload"></i>&nbsp;上传
                            </div>
                        </div>
                        <input type="hidden" id="classImage" value="${item.classImage!}"/>
                    </div>
                    <!--上传图片标签-end -->
                </div>
            </div>
 
            <div class="row btn-group-m-t">
                <div class="col-sm-10 col-sm-offset-5">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="MallClassifyOneInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="MallClassifyOneInfoDlg.close()"/>
                </div>
            </div>
        </div>
 
    </div>
</div>
<script src="${ctxPath}/static/modular/mall/mallClassifyOne/mallClassifyOne_info.js"></script>
<!-- 上传图片 -->
<script src="${ctxPath}/static/js/common/web-upload-file.js"></script>
<script type="text/javascript">
    // 初始化图片上传
    new $WebUploadImage("classImage").init();
</script>
@}