index.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <cm-construct v-bind:data="data[index]" class="notice">
  2. <!-- 预览 -->
  3. <template slot="preview">
  4. <div class="preview-box" v-bind:style="{ backgroundColor : nc.backgroundColor, margin : nc.marginTop + 'px 15px 0' }">
  5. <!-- style1 -->
  6. <div class="notice-box" v-bind:class="'notice-box-'+ nc.style" v-if="nc.style == 1">
  7. <div class="notice-con" v-for="(item, index) in nc.list" v-if="index < 1">
  8. <div class="notice-con-icon" v-if="index == 0"><img v-bind:src="nc.leftImg" /></div>
  9. <!-- <div class="notice-con-split"></div> -->
  10. <span class="notice-con-font" v-bind:style="{color: nc.textColor?nc.textColor:'rgba(0,0,0,0)'}">{{ item.title }}</span>
  11. </div>
  12. </div>
  13. </div>
  14. </template>
  15. <!-- 编辑 -->
  16. <template slot="edit">
  17. <template v-if="nc.lazyLoad">
  18. <notice-con></notice-con>
  19. <notice-edit></notice-edit>
  20. </template>
  21. <color v-show="nc.isEdit == 1" v-bind:data="{ defaultcolor: '#333333' }"></color>
  22. <div class="template-edit-title">
  23. <h3>其他设置</h3>
  24. </div>
  25. <div class="template-edit-wrap">
  26. <color v-bind:data="{ field : 'backgroundColor', label : '背景颜色' }"></color>
  27. <slide v-bind:data="{ field : 'marginTop', label : '页面间距' }"></slide>
  28. </div>
  29. <!-- 网站公告弹框 -->
  30. <div class="notice-list">
  31. <table class="layui-table" id="notice_list"></table>
  32. <div class="layui-form layui-border-box layui-table-view">
  33. <div class="layui-table-box">
  34. <div class="layui-table-header">
  35. <table cellspacing="0" cellpadding="0" border="0" class="layui-table" lay-skin="line" lay-size="lg">
  36. <thead>
  37. <tr>
  38. <th data-field="0" data-key="2-0-0" data-unresize="true" class=" layui-table-col-special">
  39. <div class="layui-table-cell laytable-cell-2-0-0">
  40. <span>公告标题</span>
  41. </div>
  42. </th>
  43. <th data-field="1" data-key="2-0-1" data-unresize="true" class=" layui-table-col-special">
  44. <div class="layui-table-cell laytable-cell-2-0-1">
  45. <span>创建时间</span>
  46. </div>
  47. </th>
  48. <th data-field="2" data-key="2-0-2" data-unresize="true" class=" layui-table-col-special">
  49. <div class="layui-table-cell laytable-cell-2-0-2">
  50. <span>操作</span>
  51. </div>
  52. </th>
  53. </tr>
  54. </thead>
  55. </table>
  56. </div>
  57. <div class="layui-table-body layui-table-main">
  58. <table cellspacing="0" cellpadding="0" border="0" class="layui-table" lay-skin="line" lay-size="lg">
  59. <tbody>
  60. </tbody>
  61. </table>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. </template>
  67. <!-- 资源 -->
  68. <template slot="resource">
  69. <js>
  70. var noticeResourcePath = "{$resourceurl}";
  71. </js>
  72. <css src="{$resourceurl}/notice/css/style.css"></css>
  73. <js src="{$resourceurl}/notice/js/style.js"></js>
  74. </template>
  75. </cm-construct>