Procházet zdrojové kódy

添加卫生节日一览

xusonglin před 4 roky
rodič
revize
388bd874d2

+ 84 - 0
tianti-modules/tianti-module-gateway/src/main/webapp/static/css/liMarquee.css

@@ -0,0 +1,84 @@
+/*Plugin CSS*/
+.str_wrap {
+	overflow:hidden;
+	//zoom:1;
+	width:100%;
+	font-size:16px;
+	line-height:16px;
+	position:relative;
+	-moz-user-select: none;
+	-khtml-user-select: none;
+	user-select: none;
+	background: url(../../static/images/bjing.jpg) no-repeat;
+	background-size:cover;
+	white-space:nowrap;
+	color: white;
+}
+
+.str_wrap.str_active {
+	background: url(../../static/images/bjing.jpg) no-repeat;
+	background-size:cover;
+}
+.str_move {
+	white-space:nowrap;
+	position:absolute;
+	top:0;
+	left:0;
+	cursor:move;
+}
+.str_move_clone {
+	display:inline-block;
+	//display:inline;
+	//zoom:1;
+	vertical-align:top;
+	position:absolute;
+	left:100%;
+	top:0;
+}
+.str_vertical .str_move_clone {
+	left:0;
+	top:100%;
+}
+.str_down .str_move_clone {
+	left:0;
+	bottom:100%;
+}
+.str_vertical .str_move,
+.str_down .str_move {
+	white-space:normal;
+	width:100%;
+}
+.str_static .str_move,
+.no_drag .str_move,
+.noStop .str_move{
+	cursor:inherit;
+}
+.str_wrap img {
+	max-width:none !important;
+}
+
+table {
+	border: 0;
+	width: 80%;
+	margin:0;
+	padding:0;
+	border-collapse: collapse;
+	border-spacing: 0;
+	margin: 0 auto;
+}
+
+table tr {
+	border: 0;
+	padding: 5px;
+}
+
+table th, table td {
+	padding: 10px;
+	text-align: center;
+}
+
+table th {
+	text-transform: uppercase;
+	font-size: 14px;
+	letter-spacing: 1px;
+}

binární
tianti-modules/tianti-module-gateway/src/main/webapp/static/images/bjing.jpg


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 2 - 0
tianti-modules/tianti-module-gateway/src/main/webapp/static/js/jquery-1.8.3.min.js


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 1309 - 0
tianti-modules/tianti-module-gateway/src/main/webapp/static/js/jquery.liMarquee.js


+ 8 - 5
tianti-modules/tianti-module-gateway/src/main/webapp/static/template/textList.js

@@ -12,17 +12,20 @@ jc.data.setup(function (data) {
 
     for (var i = 0, l = list.length; i < l; i++) {
 
-        var firstClass = i == 0 ? "first" : "";
-
+        // var firstClass = i == 0 ? "first" : "";
+        var firstClass = "";
         var curList = list[i];
 
         var $div = $("<div>");
         $div.html(curList.content);
         var filterContent = $div.text();
         html += '<div onclick="window.router(\'menuAndDetail\',{ rootColumnId:\'' + window.rootColumnId + '\',columnListId:\'' + columnListId + '\',articleId:\'' + curList.id + '\' });" class="l_item ' + (firstClass) + '">';
-        html += '<img src="' + (curList.coverImageUrl ? window.serverUploadPath + curList.coverImageUrl : window.notImgUrl) + '">';
+        if (data.id == "8a2a08425b7a0b7b015b7a0f32450002") {
+            html += '<img src="' + (curList.coverImageUrl ? window.serverUploadPath + curList.coverImageUrl : window.notImgUrl) + '">';
+        }
+        // html += '<img src="' + (curList.coverImageUrl ? window.serverUploadPath + curList.coverImageUrl : window.notImgUrl) + '">';
         html += '<a class="i_link" href="javascript:;">' + (this.getString(curList.title)) + '</a>';
-        html += '<span class="i_time">' + (jc.tools.formatDate(curList.updateDate)) + '</span>';
+        html += '<span class="i_time">' + (jc.tools.formatDate(curList.createDate)) + '</span>';
         html += '<p class="i_intro">' + (this.getString(filterContent)) + '</p>';
         html += '</div>';
     }
@@ -40,4 +43,4 @@ jc.data.setup(function (data) {
 
     return html;
 
-});
+});

