2
13693261870
2022-09-16 653761a31dfeb50dd3d007e892d69c90bf0cdafc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.w3.org/1999/xhtml" >
<head>
    <meta charset="UTF-8" />
    <script th:src="@{${pubzyWebRoot} + 'media/js/jquery-1.11.1.js'}"></script>
    <script th:src="@{${pubzyWebRoot} + 'media/js/winPro.js'}"></script>
    <script src="/js/MenHuMore.js"></script>
    <style>
        body {
            margin: 0;
            font-family: '微软雅黑',"Roboto", sans-serif !important;
            background-color: transparent;
        }
 
        .div_zymain {
            width: 100%;
            height: 270px;
        }
 
        .div_zytitle {
            float: left;
            width: 100%;
            height: 40px;
            margin-top: 25px;
            margin-left: 10px;
        }
 
        .div_zytitle span {
            float: left;
            line-height: 37px;
            font-size: 22px;
            margin-left: 23px;
            color: #4777FF;
            font-weight: 600;
        }
 
        .div_zycontent {
            width: 100%;
            height: 100%;
            float: left;
        }
 
        .zycontent {
            font-size: 16px;
            height: 37px;
            /*margin: 0 5px 0 5px;*/
            width: 90%;
            /*margin-left: 20px;*/
            line-height: 37.3px;
            color: #1e1e1e;
            display: inline-flex;
        }
 
        .zycontent .a {
            width: 90%;
            float: left;
            cursor: pointer;
            font-size:14px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
 
        .div_zynew {
            float: left;
            width: 20px;
            height: 20px;
            margin-top: 3px;
            margin-left: 3px;
            line-height: 19px;
            cursor: default;
        }
 
        ul {
            margin: 0;
        }
 
        li {
            color: #1e1e1e;
            margin-top: 8px;
        }
 
        .moreurl {
            float: left;
            padding: 0px 5px;
            background-color: #4777ff;
            color: white !important;
            font-size: 15px !important;
            border-radius: 3px;
            margin-left: 10px !important;
            font-weight: normal !important;
            cursor: pointer;
            width: 32px;
            margin-top: 8.8px;
        }
    </style>
</head>
<body>
<div class="div_zymain">
    <div class="div_zytitle">
        <span>资讯动态</span>
        <div class="moreurl" onclick="moreUrl();">更多</div>
    </div>
    <div class="div_zycontent"></div>
</div>
</body>
</html>
 
<script th:inline="javascript">
    /*<![CDATA[*/
    var backstageWebRoot = [[${backstageWebRoot}]];
    //var webroot = [[${webroot}]];
    $(function() {
        $.ajax({
            type : "GET",
            url : backstageWebRoot + 'api/sys/pubnews/queryTopList/6',
            success : function(result) {
                var html = "";
                var data = eval(result);
                if (data.length > 0) {
                    html += "<ul>"
                    for (var i = 0; i < data.length; i++) {
                        html += "<li>";
                        // var title = data[i].title.length>17?data[i].title.substring(0,17)+"...":data[i].title;
                        html += "<div class='zycontent'><div style='font-size: 18px;color: #34363f;' title='"+ data[i].title.replace("'","&#39;").replace("\"","&quot;") +"' class='a' onclick=openWin("+data[i].newsid+")>"
                            + data[i].title.replace("'","&#39;").replace("\"","&quot;") + "</div>";
                        // if (i < 2) {
                        //     html += "<div class='div_zynew'><img width='20' height='20' src='/image/MenHuIndex/new.gif'></div></div>";
                        // } else {
                            html += "</div>";
                        // }
                        html += "</li>";
                    }
                    html += "</ul>";
                }
                $(".div_zycontent").html(html);
            }
        });
        // more("更多", "http://" + window.location.host + "/res/PingTaiMenHu/ZiXunIndex?Menu=DTFW&menuId=10", window.location.href);  //增加“更多”
        more("更多", "http://" + window.location.host + "/res/PingTaiMenHu/ZiXunIndex?Menu=DTFW&menuId=10", "http://www.nmsmp.com:8082/login?oldurl=/res/PingTaiMenHu/ZiXunDongTai");  //增加“更多”
    });
 
    function openWin(id) {
        window.open("/res/PingTaiMenHu/ZiXunInfo?newsid="+id, "_blank");
    }
 
    function moreUrl() {
        var url = "/res/PingTaiMenHu/ZiXunIndex?Menu=DTFW&menuId=10";
        window.open(url);
    }
    /*]]>*/
</script>