footer_nav.html
10.3 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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
<?php $ft=time();if($fcustom_footer!="public/empty"):?>
<include file="$fcustom_footer"/><input id="{$ft}" type="hidden">
<?php else:?>
<style type="text/css">
/*修改 left,width 20170327*/
.qqkefu {
position: fixed;
left: 20%;
bottom: 50px;
background-color: #fff;
border: 1px #eee solid;
width: 20%;
z-index: 999;
}
.qqkefu ul li {
border-bottom: 1px #eee solid;
height: 45px;
line-height: 45px;
font-size: 16px;
color: #666;
width: 100%;
text-align: center;
background-position: .1rem center;
overflow: hidden;
}
.layermchild {
width: 80%;
position: relative;
border-radius: 8px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
text-align: left;
}
.vf_1{background: url(__STATIC__/images/all/index.png) no-repeat center center;background-size: 25px 25px;}
.vf_2{background: url(__STATIC__/images/all/fl.png) no-repeat center center;background-size: 25px 25px;}
.vf_3{background: url(__STATIC__/images/all/fx.png) no-repeat center center;background-size: 25px 25px;}
.vf_4{background: url(__STATIC__/images/all/car.png) no-repeat center center;background-size:25px 25px;}
.vf_5{background: url(__STATIC__/images/all/user.png) no-repeat center center;background-size:95%;}
.vf_1.on{
background: url(__STATIC__/images/all/index_on.png) no-repeat center center;
background-size: 25px 25px;
}
.vf_2.on{
background: url(__STATIC__/images/all/fl_on.png) no-repeat center center;
background-size: 25px 25px;
}
.vf_3.on{
background: url(__STATIC__/images/all/fx_on.png) no-repeat center center;
background-size: 25px 25px;
}
.vf_4.on{
background: url(__STATIC__/images/all/car_on.png) no-repeat center center;
background-size: 25px 25px;
}
.vf_5.on{
background: url(__STATIC__/images/all/user_on.png) no-repeat center center;
background-size: 95%;
}
.c-r{
color: #f13130;
}
</style>
<div style="height:50px; line-height:50px; clear:both;"></div>
<div class="v_nav">
<div class="vf_nav">
<ul>
<li>
<a href="{:U('Index/index',array('stoid'=>$Think.request.stoid))}">
<i class="vf_1 <?php if('index/index'==get_path()): ?>on<?php endif; ?>"></i>
<span class="<?php if('index/index'==get_path()): ?>c-r<?php endif; ?>">首页</span></a>
</li>
<!--<li><a href="javascript:void(0)" onclick="showQQList()">
<i class="vf_2"></i>
<span>客服</span></a></li>-->
<li>
<a href="{:U('Goods/categoryList',array('stoid'=>$Think.request.stoid))}">
<i class="vf_2 <?php if('goods/categorylist'==get_path()): ?>on<?php endif; ?>"></i>
<span class="<?php if('goods/categorylist'==get_path()): ?>c-r<?php endif; ?>">分类</span></a>
</li>
<li onclick="show()">
<a >
<i class="vf_3 <?php if('distribut/index'==get_path()): ?>on<?php endif; ?>"></i>
<span class="<?php if('distribut/index'==get_path()): ?>c-r<?php endif; ?>">分销</span></a>
</li>
<li>
<a href="{:U('Cart/cart',array('stoid'=>$Think.request.stoid))}">
<em class="global-nav__nav-shop-cart-num" id="cart_quantity_red" style="right:9px;"></em>
<i class="vf_4 <?php if('cart/cart'==get_path()): ?>on<?php endif; ?>"></i>
<span class="<?php if('cart/cart'==get_path()): ?>c-r<?php endif; ?>">购物车</span>
</a>
</li>
<li>
<a href="<?php echo '/index.php/Mobile/User/index/stoid/'.I('stoid') ?>">
<i class="vf_5 <?php if('user/index'==get_path()): ?>on<?php endif; ?>"></i>
<span class="<?php if('user/index'==get_path()): ?>c-r<?php endif; ?>">我的</span></a>
</li>
</ul>
</div>
</div>
<!--规则弹窗-->
<div class="guize layermbox dn">
<div class="laymshade"></div>
<div class="layermmain">
<div class="section">
<div class="layermchild layermanim">
<div class="layermcont" style="padding: 0;">
<div class="rule">
<div class="ruleClose" onclick="closeRule()"></div>
<p class="ruleTit">分销规则说明</p>
<ul class="ruleTxt">
<li id="buy_money" style="border-left: 1px dotted #ffd943;">
<div class="car"></div>
<div id="f_conditon_c">在商城里进行购<span class="cr">满299元</span>即可成为分销商</div>
</li>
<li>
<div class="fx"></div>
成功成为{$tpshop_config['shop_info_store_title']}分销商分享商品给好友即可获得相应收益
</li>
</ul>
<div id="condition_explain" class="explain">
*我是说明我是说明我是说明我是说明我是说明我是说明我是说明我是说明我是说明我是说明我是说明我是说明我是说明
</div>
<div class="goumai" onclick="goumai(this)" gid="">去购买</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="layermbox fxs dn">
<div class="laymshade"></div>
<div class="layermmain">
<div class="section">
<div class="layermchild layermanim">
<div class="layermcont" style="padding: 0;">
<div class="rule">
<div class="ruleClose" onclick="closeRule()"></div>
<p class="ruleTit">提示</p>
<div>
<img src="__STATIC__/images/user/fenxiao.png" style="width: 50%;" />
<p style="margin: 20px auto;color: #60585c">商家暂时未开启分销,敬请期待哦!</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="layermbox nfxfull dn">
<div class="laymshade"></div>
<div class="layermmain">
<div class="section">
<div class="layermchild layermanim">
<div class="layermcont" style="padding: 0;">
<div class="rule">
<div class="ruleClose" onclick="closeRule()"></div>
<p class="ruleTit">提示</p>
<div>
<img src="__STATIC__/images/user/fenxiao.png" style="width: 50%;" />
<p style="margin-top:25px; line-height: 0;
height: 10px;color: #60585c" id="sjmsg"></p>
<p style="margin-bottom:30px;color: #60585c">请联系商家升级!</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<input id="stoid" type="hidden" value="{$Think.request.stoid}">
<div class="qqkefu dn">
<ul id="fqqlist"></ul>
</div>
<script type="text/javascript">
var qqlist = "{$tpshop_config['qqlist']}";
$(document).ready(function() {
var cart_cn = '';
$.ajax({
type: "GET",
url: "/index.php?m=Mobile&c=Cart&a=getNum&stoid=" + $("#stoid").val(), //+tab,
success: function(data) {
cart_cn = parseInt(data);
$('#cart_quantity_red').html(cart_cn);
},error:function () {
$('#cart_quantity_red').html("0");
}
});
if (qqlist != undefined && qqlist != "") {
var list = qqlist.split(",");
var htm = "";
for (var i = 0; i < list.length; i++) {
htm += "<li><a target='_blank' href='http://wpa.qq.com/msgrd?v=3&uin=" + list[i] + "&site=qq&menu=yes'>客服" + (i + 1) + "<a></li>"
}
$("#fqqlist").html(htm);
}
});
function showQQList() {
$(".qqkefu").fadeToggle();
}
//弹窗
function show(){
$.ajax({
type: "GET",
url: "/index.php?m=Mobile&c=User&a=is_distribut&stoid=" + $("#stoid").val(), //+tab,
success: function(data) {
/*----
if(data.status==1){
window.location.href="{:U('Distribut/index',array('stoid'=>$Think.request.stoid))}";
}
else{
$("#condition_money").text("满"+data.data.condition_money+"元");
$("#condition_explain").text(data.data.condition_explain);
$(".fgzf.layermbox").show();
}----*/
switch (data.status)
{
case -1:
window.location.href = "{:U('user/login',array('stoid'=>$Think.request.stoid))}";
break;
case 1:
window.location.href = "{:U('Distribut/index',array('stoid'=>$Think.request.stoid))}";
break;
case 2:
var htm='在商城里进行购买<span class="cr">'+ data.data.condition_goods_name + '</span>即可成为分销商';
$("#f_conditon_c").html(htm);
$('.goumai').attr('gid',data.data.condition_goods_id);
$("#condition_explain").text(data.data.condition_explain);
$(".guize").removeClass("dn");
$(".guize").show();
break;
case 3:
var htm='在商城里进行购买满<span class="cr">' +data.data.condition_money + '</span>或者购买<span class="cr">' + data.data.condition_goods_name + '</span>即可成为分销商';
$("#f_conditon_c").html(htm);
$('.goumai').attr('gid',data.data.condition_goods_id);
$("#condition_explain").text(data.data.condition_explain);
$(".guize").removeClass("dn");
$(".guize").show();
break;
case 0:
var htm='在商城里进行购买满<span class="cr">' + data.data.condition_money + '</span>即可成为分销商';
$("#f_conditon_c").html(htm);
$("#condition_explain").text(data.data.condition_explain);
$(".guize").removeClass("dn");
$(".guize").show();
break;
case -2://未启用
$(".fxs").removeClass("dn");
$(".fxs").show();
break;
case -3://会员已满
$(".nfxfull").removeClass("dn");
$(".nfxfull").show();
$("#sjmsg").text(data.msg)
break;
}
}
});
}
//关闭弹窗
function closeRule(){
$(".guize").hide();$(".fxs").hide();$(".nfxfull").hide();
}
//购买
function goumai(ob){
var gid=$(ob).attr('gid');
if(gid!=""){
window.location.href="/index.php/mobile/goods/goodsInfo/stoid/{$Think.request.stoid}/id/"+gid;
}else{
window.location.href="{:U('Index/index',array('stoid'=>$Think.request.stoid))}";
}
}
</script>
<?php endif?>