Authored by wangwei

倒计时楼层

... ... @@ -461,6 +461,15 @@
</ul>
</div>
</div>
[[else if module.contentData.template_name=='timeImage']]
<div class="editorTalk_content">
<div class="editor-info">
<h4 class="title" data-type="title" style="text-align: center">[[module.contentData.data.title]]</h4>
<img src="[[module.contentData.data.list[0].src]]" style="width:99%">
</div>
</div>
[[else if module.contentData.template_name=='recommendCategory']]
<div class="custom-pic">
<p class="title">[[module.contentData.data.title]]</p>
... ...
... ... @@ -1598,3 +1598,55 @@
</div>
</div>
</script>
<script type="text/template" id="timeImage-template">
<div class="panel-body">
<div class="row">
<label class="col-sm-2 control-label">结束时间:</label>
<div class="col-sm-8" style="width:200px">
<input type="text" data-field="..end_show_time" data-type="time" class="form-control panel-input hasDatepickerPlat observe" readonly required placeholder="结束时间" value="[[contentData.end_show_time]]">
</div>
</div>
<div class="row" style="margin-top:5px">
<label class="col-sm-2 control-label">楼层名称:</label>
<div class="col-sm-8" >
<input type="text" placeholder="楼层名称" class="observe" data-field="title" value="[[contentData.data.title]]" style="width:150px;" >
</div>
</div>
</div>
<ul class="draggable" data-array="data.list">
[[each contentData.data.list as item index]]
<li>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src" required/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="list.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" data-field="list.[[index]].url.url"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="图片描述" value="[[item.alt]]" class="observe form-control" data-field="list.[[index]].alt"/>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
</script>
\ No newline at end of file
... ...
... ... @@ -1751,7 +1751,34 @@ var Button = [
data: {
},
"isNewFloor":"1"
},{
button_name: "倒计时楼层",
template_name: "timeImage",
template_intro: "倒计时楼层",
dialog: "timeImage-template",
data: {
"list":[
{
"url": {
"action": "",
"url": "",
"alt": ""
},
"src": ""
},
{
"url": {
"action": "",
"url": "",
"alt": ""
},
"src": ""
}
],
"title":""
},
"isNewFloor":"1"
}
];
module.exports = Button;
... ...