Index.html 7.6 KB
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__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-notice"><i class="fa fa-plus"></i> 创建公告</a>
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="panel-col">
                    <input type="text" placeholder="公告标题" id="notice-title" class="form-control"/>
                </div>
                <div class="panel-col">
                    <select name="position" id="notice-position" 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>
                        <option value="5">SNEAKER</option>
                        <option value="6">YOHO</option>
                        <option value="7">SHOW</option>
                        <option value="8">分期</option>
                    </select>
                </div>
                <div class="panel-col">
                    <a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
                    <a id="filter-all" href="/operations/notice/index" class="btn btn-info">全部</a>
                </div>
            </div>
        </div>
    </div>
    <div class="panel">
        <div class="panel-body nopadding">
            <div id="notice-list"></div>
        </div>
    </div>
</div>

<script type="text/template" id="template">
    <div class="rows" id="baseform">
        <div class="form-group">
            <label class="col-sm-2 control-label" for="title">公告标题</label>
            <input type="hidden" value="{id}" id="id"/>
            <div class="col-sm-10">
                <input type="text" value="{title}" class="form-control" id="title" required="required"
                       placeholder="公告标题" required="required"/>
                <p style="color:#999;margin-top: 5px;">注:请控制在15个字之内,多余15个字,5s等手机屏幕前台会显示不全。</p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label" for="position">公告位置</label>
            <div class="col-sm-5">
                <select name="position" id="position" tabindex="-1" title="" class="select2-offscreen brandBtn-group"
                        value="{position}" required="required">
                    <option value="" selected="">请选择</option>
                    <option value="1">首页</option>
                    <option value="2">个人中心</option>
                    <option value="3">社区首页</option>
                    <option value="4">复古市集会</option>
                    <option value="5">聚焦潮鞋</option>
                    <option value="6">爱享潮物</option>
                    <option value="7">潮人自曝</option>
                    <option value="8">分期</option>
                </select>
            </div>
            <div id="showchannel" class="col-sm-5">
                <label style="cursor: pointer;"><input type="checkbox" name="showChannels" value="1">男首</label>
                <label style="cursor: pointer;"><input type="checkbox" name="showChannels" value="2">女首</label>
                <label style="cursor: pointer;"><input type="checkbox" name="showChannels" value="3">潮童</label>
                <label style="cursor: pointer;"><input type="checkbox" name="showChannels" value="4">创意生活</label>
            </div>
            <input type="hidden" id="showChannels" value="{showChannels}" for="checkbox">
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">url地址</label>
            <div class="col-sm-4">
                <select id="intent" name="goTo" class="form-control">
                    <option value="">选择跳转目的</option>
                    <option value="brand">品牌列表页</option>
                    <option value="productDetail">商品详情页</option>
                    <option value="coupon">优惠券页</option>
                    <option value="fav">收藏列表页</option>
                    <option value="mine">我的页面</option>
                    <option value="list">列表或搜索页</option>
                    <option value="attention">关注页</option>
                    <option value="plus">plus</option>
                    <option value="star">star</option>
                    <option value="new">新品到着页</option>
                    <option value="sale">折扣页</option>
                    <option value="h5">h5网页</option>
                    <option value="guangchannel">逛频道</option>
                    <option value="gender">男女首页</option>
                    <option value="activity">app活动页</option>
                    <option value="home">频道首页</option>
                    <option value="yohood">YOHOOD</option>
                    <option value="top100">热销排行</option>
                    <option value="activitytemplate">活动模板</option>
                    <option value="globalpurchase">全球购</option>
                    <option value="subchannel">二级频道</option>
                    <option value="guangchannel">逛频道或SHOW晒单页</option>
                    <option value="showgoods">去晒单</option>
                    <option value="limitpurchase">尖货频道</option>
                    <option value="vippro">会员商品</option>
                    <option value="shortsize">断码页</option>
                    <option value="discountmarket">折扣专区</option>
                    <option value="discountmarketpro">折扣专区详情页</option>

                    <option value="comm.postdetail">社区帖子详情页</option>
                    <option value="comm.forum">社区版块首页</option>
                    <option value="comm.h5">社区H5</option>
                    <option value="comm.productDetail">社区商品详情页</option>
                </select>
            </div>
            <div class="col-sm-4">
                <input id="url" value="{url}" class="form-control" placeholder="URL地址"/>
                <p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">图片</label>
            <div class="col-sm-10">
                <input type="file" id="img" name="img" value="{img}"/>
            </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" readonly
                       class="form-control panel-input" name="start_time" placeholder="开始时间"
                       value="{startTime}">
            </div>
            <div class="panel-col1 col-sm-4">
                <input type="text" id="endTime" jsaction="time:start:startTime" readonly
                       class="form-control panel-input" name="end_time" placeholder="结束时间"
                       value="{endTime}">
            </div>
        </div>
    </div>
</script>