industry.html
6.5 KB
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="https://at.alicdn.com/t/font_944516_li6nc21b88.css">
<title>公司新闻-行业动态</title>
<link rel="stylesheet" href="__TMPL__/public/assets/css/bootstrap.min.css">
<link rel="stylesheet" href="__TMPL__/public/assets/css/common.css">
<style>
.aboutcompanyname a{
color:#171717;
}
</style>
</head>
<body>
<nav id="common-nav" class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">
<img class="navbar-logo" src="__TMPL__/public/assets/images/img/dfsd@2x.png">
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="{:url('portal/index/index')}">首页</a>
</li>
<li>
<a href="{:url('portal/company/companyIntroduce')}">
关于公司
</a>
</li>
<li>
<a href="{:url('portal/companyProject/personalCompanyProject')}">
公司项目
</a>
</li>
<li>
<a href="{:url('portal/companyNews/industry')}" class="navactive">
新闻动态
</a>
</li>
<li>
<a href="{:url('portal/companyService/townPlan')}">
公司服务
</a>
</li>
<li>
<a href="{:url('portal/invitePeople/viewOfPeople')}">
招贤纳士
</a>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div class="headimg">
<img src="__TMPL__/public/assets/images/img/gdfsgdfgd@2x.png" alt="">
</div>
<div class="container secnav">
<div class="row aboutcompanyname">
<div class="col-md-2 col-sm-2 col-xs-6 invitepeople" >新闻</div>
<div class="col-md-2 col-sm-2 col-xs-6 company">动态</div>
<a href="{:url('portal/companyNews/industry',array('type'=>1))}"><div class="col-md-2 col-sm-2 col-xs-4 companylist <eq name="type" value="1">companylistactive</eq>" >行业动态</div></a>
<a href="{:url('portal/companyNews/industry',array('type'=>2))}"><div class="col-md-2 col-sm-2 col-xs-4 companylist <eq name="type" value="2">companylistactive</eq>" >公司新闻</div></a>
<a href="{:url('portal/companyNews/industry',array('type'=>3))}"><div class="col-md-2 col-sm-2 col-xs-4 companylist <eq name="type" value="3">companylistactive</eq>" >文化交流</div></a>
</div>
</div>
<div class="container containertext">
<div class="row companyrow">
<foreach name="list" item="vo">
<div class="col-md-12 companynewsitem">
<p class="year">{:date('Y',$vo.create_time);}</p>
<p class="month">{:date('m/d',$vo.create_time);}</p>
<div class="row companynewstext">
<if condition="$key/2==0">
<div class="col-md-5 col-sm-12 col-xs-12">
<p class="landscapename">{$vo.title}</p>
<div class="lanscapetext">
{$vo.brief}
</div>
</div>
<div class="col-md-7 col-sm-12 col-xs-12">
<div class="companynewsimg">
<a href="{:url('portal/companyNews/companyNewDetail',array('id'=>$vo.id))}">
<img src="{:cmf_get_image_preview_url($vo.thumbnail)}" alt="">
</a>
</div>
</div>
<else />
<div class="col-md-7 col-sm-12 col-xs-12">
<div class="companynewsimg">
<a href="{:url('portal/companyNews/companyNewDetail',array('id'=>$vo.id))}">
<img src="{:cmf_get_image_preview_url($vo.thumbnail)}" alt="">
</a>
</div>
</div>
<div class="col-md-5 col-sm-12 col-xs-12">
<p class="landscapename">{$vo.title}</p>
<div class="lanscapetext">
{$vo.brief}
</div>
</div>
</if>
</div>
</div>
</foreach>
</div>
<!--<div class="row companynewlist">-->
<!--<div class="col-md-6 col-sm-6 col-xs-6">-->
<!--<div class="companynewtitle">新闻标题新闻标题新闻标题新闻标题新闻标题新闻标题新闻标题新闻标题新闻标题新闻标题新闻标题新闻标题新闻标题新闻标题</div>-->
<!--</div>-->
<!--<div class="col-md-6 col-sm-6 col-xs-6">-->
<!--<p class="companynewdate">10/19</p>-->
<!--</div>-->
<!--</div>-->
<!--<div id="page" class="page_div"></div>-->
<div class="pagination">{$page|default=''}</div>
<div class="footer">版权所有© 渝ICP备18005497号-1</div>
</div>
<script type="text/javascript" src="__TMPL__/public/assets/js/jquery.min.js"></script>
<script type="text/javascript" src="__TMPL__/public/assets/js/paging.js"></script>
<script type="text/javascript" src="__TMPL__/public/assets/js/bootstrap.min.js"></script>
</body>
<script>
console.log($(".companylist"))
$(".companylist").click(function(){
$(this).addClass("companylistactive");
$(this).siblings(".companylist").removeClass("companylistactive")
})
//分页
$("#page").paging({
pageNo:1,
totalPage: 10,
totalSize: 300,
callback: function(num) {
alert(num)
}
})
</script>
</html>