Authored by wangwei

倒计时楼层

@@ -461,6 +461,15 @@ @@ -461,6 +461,15 @@
461 </ul> 461 </ul>
462 </div> 462 </div>
463 </div> 463 </div>
  464 + [[else if module.contentData.template_name=='timeImage']]
  465 + <div class="editorTalk_content">
  466 + <div class="editor-info">
  467 + <h4 class="title" data-type="title" style="text-align: center">[[module.contentData.data.title]]</h4>
  468 + <img src="[[module.contentData.data.list[0].src]]" style="width:99%">
  469 + </div>
  470 + </div>
  471 +
  472 +
464 [[else if module.contentData.template_name=='recommendCategory']] 473 [[else if module.contentData.template_name=='recommendCategory']]
465 <div class="custom-pic"> 474 <div class="custom-pic">
466 <p class="title">[[module.contentData.data.title]]</p> 475 <p class="title">[[module.contentData.data.title]]</p>
@@ -1598,3 +1598,55 @@ @@ -1598,3 +1598,55 @@
1598 </div> 1598 </div>
1599 </div> 1599 </div>
1600 </script> 1600 </script>
  1601 +
  1602 +<script type="text/template" id="timeImage-template">
  1603 + <div class="panel-body">
  1604 + <div class="row">
  1605 + <label class="col-sm-2 control-label">结束时间:</label>
  1606 + <div class="col-sm-8" style="width:200px">
  1607 + <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]]">
  1608 + </div>
  1609 + </div>
  1610 + <div class="row" style="margin-top:5px">
  1611 + <label class="col-sm-2 control-label">楼层名称:</label>
  1612 + <div class="col-sm-8" >
  1613 + <input type="text" placeholder="楼层名称" class="observe" data-field="title" value="[[contentData.data.title]]" style="width:150px;" >
  1614 + </div>
  1615 + </div>
  1616 + </div>
  1617 +
  1618 +
  1619 + <ul class="draggable" data-array="data.list">
  1620 + [[each contentData.data.list as item index]]
  1621 + <li>
  1622 + <table class="table table-hover table-bordered responsive dataTable no-footer">
  1623 + <tbody>
  1624 + <tr>
  1625 + <td align="center">[[index+1]]</td>
  1626 + <td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src" required/></td>
  1627 + <td>
  1628 + <div class="form-group">
  1629 + <div class="col-sm-10">
  1630 + <select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="list.[[index]].url.action">
  1631 + [[layout action_template]]
  1632 + </select>
  1633 + </div>
  1634 + </div>
  1635 + <div class="form-group">
  1636 + <div class="col-sm-10">
  1637 + <input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" data-field="list.[[index]].url.url"/>
  1638 + </div>
  1639 + </div>
  1640 + <div class="form-group">
  1641 + <div class="col-sm-10">
  1642 + <input type="text" placeholder="图片描述" value="[[item.alt]]" class="observe form-control" data-field="list.[[index]].alt"/>
  1643 + </div>
  1644 + </div>
  1645 + </td>
  1646 + </tr>
  1647 + </tbody>
  1648 + </table>
  1649 + </li>
  1650 + [[/each]]
  1651 + </ul>
  1652 +</script>
@@ -1751,7 +1751,34 @@ var Button = [ @@ -1751,7 +1751,34 @@ var Button = [
1751 data: { 1751 data: {
1752 }, 1752 },
1753 "isNewFloor":"1" 1753 "isNewFloor":"1"
1754 - }, 1754 + },{
  1755 + button_name: "倒计时楼层",
  1756 + template_name: "timeImage",
  1757 + template_intro: "倒计时楼层",
  1758 + dialog: "timeImage-template",
  1759 + data: {
  1760 + "list":[
  1761 + {
  1762 + "url": {
  1763 + "action": "",
  1764 + "url": "",
  1765 + "alt": ""
  1766 + },
  1767 + "src": ""
  1768 + },
  1769 + {
  1770 + "url": {
  1771 + "action": "",
  1772 + "url": "",
  1773 + "alt": ""
  1774 + },
  1775 + "src": ""
  1776 + }
  1777 + ],
  1778 + "title":""
  1779 + },
  1780 + "isNewFloor":"1"
  1781 + }
1755 ]; 1782 ];
1756 1783
1757 module.exports = Button; 1784 module.exports = Button;