7800dd755dd83d694368345efab355c3.php
9.7 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:70:"/www/wwwroot/menhu/public/../application/index/view/huiyuan/index.html";i:1575945263;s:61:"/www/wwwroot/menhu/application/index/view/layout/default.html";i:1576722830;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title><?php echo $title['title']; ?></title>
<link rel="stylesheet" href="/statis/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="/statis/css/base.css">
<link rel="stylesheet" href="/statis/css/index.css">
<link rel="stylesheet" href="/statis/css/public.css">
<link rel="stylesheet" href="/statis/css/swiper.min.css">
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=d6PnuoA0EWXbee3HpVP84MT2GsflcVQk"></script>
<script src="/statis/js/swiper.min.js"></script>
<script src="/statis/js/jquery.js"></script>
<script src="/statis/js/include.js"></script>
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
</head>
<body>
<div class="indexBox">
<!-- 顶部 -->
<div class="top_bg">
<div class="top_width">
<!-- 最上面 -->
<div class="top_item clearfix">
<div class="top_itemL clearfix">
<img class="top_itemImg" src="/statis/image/gonggao_img.png" alt="">
<div class="top_itemTxt">公告:<a href="/index/gg/detail?id=<?php echo $titlegg[0]['id']; ?>&style=1"><?php echo $titlegg[0]["title"]; ?></a></div>
</div>
<div class="top_itemR">
<span><a href="/index/index/contactMe">联系我们</a></span>|
<span><a href="/index/release/index">发布留言</a></span>|
<span>添加收藏</span>
</div>
</div>
<!-- 第二部分 -->
<div class="top_item2 clearfix">
<div class="top_item2L clearfix">
<!-- logo -->
<div class="top_item2Img"><img src="/statis/image/logo_icon.png" alt=""></div>
<div class="top_item2Box">
<h2>中关村国联绿色产业服务创新联盟</h2>
<p>Zhongguancun Green Industry Alliance</p>
</div>
</div>
<div class="top_item2R clearfix" style="<?php echo session('login')?'display:none':''; ?>">
<form id="formLog" class="top_item2Form">
<div class="top_formLi">
<label for="">帐号:</label>
<input type="hidden" name="location" id="location2">
<input type="text" name="tel">
</div>
<div class="top_formLi">
<label for="">密码:</label>
<input type="text" name="user_password">
</div>
</form>
<div class="top_item2Box2" >
<div class="top_item2Box3 clearfix">
<div class="top_item2_Txt login">会员登录</div>
<div class="top_item2_img"><img src="/statis/image/qq_icon.png" alt=""></div>
<div class="top_item2_img"><img src="/statis/image/weixin_icon.png" alt=""></div>
</div>
<div class="top_item2Box4">
<a href="/index/login/register">新用户注册</a>
<a href="/index/login/password">密码找回</a>
</div>
</div>
</div>
<div class="top_item2R" style="<?php echo session('login')?'':'display:none'; ?>">
<div class="top_item2Box5 clearfix">
<a href="/index/index/personal">
<div class="top_item2Img2"><img src="<?php echo session('user')['image']==''?'/statis/image/touxiang_imh.png':session('user')['image']; ?>" alt=""></div>
<div class="top_item2Box6">
<div class="top_item2Name one-txt-cut"><?php echo session('user')['user_name']; ?></div>
<div class="top_item2Area one-txt-cut" id="location">天津</div>
</div>
</a>
<a href="/index/gg/index?style=3"><div class="top_item2News">消息<span>(<?php echo $nums; ?>)</span></div></a>
</div>
</div>
</div>
</div>
</div>
<!-- 导航 -->
<div class="nav">
<div class="nav_width">
<div class="nav_imag">
<a href="/">
<img src="/statis/image/zhuye_icon.png" alt="">
</a>
</div>
<div class="nav_List">
<ul>
<?php foreach($menu as $v): ?>
<li data-id="<?php echo $v['id']; ?>" data-url="<?php echo $v['url']; ?>">
<a href="<?php echo $v['url']; ?>?pid=<?php echo $v['id']; ?>" onmouseover="move('<?php echo $v['id']; ?>','<?php echo $v['url']; ?>',this)">
<div class="nav_Txt one-txt-cut"><?php echo $v['title']; ?></div>
</a>
<div class="nav_down">
</div>
</li>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>
<div class="max-width">
<!-- 当前位置 -->
<div class="current">
<a href="">首页</a>
<span>></span>
<a href="">会员服务</a>
</div>
<!-- 内容 -->
<div class="online_Con clearfix">
<div class="news_nav">
<h1 class="news_Txt">会员服务</h1>
<ul>
<?php foreach($left as $le): ?>
<a href="/index/huiyuan/index?pid=<?php echo $le['id']; ?>">
<li class="clearfix">
<p class="news_Txt2 one-txt-cut"><?php echo $le['title']; ?></p>
</li>
</a>
<?php endforeach; ?>
</ul>
</div>
<div class="news_List">
<ul>
<?php foreach($list as $l): ?>
<li class="clearfix">
<div class="news_Img"><img src="<?php echo $l['image']; ?>" alt=""></div>
<div class="news_Box2">
<p class="news_Txt5 tender_Txt txt-cut"><?php echo $l['title']; ?></p>
</div>
<div class="news_Txt6"><?php echo $l['createtime']; ?></div>
<a href="/index/huiyuan/detail?id=<?php echo $l['id']; ?>" class="news_Txt7">[详情]</a>
</li>
<?php endforeach; ?>
</ul>
<nav aria-label="Page navigation" class="page">
<?php echo $list->render(); ?>
</nav>
</div>
</div>
</div>
<!-- footer -->
<footer class="footer">
<div class="footer_top">
<div class="footer_width">
<div class="footer_Txt">
|<?php foreach($menu as $v): ?>
<a href="<?php echo $v['url']; ?>?pid=<?php echo $v['id']; ?>">
<span><?php echo $v['title']; ?></span>|
</a>
<?php endforeach; ?>
</div>
<p class="footer_Txt2">版权所有:<span>中关村国联绿色产业服务创新联盟</span></p>
<p class="footer_Txt2">北京市大兴区同济中路甲7号院</p>
<p class="footer_Txt2">京ICP备05052419号</p>
</div>
</div>
<div class="footer_bot"></div>
</footer>
<script>
$("#location").html(returnCitySN["cname"]);
$("#location1").html(returnCitySN["cname"]);
$("#location2").val(returnCitySN["cname"]);
</script>
</div>
</body>
</html>
<script>
$(".login").on("click",function () {
var data=$("#formLog").serialize();
ajax("/index/login/login",data,"post",function (res) {
w(res.msg);
if(res.code==200){
setTimeout(function () {
location.href="/index/index/index";
},500)
}
},"false");
})
function move(id,href,e) {
var data={'id':id};
ajax("/index/index/menu",data,"post",function (res) {
if(res.msg!=""){
console.log(1212);
var msg=res.msg;
var html='';
for(var i=0;i<msg.length;i++){
var href1=href+"?pid="+msg[i].id;
html+='<div class="nav_Txt2">'+
' <a class="one-txt-cut" href="'+href1+'">'+msg[i].title+'</a>'+
'</div>'+
''+
'';
}
$(e).parent().find(".nav_down").html(html);
}
},"false");
}
$('.nav_List ul li').mouseover(function() {
console.log($(this));
// move($(this).data("id"),$(this).data("url"),this);
$(this).find('.nav_down').stop().slideDown(300).parents('li').siblings().find('.nav_down').stop().slideUp(300);
}).mouseout(function() {
$(this).find('.nav_down').stop().slideUp(300);
})
</script>