+ 157 - 6
tianti-modules/tianti-module-gateway/src/main/webapp/tianti/index/index.html

@@ -21,7 +21,19 @@
 
     <script src="../../static/js/common.js"></script>
     <script src="../../static/js/config.js"></script>
-
+    <script src="../../static/js/jquery.liMarquee.js"></script>
+<!--    <script src="../../static/js/jquery-1.8.3.min.js"></script>-->
+    <link rel="stylesheet" href="../../static/css/liMarquee.css">
+    <script type="text/javascript">
+        $(function(){
+            $('#festival').liMarquee({
+                direction: 'down'
+            });
+            $('#festival').click(function () {
+                window.location.href=window.root + "menuAndDetail/menuAndDetail.html?rootColumnId=8a2a08425b7aa230015b7ab44ea90013&columnListId=4028814771c6151f0171c626a6e40014&articleId=4028814771ecf1810171f407c9f30033";
+            });
+        });
+    </script>
     <script type="text/javascript">
         window.rootColumnId = jc.param.get("rootColumnId");
 
@@ -87,7 +99,6 @@
 
 
             }, false);
-
         };
 
 
@@ -161,8 +172,7 @@
             }
 
             jc.uiUpdate();
-
-        }
+        };
     </script>
 
 
@@ -179,9 +189,150 @@
     <div class="container">
 
         <div id="app" class="row">
-
         </div>
