| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <div class=" intro_text" style="margin-left: auto;margin-right: auto;">
- <div class="header">
- <h1 id="title" style="text-align:center"></h1>
- <span id="updateTime" style="text-align:center;display:block;"></span>
- </div>
- <div class="content">
- <p id="p1"></p>
- </div>
- </div>
- <style>
- .intro_text {
- width: 100%;
- }
- .intro_text .header {
- font-size: 18px;
- line-height: 18px;
- padding: 1px 20px 1px 20px;
- }
- .intro_text .content {
- font-size: 16px;
- padding: 40px 50px;
- }
- .container{ min-height:743px;
- background:#fff;
- }
- </style>
- <script>
- Z.onload(function(){
- var id='${id}';
- var ajax = new Z.Ajax();
- ajax.setClassName("DesignerNoticePresenter");
- ajax.setMethodName("getNoticeInfo");
- ajax.addParam(id);
- ajax.setFailureAlert();
- ajax.setSuccess(function(res){
- var data = eval('('+res+')');
- Z("#title").html(data.title);
- if(data.finshTime){
- Z("#updateTime").html(timestampToTime(data.finshTime));
- }
- Z("#p1").html(data.content);
-
- });
- ajax.execute();
- })
- function timestampToTime(timestamp) {
- var date = new Date(timestamp);//时间戳为10位需*1000,时间戳为13位的话不需乘1000
- Y = date.getFullYear() + '-';
- M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-';
- D = (date.getDate()< 10 ? '0'+(date.getDate()) : date.getDate()) + ' ';
- h = (date.getHours()< 10 ? '0'+(date.getHours()) : date.getHours()) + ':';
- m = (date.getMinutes() < 10 ? '0'+(date.getMinutes()) : date.getMinutes()) + ':';
- s = (date.getSeconds() < 10 ? '0'+(date.getSeconds()) : date.getSeconds());
- return Y+M+D+h+m+s;
- }
- </script>
|