index.html 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. {extend name="public/layout"}
  2. {block name="body"}
  3. <link rel="stylesheet" " href=" /static/css/common.css">
  4. <script src="/static/js/jquery.min.js"></script>
  5. <style>
  6. div {
  7. margin: 0 auto;
  8. }
  9. .goodNews {
  10. width: 96%;
  11. max-height: 407px;
  12. border: 2px solid #358105;
  13. border-top: none;
  14. padding-bottom: 10px;
  15. padding-top: 5px;
  16. margin-bottom: 10px;
  17. position: relative;
  18. overflow-x: hidden;
  19. overflow-y: scroll
  20. }
  21. .goodNews ul li {
  22. line-height: 30px;
  23. width: 100%;
  24. border-bottom: 1px solid #f5f5f5;
  25. padding-left: 25px;
  26. }
  27. .goodNews ul li span {
  28. padding-left: 1px;
  29. padding-right: 1px;
  30. color: #FF0033
  31. }
  32. .goodNews ul li em {
  33. padding-left: 2px;
  34. padding-right: 2px;
  35. color: #0000FF
  36. }
  37. .goodNews ul li b span {
  38. color: #000;
  39. font-weight: normal
  40. }
  41. .goodNews ul li strong {
  42. padding-left: 2px;
  43. padding-right: 4px;
  44. font-family: "微软雅黑";
  45. color: #FF0000;
  46. font-size: 14px;
  47. letter-spacing: 1px
  48. }
  49. .goodNews ul li u {
  50. color: #FF3300;
  51. padding-left: 2px;
  52. padding-right: 2px;
  53. text-decoration: none;
  54. font-size: 12px;
  55. font-weight: bold
  56. }
  57. .close {display: block;width: 31px;height: 31px;line-height: 31px;position: absolute;right:10px;top: 6px;cursor: pointer;text-align: center;color: #fff;font-size: 18px;overflow: hidden; background-color:#FF0000;_filter: alpha(opacity=60);_background: #333;z-index: 999;}
  58. .goodNewsMes{ width:290px; height:25px; line-height:25px; display:block; position:absolute; top:10px; right:58px; color:#999}
  59. .calendar {
  60. width: 1000px;
  61. height: 720px;
  62. background: white;
  63. box-shadow: 0px 1px 1px rgba(0, 0, 0, .1);
  64. font-family: Arial;
  65. margin: 45px auto 20px;
  66. }
  67. .cal_title {
  68. height: 70px;
  69. border-bottom: 1px solid rgba(0, 0, 0, .1);
  70. position: relative;
  71. text-align: center;
  72. }
  73. .cal_title h1 {
  74. margin: 0px;
  75. padding: 0;
  76. font-weight: bold;
  77. color: #333;
  78. letter-spacing: 2px;
  79. }
  80. #calendar-title {
  81. font-size: 25px;
  82. text-transform: uppercase;
  83. padding: 20px 0 0 0;
  84. }
  85. #calendar-year {
  86. font-size: 15px;
  87. font-weight: normal;
  88. }
  89. #pre {
  90. position: absolute;
  91. top: 0px;
  92. left: 0px;
  93. background: url(images/prev.png) no-repeat 50% 50%;
  94. width: 60px;
  95. height: 70px;
  96. display: none
  97. }
  98. #next {
  99. position: absolute;
  100. top: 0px;
  101. right: 0px;
  102. background: url(images/next.png) no-repeat 50% 50%;
  103. width: 60px;
  104. height: 70px;
  105. display: none
  106. }
  107. .body-list ul {
  108. font-size: 14px;
  109. width: 100%;
  110. box-sizing: border-box;
  111. }
  112. .body-list ul li {
  113. list-style: none;
  114. display: block;
  115. width: 14.28%;
  116. float: left;
  117. height: 100px;
  118. box-sizing: border-box;
  119. text-align: center;
  120. border-right: 1px solid #f2f2f2;
  121. border-bottom: 1px solid #f2f2f2;
  122. background-image: url("data:image/svg+xml,%3Csvg width='235' height='175' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='50%25' y='50%25' font-size='14' fill-opacity='0.1' text-anchor='middle' dominant-baseline='middle' transform='rotate(-26, 100 100)'%3Eweizhihui%3C/text%3E%3C/svg%3E");
  123. }
  124. .body-list ul li:not(.greenbox):hover {
  125. background-color: #dff0d8
  126. }
  127. .lightgrey {
  128. color: #a8a8a8;
  129. }
  130. /*浅灰色显示星期*/
  131. .lightgrey ul li {
  132. height: 50px;
  133. line-height: 50px;
  134. padding-top: 0;
  135. }
  136. .darkgrey {
  137. color: #000;
  138. }
  139. /*深灰色显示将来的日期*/
  140. .darkgrey ul li {
  141. padding-top: 40px
  142. }
  143. .greenbox {
  144. background: #89c3eb;
  145. color: #FFF;
  146. font-size: 16px;
  147. font-weight: bold
  148. }
  149. </style>
  150. <body>
  151. <div class="goodNews" >
  152. <span class="close" title="关闭消息">X</span>
  153. {if $xinjushang == 1}
  154. <span class="goodNewsMes">注:显示最近2天内,新签订的交定和收取的定金</span>
  155. {else/}
  156. <span class="goodNewsMes">注:显示最近2天内,新签订的合同和收取的合同定金</span>
  157. {/if}
  158. <ul>
  159. {volist name="list" id="vo"}
  160. {if $vo.state =='已签单'}
  161. <li><u>合同:</u>恭喜<span>{$vo.employee.name}</span>在{$vo.confirm_date|date='d'}号用{$vo.package_name|default='全新方案'}新签定<em>{$vo.cusdata.community_name|default=''}</em><strong>{$vo.cusdata.signed_moneys|default=0}</strong>元合同,设计师是<span>{$company_name}</span>的{$vo.cusdata.designer.name|default='设计师'},由{$vo.employee.name}在{$vo.cusdata.addtime}录入。</li>
  162. {/if}
  163. {if $vo.state =='已交定'}
  164. <li><u style="color:#009900;">定金:</u>恭喜<span>{$vo.employee.name}</span>在{$vo.confirm_date|date='d'}号收取<em>{$vo.cusdata.name}</em><strong>{$vo.cusdata.deposit_moneys}</strong>元,设计师是<span>{$company_name}</span>的{$vo.cusdata.designer.name|default='设计师'}, 由{$vo.employee.name}在{$vo.cusdata.addtime}录入。</li>
  165. {/if}
  166. {/volist}
  167. </ul>
  168. </div>
  169. <div class="calendar">
  170. <div class="cal_title">
  171. <h1 id="calendar-title"></h1>
  172. <a href="javascript:location.href='?ReqDate=2022/10/9'" id="pre"></a>
  173. <a href="javascript:location.href='?ReqDate=2022/12/9'" id="next"></a>
  174. </div>
  175. <div>
  176. <div class="lightgrey body-list">
  177. <ul>
  178. <li>日</li>
  179. <li>一</li>
  180. <li>二</li>
  181. <li>三</li>
  182. <li>四</li>
  183. <li>五</li>
  184. <li>六</li>
  185. </ul>
  186. </div>
  187. <div class="darkgrey body-list">
  188. <ul id="days">
  189. </ul>
  190. </div>
  191. </div>
  192. </div>
  193. </body>
  194. <script type="text/javascript">
  195. $(function () {
  196. $(".close").click(function(){$(".goodNews").slideUp(500); });
  197. if($(".goodNews ul li").length==0){$(".goodNews").hide();}//当没有定金和签单时,隐藏div
  198. let date = new Date();
  199. let year = date.getFullYear();
  200. let month = date.getMonth() * 1 + 1;
  201. let firstday = 1;
  202. let date1 = new Date(year + '-' + month + '-' + firstday);
  203. $('#calendar-title').html(year + '年' + month + '月');
  204. let nowdate = date.getDate();
  205. let fweek = date1.getDay();
  206. let lastday = getCurrentMonthLast();
  207. for (let i = 0; i < fweek; i++) {
  208. $('#days').append('<li></li>')
  209. }
  210. for (let j = 1; j <= lastday; j++) {
  211. if (nowdate == j) {
  212. $('#days').append('<li class="greenbox">' + j + '号</li>')
  213. } else {
  214. $('#days').append('<li>' + j + '号</li>')
  215. }
  216. }
  217. let len = 35 - 30 - fweek;
  218. for (let t = 1; t < len; t++) {
  219. $('#days').append('<li></li>');
  220. }
  221. $(".close").click(function () { $(".goodNews").slideUp(500); });
  222. if ($(".goodNews ul li").length == 0) { $(".goodNews").hide(); }//当没有定金和签单时,隐藏div
  223. });
  224. function getCurrentMonthLast() {
  225. var date = new Date();
  226. var currentMonth = date.getMonth();
  227. var nextMonth = ++currentMonth;
  228. var nextMonthFirstDay = new Date(date.getFullYear(), nextMonth, 1);
  229. var oneDay = 1000 * 60 * 60 * 24;
  230. let ndate = new Date((new Date(nextMonthFirstDay - oneDay).getTime()) + 24 * 60 * 60 * 1000 - 1);
  231. return ndate.getDate();
  232. }
  233. </script>
  234. {/block}