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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">
 
            <input type="hidden" id="id" name="id" value="${item.id}"/>
 
            <div class="row">
                <div class="col-sm-6 b-r">
                    <#input id="title" name="banner名称" value="${item.title}" underline="true"/>
                    <!--<#input id="remark" name="备注说明" value="${item.remark}" underline="true"/>-->
                    <#input id="orderby" name="banner排序" value="${item.orderby}" underline="true"/>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">跳转类型</label>
                        <div class="col-sm-9">
                            <select class="form-control" id="urlType" name="urlType" onchange="switchDiv();">
                                <option value="0" ${item.urlType == 0 ? 'selected=selected' : ''}>不跳转</option>
                                <option value="1" ${item.urlType == 1 ? 'selected=selected' : ''}>内部页面</option>
                                <option value="2" ${item.urlType == 2 ? 'selected=selected' : ''}>普通商品</option>
                                <option value="2" ${item.urlType == 3 ? 'selected=selected' : ''}>套餐商品</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group" id="urlHtmlDiv">
                        <label class="col-sm-3 control-label">跳转路径</label>
                        <div class="col-sm-9">
                            <input class="form-control" id="urlHtml" name="urlHtml" type="text" value="${item.urlHtml}">
                        </div>
                    </div>
                </div>
 
                <div class="col-sm-6">
                    <div class="form-group" id="dateDiv">
                        <div class="col-sm-12">
                            <label class="col-sm-2 control-label">有效时间</label>
                            <div class="col-sm-4">
                                ${item.beginTime!, dateFormat="yyyy-MM-dd HH:mm:ss"}
                            </div>
                            <div class="col-sm-4">
                                ${item.endTime!, dateFormat="yyyy-MM-dd HH:mm:ss"}
                            </div>
                        </div>
                    </div>
                    <!--上传图片标签-begin -->
                    <div class="form-group">
                        <label class="col-sm-2 control-label">列表图片</label>
                        <div class="col-sm-6">
                            <div id="bannerImgPreId">
                                <div>
                                    <img src="${item.bannerImg == '' ? '/static/img/NoPIC.png' : item.bannerImg}" style="max-height:150px;">
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-2">
                        </div>
                        <input type="hidden" id="bannerImg" value="${item.bannerImg}"/>
                    </div>
                    <div class="progress progress-striped" id="progressTipArea" style="margin-top: 20px;">
                        <div id="progressBar" style="width: 0%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" role="progressbar" class="progress-bar progress-bar-info"></div>
                    </div>
                    <!--上传图片标签-end -->
                </div>
            </div>
 
            <div class="row" id="editorDiv">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">内部页面</label>
                    </div>
                </div>
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-1 control-label"></label>
                        <div class="col-sm-11">
                            <textarea type="text/plain" id="editor" style="width:100%;height:350px;">${item.content}</textarea>
                        </div>
                    </div>
                </div>
            </div>
        </div>
 
    </div>
</div>
<script src="${ctxPath}/static/modular/system/tBanner/tBanner_info.js"></script>
<link type="text/css" rel="stylesheet" href="${ctxPath}/static/js/plugins/umeditor/themes/default/css/umeditor.css">
<script type="text/javascript" charset="utf-8" src="${ctxPath}/static/js/plugins/umeditor/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="${ctxPath}/static/js/plugins/umeditor/umeditor.js"></script>
<script type="text/javascript" charset="utf-8" src="${ctxPath}/static/js/plugins/umeditor/lang/zh-cn/zh-cn.js"></script>
@}