-
+<!--        <div class="row col-md-6 J_titleStyle1 page-header clearfix pull-left">-->
+<!--            -->
+<!--        </div>-->
+        <div>
+            <div class="J_titleStyle1">
+                <div class="page-header clearfix"  id="test">
+                    <div class="pull-left">
+                        <i></i>
+                        <h4>卫生节日一览</h4>
+                    </div>
+                </div>
+                <div class="row">
+                    <div id="festival">
+                        <ul>
+                            <table>
+                                <tr>
+                                    <td>世界防治麻风病日 1月最后一个星期日</td>
+                                    <td>世界癌症日 2月4日</td>
+                                    <td>世界罕见病日 2月的最后一天</td>
+                                </tr>
+                                <tr>
+                                    <td>全国爱耳日 3月3日</td>
+                                    <td>世界青光眼日 3月6日</td>
+                                    <td>中国国医节 3月17日</td>
+                                </tr>
+                                <tr>
+                                    <td>全国爱肝日 3月18日</td>
+                                    <td>世界肾脏日 3月份的第二个星期四</td>
+                                    <td>世界睡眠日 3月21日</td>
+                                </tr>
+                                <tr>
+                                    <td>世界防治结核病日 3月24日</td>
+                                    <td>全国爱国卫生月 4月</td>
+                                    <td>世界自闭症日 4月2日</td>
+                                </tr>
+                                <tr>
+                                    <td>世界卫生日 4月7日</td>
+                                    <td>世界帕金森病日 4月11日</td>
+                                    <td>全国肿瘤防治宣传周 4月15日~21日</td>
+                                </tr>
+                                <tr>
+                                    <td>全国爱鼻日 4月的第二个星期六</td>
+                                    <td>世界血友病日 4月17日</td>
+                                    <td>世界防治疟疾日 4月25日</td>
+                                </tr>
+                                <tr>
+                                    <td>全国儿童预防接种宣传日 4月25日</td>
+                                    <td>世界安全生产与健康日 4月28日</td>
+                                    <td>世界防治哮喘日 5月的第一个周二</td>
+                                </tr>
+
+                                <tr>
+                                    <td>世界红十字日 5月8日</td>
+                                    <td>国际护士节 5月12日</td>
+                                    <td>全国碘缺乏病日 5月15日</td>
+                                </tr>
+                                <tr>
+                                    <td>世界高血压日 5月17日</td>
+                                    <td>全国学生营养日 5月20日</td>
+                                    <td>全国母乳喂养宣传日 5月20日</td>
+                                </tr>
+                                <tr>
+                                    <td>世界向人体条件挑战日 5月26日</td>
+                                    <td>世界无烟日 5月31日</td>
+                                    <td>世界牛奶日 6月1日</td>
+                                </tr>
+                                <tr>
+                                    <td>全国爱眼日 6月6日</td>
+                                    <td>世界献血日 6月14日</td>
+                                    <td>世界渐冻人日 6月21日</td>
+                                </tr>
+
+                                <tr>
+                                    <td>国际禁毒日 6月26日</td>
+                                    <td>国际癫痫关爱日 6月28日</td>
+                                    <td>全国科普行动日 6月29日</td>
+                                </tr>
+                                <tr>
+                                    <td>世界过敏性疾病日 7月8日</td>
+                                    <td>世界肝炎日 7月28日</td>
+                                    <td>世界母乳喂养周 8月1日至7日</td>
+                                </tr>
+                                <tr>
+                                    <td>全民健身日 8月8日</td>
+                                    <td>关爱义齿周 8月最后一周</td>
+                                    <td>世界预防自杀日 9月10日</td>
+                                </tr>
+                                <tr>
+                                    <td>中国预防出生缺陷日 9月12日</td>
+                                    <td>世界淋巴瘤日 9月15日</td>
+                                    <td>中国脑健康日 9月16日</td>
+                                </tr>
+
+                                <tr>
+                                    <td>世界急救日 9月的第二个周六</td>
+                                    <td>爱牙日 9月20日</td>
+                                    <td>中华老年痴呆日 9月21日</td>
+                                </tr>
+                                <tr>
+                                    <td>世界阿尔茨海默病日 9月21日</td>
+                                    <td>国际聋人日 9月28日</td>
+                                    <td>世界心脏日 9月的最后一个星期日</td>
+                                </tr>
+                                <tr>
+                                    <td>世界精神卫生日 10月10日</td>
+                                    <td>世界镇痛日 10月11日</td>
+                                    <td>世界关节炎日 10月12日</td>
+                                </tr>
+                                <tr>
+                                    <td>世界保健日 10月13日</td>
+                                    <td>世界视力日 10月第二个星期四</td>
+                                    <td>国际盲人节 10月15日</td>
+                                </tr>
+                                <tr>
+                                    <td>全球洗手日 10月15日</td>
+                                    <td>世界骨质疏松日 10月20日</td>
+                                    <td>世界传统医药日 10月22日</td>
+                                </tr>
+                                <tr>
+                                    <td>世界男性健康日 10月28日</td>
+                                    <td>世界卒中日 10月29日</td>
+                                    <td>全球肺癌关注月 11月</td>
+                                </tr>
+                                <tr>
+                                    <td>联合国糖尿病日 11月14日</td>
+                                    <td>世界慢阻肺日 11月第三周的周三</td>
+                                    <td>世界艾滋病日 12月1日</td>
+                                </tr>
+                                <tr>
+                                    <td>国际残疾人日 12月3日</td>
+                                    <td>世界强化免疫日 12月15日</td>
+                                    <td></td>
+                                </tr>
+                            </table>
+<!--                            <li><p>世界防治麻风病日 1月最后一个星期日     世界癌症日 2月4日     世界罕见病日 2月的最后一天</li>-->
+<!--                            <li><p>全国爱耳日 3月3日     世界青光眼日 3月6日     世界罕见病日 2月的最后一天</li>-->
+<!--                            <li><p>世界防治麻风病日 1月最后一个星期日     世界癌症日 2月4日     世界罕见病日 2月的最后一天</li>-->
+<!--                            <li><p>世界防治麻风病日 1月最后一个星期日     世界癌症日 2月4日     世界罕见病日 2月的最后一天</li>-->
+                        </ul>
+                    </div>
+                </div>
+            </div>
+        </div>
     </div>
 
     <!-- footer -->