...
|
...
|
@@ -11,12 +11,7 @@ |
|
|
</ul>
|
|
|
|
|
|
<div>
|
|
|
<div style="width: 30%;float: left;">
|
|
|
<h4>添加文章</h4>
|
|
|
</div>
|
|
|
<div style="width: 70%;float: right;">
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div><!-- media -->
|
...
|
...
|
@@ -29,14 +24,13 @@ |
|
|
<div class="panel-heading">
|
|
|
<h4 class="panel-title">添加文章</h4>
|
|
|
</div>
|
|
|
<div class="panel-body">
|
|
|
<div class="panel-body form-horizontal" id="panel-body" action="{{action}}">
|
|
|
|
|
|
</div>
|
|
|
<div class="panel-footer">
|
|
|
<div class="row">
|
|
|
<div class="col-sm-9 col-sm-offset-3">
|
|
|
<input type="hidden" name="id" value="41968">
|
|
|
<button type="submit" data-loading-text="保存中..." class="btn btn-primary mr5">保存</button>
|
|
|
<button type="submit" id="submit" class="btn btn-primary mr5">保存</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -46,20 +40,30 @@ |
|
|
</div>
|
|
|
|
|
|
<script type="text/tempalte" id="tempalte1">
|
|
|
<div class="rows">
|
|
|
<div class="row" id="baseform">
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">文章标题</label>
|
|
|
<div class="col-sm-9">
|
|
|
<label class="col-sm-2 control-label">文章标题:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<input type="text" id="articleTitle" class="form-control" placeholder="文章标题" required="" value="[[articleTitle]]">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">文章分类</label>
|
|
|
<label class="col-sm-2 control-label">文章分类:</label>
|
|
|
<!--文章分类-->
|
|
|
<div class="col-sm-2">
|
|
|
<select class="form-control" id="maxSortId">
|
|
|
<option value="[[maxSortId||'-1']]">[[maxSortName||'请选择一级分类']]</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-2">
|
|
|
<select class="form-control" id="minSortId">
|
|
|
<option value="[[minSortId||'-1']]">[[minSortName||'请选择二级分类']]</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">性别</label>
|
|
|
<div class="col-sm-9">
|
|
|
<label class="col-sm-2 control-label">性别:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<input type="radio" value="1" name="articleGender">
|
|
|
<label>男</label>
|
|
|
<input type="radio" value="2" name="articleGender">
|
...
|
...
|
@@ -70,30 +74,30 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">选择作者</label>
|
|
|
<div class="col-sm-9">
|
|
|
<label class="col-sm-2 control-label">选择作者:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<select class="form-control" id="authorId">
|
|
|
<option value="[[authorId||'']]">[[authorName||'请选择']]</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">文章摘要</label>
|
|
|
<div class="col-sm-9">
|
|
|
<label class="col-sm-2 control-label">文章摘要:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<textarea rows="2" id="articleSummary" class="form-control" placeholder="文章摘要" >
|
|
|
[[articleSummary]]
|
|
|
</textarea>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">封面图</label>
|
|
|
<div class="col-sm-9">
|
|
|
<label class="col-sm-2 control-label">封面图:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<input type="file" name="coverImage" id="coverImage" value="[[coverImage]]" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">图片类型</label>
|
|
|
<div class="col-sm-9">
|
|
|
<label class="col-sm-2 control-label">图片类型:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<input type="radio" value="1" name="coverImageType">
|
|
|
<label>方形</label>
|
|
|
<input type="radio" value="2" name="coverImageType" checked="">
|
...
|
...
|
@@ -103,8 +107,8 @@ |
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">文章类型</label>
|
|
|
<div class="col-sm-9">
|
|
|
<label class="col-sm-2 control-label">文章类型:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<select class="form-control" value="[[articleType]]" id="articleType">
|
|
|
<option value="1">普通文章</option>
|
|
|
<option value="2">广告</option>
|
...
|
...
|
@@ -112,8 +116,8 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">广告尺寸</label>
|
|
|
<div class="col-sm-9">
|
|
|
<label class="col-sm-2 control-label">广告尺寸:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<select class="form-control" value="[[adsImgSize]]" id="adsImgSize">
|
|
|
<option value="">请选择广告图片尺寸</option>
|
|
|
<option value="10881088">1088X1088</option>
|
...
|
...
|
@@ -122,32 +126,116 @@ |
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">链接</label>
|
|
|
<div class="col-sm-9">
|
|
|
<input type="text" name="url" id="url" value="" class="form-control" placeholder="请输入内容链接" readonly="true" required=""> <button type="button" class="btn btn-info" id="addUrl">添加链接</button>
|
|
|
<label class="col-sm-2 control-label">链接:</label>
|
|
|
<div class="col-sm-7">
|
|
|
|
|
|
<input type="text" name="url" id="url" value="" class="form-control" placeholder="请输入内容链接" readonly="true" required="">
|
|
|
<p style="color:#999">注:链接中不能有英文单引号</p>
|
|
|
</div>
|
|
|
<div class="col-sm-1">
|
|
|
<button type="button" class="btn btn-info" id="addUrl">添加链接</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">文章内容</label>
|
|
|
<div class="col-sm-9">
|
|
|
<label class="col-sm-2 control-label">文章内容:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<select class="form-control"></select>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">添加品牌</label>
|
|
|
<div class="col-sm-9">
|
|
|
<select class="form-control"></select>
|
|
|
<label class="col-sm-2 control-label">添加品牌:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<ul class="cover-image-list col-sm-10" id="addPic" style="padding: 0;margin: 0;">
|
|
|
<li class="cover-image-item fileinput-button">
|
|
|
<div class="goods-img">
|
|
|
<a class="fileinput-button-icon" href="javascript:void(0);">+</a>
|
|
|
<input type="file" class="goods-img-upload picfile" name="picfile" required="required" placeholder="图片">
|
|
|
</div>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">选择标签</label>
|
|
|
<div class="col-sm-9">
|
|
|
<select class="form-control"></select>
|
|
|
<label class="col-sm-2 control-label">选择标签:</label>
|
|
|
<div class="col-sm-6">
|
|
|
<div id="taglist" class="tagwrap">
|
|
|
<span class="tag"><span>街头 </span><a href="#" title="Removing tag">x</a></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-sm-1">
|
|
|
<button class="btn btn-info" type="button" id="TagsSelectBtn">选择标签</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/tempalte" id="template2">
|
|
|
<div class="rows">
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">选择跳转目的地:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<select 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" selected="selected">频道首页</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>
|
|
|
</select>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">跳转地址:</label>
|
|
|
<div class="col-sm-8">
|
|
|
<textarea rows="2" id="articleSummary" class="form-control" placeholder="文章摘要" ></textarea>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="template3">
|
|
|
|
|
|
[[each aa as index]]
|
|
|
<li class="cover-image-item image-list" data-index="2">
|
|
|
<div class="goods-img">
|
|
|
<a class="fileinput-button-icon" href="javascript:void(0);">
|
|
|
<img src="http://img11.static.yhbimg.com\goodsimg/2016/04/05/08/018a152691c03886bb23fc3eabb8ebafbf.jpg?imageView/2/w/100/h/100">
|
|
|
</a>
|
|
|
<i class="remove-item-btn remove1 glyphicon glyphicon-remove-circle" data-index="2"></i>
|
|
|
</div>
|
|
|
</li>
|
|
|
[[/each]]
|
|
|
|
|
|
</script> |
|
|
\ No newline at end of file |
...
|
...
|
|