...
|
...
|
@@ -44,599 +44,6 @@ |
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="text-template">
|
|
|
<div id="text-baseFrom">
|
|
|
<textarea id="myArea" style="width: 100%;max-width: 100%;height: 200px;max-height: 500px; border: 1px solid #000;">[[data.text]]</textarea>
|
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="singleImage-template">
|
|
|
<div id="singleImage-baseFrom">
|
|
|
|
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="titleImage-template">
|
|
|
<div class="panel-body" id="titleImage-baseFrom">
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">标题:</label>
|
|
|
<div class="col-sm-4">
|
|
|
<input type="text" class="form-control" value="[[data.title]]" id="titleImage-title" required="required">
|
|
|
</div>
|
|
|
<label class="col-sm-2 control-label">更多名称</label>
|
|
|
<div class="col-sm-4">
|
|
|
<input type="text" name="platform_flag" value="[[data.more_name]]" id="titleImage-more_name" class="form-control">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">跳转目的</label>
|
|
|
<div class="col-sm-4">
|
|
|
<select id="titleImage-action" name="goTo" class="form-control" value="[[data.more_url.action]]" >
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<label class="col-sm-2 control-label">跳转地址</label>
|
|
|
<div class="col-sm-4">
|
|
|
<input id="titleImage-url" value="[[data.more_url.url]]" class="form-control" required="required" />
|
|
|
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div id="titleImage-bottom">
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="multiLabelImage-template">
|
|
|
<div class="panel-body" id="multiLabelImage-baseFrom">
|
|
|
<div id="labelsEdit">
|
|
|
|
|
|
</div>
|
|
|
<a href="JavaScript:;" id="multiLabelImage-addOne" class="btn btn-primary btn-xs">添加一个</a>
|
|
|
<div id="multiLabelImage-bottom">
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="matchImage-template">
|
|
|
<div class="panel-body" id="matchImage-baseFrom">
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">标题:</label>
|
|
|
<div class="col-sm-4">
|
|
|
<input type="text" class="form-control label-observe" value="[[data.title.name]]" id="matchImage-title" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="name">
|
|
|
</div>
|
|
|
<label class="col-sm-2 control-label">更多名称</label>
|
|
|
<div class="col-sm-4">
|
|
|
<input type="text" name="platform_flag" value="[[data.title.more_name]]" id="matchImage-more_name" class="form-control label-observe" data-rows="[[__index]]" data-index="[[index]]" data-observe="more_name">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">跳转目的</label>
|
|
|
<div class="col-sm-4">
|
|
|
<select id="matchImage-action" name="goTo" class="form-control label-observe" value="[[data.title.more_url.action]]" data-rows="[[__index]]" data-index="[[index]]" data-observe="action" >
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<label class="col-sm-2 control-label">跳转地址</label>
|
|
|
<div class="col-sm-4">
|
|
|
<input id="matchImage-url" value="[[data.title.more_url.url]]" class="form-control label-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="url" />
|
|
|
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div id="matchImage-bottom">
|
|
|
|
|
|
</div>
|
|
|
<a href="JavaScript:;" id="matchImage-addOne" class="btn btn-primary btn-xs">添加一个</a>
|
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="grid-template">
|
|
|
<div id="grid-baseFrom">
|
|
|
[[if imgs]]
|
|
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>序号</th>
|
|
|
<th>资源位</th>
|
|
|
<th>选项</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
[[each imgs as item index]]
|
|
|
<tr>
|
|
|
<td>[[index+1]]</td>
|
|
|
<td><input type="file" name="file" id="titleImage-image-src[[index]]" value="[[item.src]]" class="grid-observe" data-rows="[[__index]]" data-index="[[index]]" required="required" data-observe="src" /></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" id="titleImage-image-action[[index]]" class="form-control grid-observe" value="[[item.url.action]]" data-rows="[[__index]]" data-index="[[index]]" data-observe="action" >
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input value="[[item.url.url]]" id="titleImage-image-url[[index]]" class="form-control grid-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="url" />
|
|
|
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
[[/each]]
|
|
|
</tbody>
|
|
|
</table>
|
|
|
[[/if]]
|
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="action_template">
|
|
|
<option value="">选择跳转目标</option>
|
|
|
<option value="go.brand">品牌列表页</option>
|
|
|
<option value="go.productDetail">商品详情页</option>
|
|
|
<option value="go.coupon">优惠券页</option>
|
|
|
<option value="go.fav">收藏列表页</option>
|
|
|
<option value="go.mine">我的页面</option>
|
|
|
<option value="go.list">列表或搜索页</option>
|
|
|
<option value="go.attention">关注页</option>
|
|
|
<option value="go.plus">plus页</option>
|
|
|
<option value="go.star">star页</option>
|
|
|
<option value="go.new">新品到着页</option>
|
|
|
<option value="go.sale">折扣页</option>
|
|
|
<option value="go.share">分享</option>
|
|
|
<option value="go.h5">h5网页</option>
|
|
|
<option value="go.weblogin">h5网页调用本地登录</option>
|
|
|
<option value="go.guangchannel">逛频道</option>
|
|
|
<option value="go.gender">男女首页</option>
|
|
|
<option value="go.activity">app活动页</option>
|
|
|
<option value="go.home">频道首页</option>
|
|
|
<option value="go.yohood">YOHOOD</option>
|
|
|
<option value="go.top100">热销排行</option>
|
|
|
<option value="go.activitytemplate">活动模板</option>
|
|
|
<option value="go.globalpurchase">全球购</option>
|
|
|
<option value="go.subchannel">二级频道</option>
|
|
|
<option value="go.guangchannel">逛频道或SHOW晒单页</option>
|
|
|
<option value="go.showgoods">去晒单</option>
|
|
|
<option value="go.limitpurchase">尖货频道</option>
|
|
|
<option value="go.vippro">会员商品</option>
|
|
|
<option value="go.shortsize">断码页</option>
|
|
|
<option value="go.discountmarket">折扣专区</option>
|
|
|
<option value="go.discountmarketpro">折扣专区详情页</option>
|
|
|
<option value="go.signin">签到页</option>
|
|
|
<option value="go.playvideo">视频播放</option>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="label-template">
|
|
|
<div class="form-group">
|
|
|
[[each data.label_list as item index]]
|
|
|
<label class="control-label">标签[[index+1]]:</label>
|
|
|
<input type="text" class="label-observe" value="[[item.title]]" data-rows="[[__index]]" data-index="[[index]]" data-observe="title" required="required" style="width: 100px">
|
|
|
<label class="control-label">跳转目的</label>
|
|
|
<select name="goTo" class="label-observe" data-rows="[[__index]]" data-index="[[index]]" data-observe="action" value="[[item.url.action]]" style="width: 120px" >
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
<label>跳转地址</label>
|
|
|
<input type="text" class="label-observe" value="[[item.url.url]]" data-rows="[[__index]]" data-index="[[index]]" data-observe="url" required="required" style="width: 120px" />
|
|
|
[[/each]]
|
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="matchImage-grid">
|
|
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>序号</th>
|
|
|
<th>资源位</th>
|
|
|
<th>选项</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
[[each data.top_image as item index]]
|
|
|
<tr>
|
|
|
<td>[[index+1]]</td>
|
|
|
<td><input type="file" name="file" value="[[item.src]]" class="grid-observe" data-rows="[[__index]]" data-index="[[index]]" data-observe="top_image-src" /></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" class="form-control grid-observe" value="[[item.url.action]]" data-rows="[[__index]]" data-index="[[index]]" data-observe="top_image-action" >
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input value="[[item.url.url]]" class="form-control grid-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="top_image-url" />
|
|
|
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
[[/each]]
|
|
|
[[each data.list as item index]]
|
|
|
<tr>
|
|
|
<td>[[index+1]]</td>
|
|
|
<td><input type="file" name="file" value="[[item.src]]" class="grid-observe" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-src" /></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" class="form-control grid-observe" value="[[item.url.action]]" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-action" >
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input value="[[item.url.url]]" class="form-control grid-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-url" />
|
|
|
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
[[/each]]
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="recommendContent-template">
|
|
|
<div class="panel-body" id="recommendContent-baseFrom">
|
|
|
[[if data.title]]
|
|
|
[[if template_name != "recommendContentFive"]]
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">标题:</label>
|
|
|
<div class="col-sm-4">
|
|
|
<input type="text" class="form-control recommendContent-observe" value="[[data.title.name]]" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="name">
|
|
|
</div>
|
|
|
<label class="col-sm-2 control-label">更多名称</label>
|
|
|
<div class="col-sm-4">
|
|
|
<input type="text" value="[[data.title.more_name]]" class="form-control recommendContent-observe" data-rows="[[__index]]" data-index="[[index]]" data-observe="more_name">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">跳转目的</label>
|
|
|
<div class="col-sm-4">
|
|
|
<select name="goTo" class="form-control recommendContent-observe" value="[[data.title.more_url.action]]" data-rows="[[__index]]" data-index="[[index]]" data-observe="action" >
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<label class="col-sm-2 control-label">跳转地址</label>
|
|
|
<div class="col-sm-4">
|
|
|
<input value="[[data.title.more_url.url]]" class="form-control recommendContent-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="url" />
|
|
|
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
[[/if]]
|
|
|
[[if template_name=="recommendContentFive"]]
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">标题:</label>
|
|
|
<div class="col-sm-4">
|
|
|
<input type="text" class="form-control recommendContent-observe" value="[[data.title.title]]" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="title">
|
|
|
</div>
|
|
|
<label class="col-sm-4 control-label">是否显示
|
|
|
<input type="checkbox" value="[[data.title.is_show]]" checked="[[data.title.is_show?'checked':'']]" class="recommendContent-observe" data-rows="[[__index]]" data-index="[[index]]" data-observe="more_name">
|
|
|
</label>
|
|
|
</div>
|
|
|
[[/if]]
|
|
|
[[/if]]
|
|
|
<div id="recommendContent-bottom">
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="paramsGroup-template">
|
|
|
<div class="panel-body" id="paramsGroup-baseFrom">
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">标题设置:</label>
|
|
|
<div class="col-sm-4">
|
|
|
<input type="text" class="form-control recommendContent-observe" value="[[data.title]]" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="name">
|
|
|
</div>
|
|
|
<label class="col-sm-2 control-label">更多设置:</label>
|
|
|
<div class="col-sm-4">
|
|
|
<input type="text" value="[[data.more]]" class="form-control recommendContent-observe" data-rows="[[__index]]" data-index="[[index]]" data-observe="more_name">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">跳转目的</label>
|
|
|
<div class="col-sm-4">
|
|
|
<select name="goTo" class="form-control recommendContent-observe" value="[[data.more_url.action]]" data-rows="[[__index]]" data-index="[[index]]" data-observe="action" >
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<label class="col-sm-2 control-label">跳转地址</label>
|
|
|
<div class="col-sm-4">
|
|
|
<input value="[[data.more_url.url]]" class="form-control recommendContent-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="url" />
|
|
|
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div id="paramsGroup-bottom">
|
|
|
<ul id="sortable" class="sortable" style="margin:10px;width:100%;">
|
|
|
[[each data.list as item index]]
|
|
|
<li>
|
|
|
<table style="width:100%;z-index:-1;">
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td width="100px">标题:<input type="text" style="width: 60px;" name="params_title" value="[[item.title]]"></td>
|
|
|
<td>参数:<input type="text" name="params_value" style="width:300px;" id="params_value" value="[[item.params]]"></td>
|
|
|
<td><button id="deleteElement" class="btn btn-danger btn-sm" type="button">删除</button></td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
<p style="color:#999">如:http://list.yohobuy.com/?gender=1,3&msort=1,3 参数为:gender=1,3&msort=1,3</p>
|
|
|
</li>
|
|
|
[[/each]]
|
|
|
</ul>
|
|
|
<button type="button" class="btn btn-sm" id="addElement">添加一个</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="imageGroup-template">
|
|
|
<div class="panel-body" id="imageGroup-baseFrom">
|
|
|
<p>标题设置:<input name="title" type="text" value="[[data.title]]">更多设置:<input type="text" name="moreTitle" style="width:120px;" id="moreTitle" value="[[data.more]]"></p>
|
|
|
<p>
|
|
|
更多链接 : <input value="[[data.more_url]]" class="recommendContent-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="url" />
|
|
|
</p>
|
|
|
<p>样式设置:
|
|
|
<select name="image_style" data-element="imageGroup" value="[[data.image_style]]">
|
|
|
<option value="default">默认(一张图片)</option>
|
|
|
<option value="T1F2">T1+F2</option>
|
|
|
<option value="L1R2">L1+R2</option>
|
|
|
<option value="imageList" selected="">图片列表</option>
|
|
|
</select>
|
|
|
每行显示数量:
|
|
|
<select name="show_num" value="[[show_num]]" data-element="imageGroup">
|
|
|
<option value="0">一行显示</option>
|
|
|
<option value="1">一行一个</option>
|
|
|
<option value="2">一行两个</option>
|
|
|
<option value="4">一行四个</option>
|
|
|
<option value="6" selected="">一行六个</option>
|
|
|
</select> <font color="#999">注:只有图片列表是选择才会有效</font></p>
|
|
|
<div id="imageGroup-bottom">
|
|
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>序号</th>
|
|
|
<th>资源位</th>
|
|
|
<th>选项</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
[[each data.list as item index]]
|
|
|
<tr>
|
|
|
<td>[[index+1]]</td>
|
|
|
<td><input type="file" name="file" value="[[item.src]]" class="recommendContent-observe" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-src" /></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" class="form-control recommendContent-observe" value="[[item.url.action]]" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-action" >
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input value="[[item.url.url]]" class="form-control recommendContent-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-url" />
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="图片描述" value="[[item.url.title]]" class="form-control recommendContent-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-url" />
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
[[/each]]
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="newUserFloor-template">
|
|
|
<div class="panel-body" id="newUserFloor-baseFrom">
|
|
|
<div class="new_user_floor">
|
|
|
<p>标题 : <input type="text" name="title" value="[[data.title.name]]"> 更多名称 : <input type="text" name="more_name" value="[[data.title.more_name]]" style="width:50px;"> </p>
|
|
|
<p>
|
|
|
更多链接 : <select name="goTo" class="recommendContent-observe" value="[[data.title.more_url.action]]" data-rows="[[__index]]" data-index="[[index]]" data-observe="action" >
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
<input value="[[data.title.more_url.url]]" class="recommendContent-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="url" />
|
|
|
</p>
|
|
|
<p>活动 ID : <input type="text" name="active_id" value="[[data.title.active_id]]"></p>
|
|
|
<p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加banner" style="margin:10px;" id="select-banner-pic"></p>
|
|
|
</div>
|
|
|
<div id="newUserFloor-bottom">
|
|
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>序号</th>
|
|
|
<th>资源位</th>
|
|
|
<th>选项</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
[[each data.banner_image as item index]]
|
|
|
<tr>
|
|
|
<td>[[index+1]]</td>
|
|
|
<td><input type="file" name="file" value="[[item.src]]" class="recommendContent-observe" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-src" /></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" class="form-control recommendContent-observe" value="[[item.url.action]]" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-action" >
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input value="[[item.url.url]]" class="form-control recommendContent-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-url" />
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="图片描述" value="[[item.url.title]]" class="form-control recommendContent-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-url" />
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
[[/each]]
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="debrisSlider-template">
|
|
|
<div class="panel-body" id="debrisSlider-baseFrom">
|
|
|
<div class="debris_slider">
|
|
|
<p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加左图" style="margin:10px;" id="select-left-pic"></p>
|
|
|
<ul class="sortable" style="margin:10px;">
|
|
|
[[each data.left as item index]]
|
|
|
[[layout debrisSlider-grid item]]
|
|
|
[[/each]]
|
|
|
</ul>
|
|
|
<p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加中间图" style="margin:10px;" id="select-big-pic"></p>
|
|
|
<div class="image-info">
|
|
|
<ul class="sortable" style="width:100%;">
|
|
|
[[each data.big_image as item index]]
|
|
|
[[layout debrisSlider-grid item]]
|
|
|
[[/each]]
|
|
|
</ul>
|
|
|
</div>
|
|
|
<p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加右图" style="margin:10px;" id="select-right-pic"></p>
|
|
|
<ul class="sortable" style="margin:10px;">
|
|
|
[[each data.right as item index]]
|
|
|
[[layout debrisSlider-grid item]]
|
|
|
[[/each]]
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="hotCategory-template">
|
|
|
<div class="hotCategory">
|
|
|
<p>
|
|
|
标题 : <input type="text" name="title" value=""> 更多名称 : <input type="text" name="more_name" value="" style="width:50px;"><br>
|
|
|
跳转目的 : <select name="goTo" class="recommendContent-observe" value="[[url.action]]" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-action" >
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
跳转url : <input value="[[url.url]]" class="recommendContent-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-url" />
|
|
|
</p>
|
|
|
<p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加左上图片" style="margin:10px;" id="select-left-small-pic"></p>
|
|
|
<div class="image-info">
|
|
|
<ul id="leftSmallSortable" class="sortable" style="width:100%;">
|
|
|
//TODO
|
|
|
</ul>
|
|
|
</div>
|
|
|
<p>添加左下导航:</p>
|
|
|
[[each data.list as item index]]
|
|
|
<p>
|
|
|
导航名称:<input type="text" name="navName[]" value="">
|
|
|
<select name="goTo" class="recommendContent-observe" value="[[url.action]]" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-action" >
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
<input value="[[url.url]]" class="recommendContent-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-url" />
|
|
|
</p>
|
|
|
[[/each]]
|
|
|
<p>
|
|
|
<input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加右侧图片" style="margin:10px;" id="select-right-small-pic">
|
|
|
</p>
|
|
|
<ul id="rightSmallSortable" class="sortable" style="margin:10px;">
|
|
|
</ul>
|
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="textNav-template">
|
|
|
<div class="textNav-baseForm">
|
|
|
[[each data as item index]]
|
|
|
<p>
|
|
|
导航名称:<input type="text" name="navName[]" value="[[item.name]]">
|
|
|
<select name="goTo" class="recommendContent-observe" value="[[item.url.action]]" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-action" >
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
<input value="[[item.url.url]]" class="recommendContent-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-url" />
|
|
|
</p>
|
|
|
[[/each]]
|
|
|
</div>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="icon-template">
|
|
|
<input type="button" value="添加图标" class="btn btn-info btn-xs" style="margin:10px;" id="select-pic">
|
|
|
<ul class="sortable" style="margin:10px; overflow-y:scroll">
|
|
|
<li style="width:100%;z-index:99999;">
|
|
|
<table style="width:100%;z-index:-1;">
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td style="width:100px;">
|
|
|
<input type="" class="tImgBox" src="http://img11.static.yhbimg.com/yhb-img01/2016/04/11/11/01eeb83e146b6072acbe457032794c9fb8.jpg?imageView/1/w/80/h/80" style="z-index:-1;">
|
|
|
</td>
|
|
|
<td>
|
|
|
图片链接:<input type="text" name="imgLink[]" value="{}"><input type="button" value="图片连接" class="btn btn-primary btn-xs" style="margin-left:10px;display:inline;" name="linkBtn"> <br>
|
|
|
图片描述:<input type="text" name="imgAlt[]" value=""> <br>
|
|
|
英文描述:<input type="text" name="imgAltEn[]" value="">
|
|
|
</td>
|
|
|
<td>
|
|
|
<input class="btn btn-danger btn-xs del-pic" type="button" value="删除" data-id="0">
|
|
|
</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="recommendContent-grid">
|
|
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>序号</th>
|
|
|
<th>资源位</th>
|
|
|
<th>选项</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
[[if data.big_image]]
|
|
|
[[each data.big_image as item index]]
|
|
|
<tr>
|
|
|
<td>[[index]]</td>
|
|
|
<td><input type="file" name="file" value="[[item.src]]" class="recommendContent-observe" data-rows="[[__index]]" data-index="[[index]]" data-observe="big_image-src" /></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" class="form-control recommendContent-observe" value="[[item.url.action]]" data-rows="[[__index]]" data-index="[[index]]" data-observe="big_image-action" >
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input value="[[item.url.url]]" class="form-control recommendContent-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="big_image-url" />
|
|
|
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
[[/each]]
|
|
|
[[/if]]
|
|
|
[[each data.list as item index]]
|
|
|
<tr>
|
|
|
<td>[[index+1]]</td>
|
|
|
<td><input type="file" name="file" value="[[item.src]]" class="recommendContent-observe" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-src" /></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" class="form-control recommendContent-observe" value="[[item.url.action]]" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-action" >
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input value="[[item.url.url]]" class="form-control recommendContent-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-url" />
|
|
|
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
[[/each]]
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="noEdit-template">
|
|
|
<div>固定内容,暂时无法编辑!</div>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/template" id="debrisSlider-grid">
|
|
|
<li>
|
|
|
<table style="width:100%;z-index:-1;" id="tableImageBox">
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td style="width:100px;"><img class="bImgBox" src="[[src]]"></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" class="recommendContent-observe" value="[[url.action]]" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-action" >
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input value="[[url.url]]" class="recommendContent-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-url" />
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="图片描述" value="[[url.title]]" class="recommendContent-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-url" />
|
|
|
</div>
|
|
|
</td>
|
|
|
<td><input type="button" value="更换图片" class="btn btn-info btn-xs change-big-pic" data-id=""> <input class="btn btn-danger btn-xs del-pic" type="button" value="删除" data-id=""></td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</li>
|
|
|
</script> |
|
|
\ No newline at end of file |
|
|
{{> resource/taoyu}}
|
|
|
{{> resource/weiqingting}}
|
|
|
{{> resource/jiangming}} |
|
|
\ No newline at end of file |
...
|
...
|
|