Index.html 9.34 KB
<%include '../../common/__ui/header'%>
<%include '../../common/__partail/ListHeader'%>

<div class="contentpanel">
<div class="panel panel-default" style="margin-bottom:10px;">
    <div class="panel-body" style="padding-bottom: 0">
        <a class="btn btn-success " id="add-subject"><i class="fa fa-plus"></i> 添加专题</a>
    </div>
    <div class="panel-body">
        <div class="row">
            <div class="panel-col">
                <select name="sort" id="subject-type" tabindex="-1" title="" class="select2-offscreen brandBtn-group">
                    <option value="" selected="">类型</option>
                    <option value="1">奥莱</option>
                    <option value="2">SALE</option>
                </select>
            </div>
            <div class="panel-col">
                <select name="paltform" id="subject-paltform" tabindex="-1" title=""
                        class="select2-offscreen brandBtn-group">
                    <option value="" selected="">平台</option>
                    <option value="1">WEB</option>
                    <option value="2">APP</option>
                    <option value="3">WAP</option>
                    <option value="4">IPAD</option>
                </select>
            </div>
            <div class="panel-col">
                <select name="status" id="subject-status" tabindex="-1" title=""
                        class="select2-offscreen brandBtn-group">
                    <option value="" selected="">状态</option>
                    <option value="1">未定时</option>
                    <option value="2">未发布</option>
                    <option value="3">已发布</option>
                    <option value="4">已结束</option>
                </select>
            </div>
            <div class="panel-col">
            <a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
            <a id="filter-all" href="/runManage/subjectManage/index" class="btn btn-info">全部</a>
                </div>
        </div>
    </div>
</div>

    <div class="panel">
        <input type="hidden" id="url" value="/runManage/subjectManage/subjectList"/>
        <div id="subject-manage"></div>
    </div>
</div>

<script type="text/template" id="template2">
    <input type="text" name="sort" size="1" placeholder="排序"/>
    <input type="button" class="btn btn-xs btn-info sortsave" id="save" value="保存"/>
    <input type="button" class="btn btn-xs btn-info sortcancel" id="cancel" value="取消"/>
</script>

<script type="text/template" id="template">
    <div class="rows" id="baseform">
        <div class="form-group">
            <label class="col-sm-2 control-label">分类<font color="#f00">*</font></label>
            <input type="hidden" value="{id}" id="id"/>
            <div class="col-sm-10">
                <input name="sort" type="radio" value="1"/>奥莱
                <input name="sort" type="radio" value="2"/>SALE
            </div>
            <input type="hidden" id="sort" value="{sort}" for="radio"/>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label" for="title">标题<font color="#f00">*</font></label>
            <div class="col-sm-8">
                <input type="text" value="{title}" class="form-control" id="title" required="required"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">平台</label>
            <div class="col-sm-8">
                <label style="cursor: pointer;"><input type="checkbox" name="plateform" value="1">WEB</label>
                <label style="cursor: pointer;"><input type="checkbox" name="plateform" value="2">APP</label>
                <label style="cursor: pointer;"><input type="checkbox" name="plateform" value="3">WAP</label>
                <label style="cursor: pointer;"><input type="checkbox" name="plateform" value="4">IPAD</label>
            </div>
            <input type="hidden" id="plateform" value="{plateform}" for="checkbox">
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">频道</label>
            <div class="col-sm-8">
                <label style="cursor: pointer;"><input type="checkbox" name="yhChannel" value="1">男生</label>
                <label style="cursor: pointer;"><input type="checkbox" name="yhChannel" value="2">女生</label>
                <label style="cursor: pointer;"><input type="checkbox" name="yhChannel" value="3">儿童</label>
                <label style="cursor: pointer;"><input type="checkbox" name="yhChannel" value="4">创意生活</label>
            </div>
            <input type="hidden" id="yhChannel" value="{yhChannel}" for="checkbox">
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">促销形式</label>
            <div class="col-sm-10">
                <input id="promotion1" name="promotionName" type="radio" value="1"/>

                <input class="smalltxt" type="text" id="promotionName1"/>折起&nbsp;&nbsp;


                <input id="promotion2" name="promotionName" type="radio" value="2"/><input class="smalltxt" type="text"
                                                                                           id="promotionName2"/>~<input
                    class="smalltxt" type="text" id="promotionName3"/>&nbsp;&nbsp;

                <input id="promotion4" name="promotionName" type="radio" value="4"/><input class="smalltxt" type="text"
                                                                                           id="promotionName4"/>元起&nbsp;&nbsp;

                <input id="promotion5" name="promotionName" type="radio" value="5"/><input class="smalltxt" type="text"
                                                                                           id="promotionName5"/>%Off(大图折扣)
            </div>
        </div>
        <div class="form-group col-sm-100">
            <label class="col-sm-2 control-label">活动时间</label>
            <div class="panel-col1 col-sm-4">
                <input type="text" id="startTime" jsaction="time:end:endTime"
                       class="form-control panel-input hasDatepicker " readonly name="start_time" placeholder="开始时间"
                       value="{startTime}">
            </div>
            <div class="panel-col1 col-sm-4">
                <input type="text" id="endTime" jsaction="time:start:startTime"
                       class="form-control panel-input hasDatepicker" readonly name="end_time" placeholder="结束时间"
                       value="{endTime}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-lalbel" for="orderNum">排序</label>
            <div class="col-sm-8">
                <input type="text" id="orderNum" value="{orderNum}" class="form-control"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">手机端封面图</label>
            <div class="col-sm-10">
                <input type="file" id="coverUrl" name="coverUrl" value="{coverUrl}"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">WEB logo</label>
            <div class="col-sm-10">
                <input type="file" id="logoUrl" name="logoUrl" value="{logoUrl}"/><!---->
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">web封面图</label>
            <div class="col-sm-10">
                <input type="file" id="webCoverUrl" name="webCoverUrl" value="{webCoverUrl}"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">web列表页图</label>
            <div class="col-sm-10">
                <input type="file" id="webUrl" name="webUrl" value="{webUrl}"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">添加商品<font color="#f00">*</font></label>
            <div class="col-sm-10">
                <select id="productPoolId" style="width: 280px;" value="{productPoolId}">
                    <option value="{productPoolId}">请选择商品池</option>
                </select>
            </div>
        </div>
    </div>
</script>

<script type="text/template" id="links-template">
    <table class="table no-footer">
        <tbody>
        [[if linkWeb]]
            <tr>
                <td align="right">WEB链接</td>
                <td width="80%"><textarea readonly class="link-area" id="linkWeb[[id]]">[[linkWeb]]</textarea></td>
                <td><a class="btn btn-primary copy" data-link="linkWeb[[id]]">复制</a></td>
            </tr>
        [[/if]]
        [[if linkWap]]
        <tr>
            <td align="right">WAP链接</td>
            <td width="80%"><textarea readonly class="link-area" id="linkWap[[id]]">[[linkWap]]</textarea></td>
            <td><a class="btn btn-primary copy" data-link="linkWap[[id]]">复制</a></td>
        </tr>
        [[/if]]
        [[if linkApp]]
        <tr>
            <td align="right">APP链接</td>
            <td width="80%"><textarea readonly class="link-area" id="linkApp[[id]]">[[linkApp]]</textarea></td>
            <td><a class="btn btn-primary copy" data-link="linkApp[[id]]">复制</a></td>
        </tr>
        [[/if]]
        </tbody>
    </table>
</script>