sfooter.html
18.8 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
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
<div style="height:50px; line-height:50px; clear:both;"></div>
<div class="v_nav" style="background-color:#efefef;opacity:0.9">
<div class="vf_nav">
<ul >
<style>
.vf_nav ul li span{color:#333333}
.vf_nav ul li.on span{color:#f00}
.vf_nav ul li i{background-position: center;background-repeat: no-repeat;background-size: auto 85%;;}
.vf_nav ul li .vf_1 {background-image: url(https://mshopimg.yolipai.net/public/upload/template/temp/2017/10-30/f05eec3329d0374c3e74227635af1be4.png);}
.vf_nav ul li.on .vf_1 {background-image: url(https://mshopimg.yolipai.net/public/upload/template/temp/2017/10-30/6da68ef07026b8294e01c78d60544b10.png);}
</style>
<?php if("https://mshop.yolipai.net/mobile/Index/index/stoid/1.html"=="javascript:distri_show()"):?>
<li onclick='distri_show()' style='width:20%' class="<?php if(strpos('https://mshop.yolipai.net/mobile/Index/index/stoid/1.html',strtolower($_SERVER['REQUEST_URI']))): ?>on<?php endif; ?>">
<a>
<i class="vf_1"></i>
<span>首页</span>
</a>
</li>
<?php elseif(strpos(strtolower("https://mshop.yolipai.net/mobile/Index/index/stoid/1.html"),"mobile/cart/cart")):?>
<li style='width:20%' class="<?php if(strpos(strtolower('https://mshop.yolipai.net/mobile/Index/index/stoid/1.html'),strtolower($_SERVER['REQUEST_URI']))): ?>on<?php endif; ?>">
<a <?php if('https://mshop.yolipai.net/mobile/Index/index/stoid/1.html' != ''): ?>href="https://mshop.yolipai.net/mobile/Index/index/stoid/1.html"<?php endif; ?>>
<em class="global-nav__nav-shop-cart-num" id="cart_quantity_red" style="right:9px;"><cartnum item='v'>{$v}</cartnum></em>
<i class="vf_1" ></i>
<span>首页</span>
</a>
</li>
<script>
$(document).ready(function() {
var cart_cn = '';
$.ajax({
type: "GET",
url: "/index.php?m=Mobile&c=Cart&a=getNum&stoid={$Think.request.stoid}",
success: function (data) {
if(data=="" || data==undefined ) date="0";
cart_cn = parseInt(data);
$('#cart_quantity_red').html(cart_cn);
}
});
});
</script>
<?php else:?>
<li style='width:20%' class="<?php if(strpos(strtolower('https://mshop.yolipai.net/mobile/Index/index/stoid/1.html'),strtolower($_SERVER['REQUEST_URI']))): ?>on<?php endif; ?>">
<a <?php if('https://mshop.yolipai.net/mobile/Index/index/stoid/1.html' != ''): ?>href="https://mshop.yolipai.net/mobile/Index/index/stoid/1.html"<?php endif; ?>>
<i class="vf_1"></i>
<span>首页</span>
</a>
</li>
<?php endif; ?>
<style>
.vf_nav ul li span{color:#333333}
.vf_nav ul li.on span{color:#f00}
.vf_nav ul li i{background-position: center;background-repeat: no-repeat;background-size: auto 85%;;}
.vf_nav ul li .vf_2 {background-image: url(https://mshopimg.yolipai.net/public/upload/template/temp/2017/10-30/42851882c72314a9b1ee232a02687ded.png);}
.vf_nav ul li.on .vf_2 {background-image: url(https://mshopimg.yolipai.net/public/upload/template/temp/2017/10-30/fb1dcb9c4515ed443fd099218c58ff34.png);}
</style>
<?php if("javascript:distri_show()"=="javascript:distri_show()"):?>
<li onclick='distri_show()' style='width:20%' class="<?php if(strpos('javascript:distri_show()',strtolower($_SERVER['REQUEST_URI']))): ?>on<?php endif; ?>">
<a>
<i class="vf_2"></i>
<span>分销</span>
</a>
</li>
<?php elseif(strpos(strtolower("javascript:distri_show()"),"mobile/cart/cart")):?>
<li style='width:20%' class="<?php if(strpos(strtolower($_SERVER['REQUEST_URI']),'mobile/distribut')): ?>on<?php endif; ?>">
<a <?php if('javascript:distri_show()' != ''): ?>href="javascript:distri_show()"<?php endif; ?>>
<em class="global-nav__nav-shop-cart-num" id="cart_quantity_red" style="right:9px;"><cartnum item='v'>{$v}</cartnum></em>
<i class="vf_2" ></i>
<span>分销</span>
</a>
</li>
<script>
$(document).ready(function() {
var cart_cn = '';
$.ajax({
type: "GET",
url: "/index.php?m=Mobile&c=Cart&a=getNum&stoid={$Think.request.stoid}",
success: function (data) {
if(data=="" || data==undefined ) date="0";
cart_cn = parseInt(data);
$('#cart_quantity_red').html(cart_cn);
}
});
});
</script>
<?php else:?>
<li style='width:20%' class="<?php if(strpos(strtolower('javascript:distri_show()'),strtolower($_SERVER['REQUEST_URI']))): ?>on<?php endif; ?>">
<a <?php if('javascript:distri_show()' != ''): ?>href="javascript:distri_show()"<?php endif; ?>>
<i class="vf_2"></i>
<span>分销</span>
</a>
</li>
<?php endif; ?>
<style>
.vf_nav ul li span{color:#333333}
.vf_nav ul li.on span{color:#f00}
.vf_nav ul li i{background-position: center;background-repeat: no-repeat;background-size: auto 85%;;}
.vf_nav ul li .vf_3 {background-image: url(https://mshopimg.yolipai.net/public/upload/template/temp/2017/10-30/525bdb865ad55f5e43a8917dad1c5f97.png);}
.vf_nav ul li.on .vf_3 {background-image: url(https://mshopimg.yolipai.net/public/upload/template/temp/2017/10-30/7aa71e08f066d1a4eb158c7c721444a4.png);}
</style>
<?php if("https://mshop.yolipai.net/mobile/cart/cart/stoid/1.html"=="javascript:distri_show()"):?>
<li onclick='distri_show()' style='width:20%' class="<?php if(strpos('https://mshop.yolipai.net/mobile/cart/cart/stoid/1.html',strtolower($_SERVER['REQUEST_URI']))): ?>on<?php endif; ?>">
<a>
<i class="vf_3"></i>
<span>购物车</span>
</a>
</li>
<?php elseif(strpos(strtolower("https://mshop.yolipai.net/mobile/cart/cart/stoid/1.html"),"mobile/cart/cart")):?>
<li style='width:20%' class="<?php if(strpos(strtolower('https://mshop.yolipai.net/mobile/cart/cart/stoid/1.html'),strtolower($_SERVER['REQUEST_URI']))): ?>on<?php endif; ?>">
<a <?php if('https://mshop.yolipai.net/mobile/cart/cart/stoid/1.html' != ''): ?>href="https://mshop.yolipai.net/mobile/cart/cart/stoid/1.html"<?php endif; ?>>
<em class="global-nav__nav-shop-cart-num" id="cart_quantity_red" style="right:9px;"><cartnum item='v'>{$v}</cartnum></em>
<i class="vf_3" ></i>
<span>购物车</span>
</a>
</li>
<script>
$(document).ready(function() {
var cart_cn = '';
$.ajax({
type: "GET",
url: "/index.php?m=Mobile&c=Cart&a=getNum&stoid={$Think.request.stoid}",
success: function (data) {
if(data=="" || data==undefined ) date="0";
cart_cn = parseInt(data);
$('#cart_quantity_red').html(cart_cn);
}
});
});
</script>
<?php else:?>
<li style='width:20%' class="<?php if(strpos(strtolower('https://mshop.yolipai.net/mobile/cart/cart/stoid/1.html'),strtolower($_SERVER['REQUEST_URI']))): ?>on<?php endif; ?>">
<a <?php if('https://mshop.yolipai.net/mobile/cart/cart/stoid/1.html' != ''): ?>href="https://mshop.yolipai.net/mobile/cart/cart/stoid/1.html"<?php endif; ?>>
<i class="vf_3"></i>
<span>购物车</span>
</a>
</li>
<?php endif; ?>
<style>
.vf_nav ul li span{color:#333333}
.vf_nav ul li.on span{color:#f00}
.vf_nav ul li i{background-position: center;background-repeat: no-repeat;background-size: auto 85%;;}
.vf_nav ul li .vf_4 {background-image: url(https://mshopimg.yolipai.net/public/upload/template/temp/2017/10-30/28e4f2358dedc8b8e5b3bcc155b99b2f.png);}
.vf_nav ul li.on .vf_4 {background-image: url(https://mshopimg.yolipai.net/public/upload/template/temp/2017/10-30/13475deeec4dde52b63f476e90748248.png);}
</style>
<?php if("https://mshop.yolipai.net/mobile/Goods/categoryList/stoid/1.html"=="javascript:distri_show()"):?>
<li onclick='distri_show()' style='width:20%' class="<?php if(strpos('https://mshop.yolipai.net/mobile/Goods/categoryList/stoid/1.html',strtolower($_SERVER['REQUEST_URI']))): ?>on<?php endif; ?>">
<a>
<i class="vf_4"></i>
<span>分类</span>
</a>
</li>
<?php elseif(strpos(strtolower("https://mshop.yolipai.net/mobile/Goods/categoryList/stoid/1.html"),"mobile/cart/cart")):?>
<li style='width:20%' class="<?php if(strpos(strtolower('https://mshop.yolipai.net/mobile/Goods/categoryList/stoid/1.html'),strtolower($_SERVER['REQUEST_URI']))): ?>on<?php endif; ?>">
<a <?php if('https://mshop.yolipai.net/mobile/Goods/categoryList/stoid/1.html' != ''): ?>href="https://mshop.yolipai.net/mobile/Goods/categoryList/stoid/1.html"<?php endif; ?>>
<em class="global-nav__nav-shop-cart-num" id="cart_quantity_red" style="right:9px;"><cartnum item='v'>{$v}</cartnum></em>
<i class="vf_4" ></i>
<span>分类</span>
</a>
</li>
<script>
$(document).ready(function() {
var cart_cn = '';
$.ajax({
type: "GET",
url: "/index.php?m=Mobile&c=Cart&a=getNum&stoid={$Think.request.stoid}",
success: function (data) {
if(data=="" || data==undefined ) date="0";
cart_cn = parseInt(data);
$('#cart_quantity_red').html(cart_cn);
}
});
});
</script>
<?php else:?>
<li style='width:20%' class="<?php if(strpos(strtolower('https://mshop.yolipai.net/mobile/Goods/categoryList/stoid/1.html'),strtolower($_SERVER['REQUEST_URI']))): ?>on<?php endif; ?>">
<a <?php if('https://mshop.yolipai.net/mobile/Goods/categoryList/stoid/1.html' != ''): ?>href="https://mshop.yolipai.net/mobile/Goods/categoryList/stoid/1.html"<?php endif; ?>>
<i class="vf_4"></i>
<span>分类</span>
</a>
</li>
<?php endif; ?>
<style>
.vf_nav ul li span{color:#333333}
.vf_nav ul li.on span{color:#f00}
.vf_nav ul li i{background-position: center;background-repeat: no-repeat;background-size: auto 85%;;}
.vf_nav ul li .vf_5 {background-image: url(https://mshopimg.yolipai.net/public/upload/template/temp/2017/10-30/60724bcd684ad784025eade7a644aad9.png);}
.vf_nav ul li.on .vf_5 {background-image: url(https://mshopimg.yolipai.net/public/upload/template/temp/2017/10-30/29572bfb733676f21619c5a17a498745.png);}
</style>
<?php if("https://mshop.yolipai.net/mobile/User/index/stoid/1.html"=="javascript:distri_show()"):?>
<li onclick='distri_show()' style='width:20%' class="<?php if(strpos('https://mshop.yolipai.net/mobile/User/index/stoid/1.html',strtolower($_SERVER['REQUEST_URI']))): ?>on<?php endif; ?>">
<a>
<i class="vf_5"></i>
<span>我的</span>
</a>
</li>
<?php elseif(strpos(strtolower("https://mshop.yolipai.net/mobile/User/index/stoid/1.html"),"mobile/cart/cart")):?>
<li style='width:20%' class="<?php if(strpos(strtolower('https://mshop.yolipai.net/mobile/User/index/stoid/1.html'),strtolower($_SERVER['REQUEST_URI']))): ?>on<?php endif; ?>">
<a <?php if('https://mshop.yolipai.net/mobile/User/index/stoid/1.html' != ''): ?>href="https://mshop.yolipai.net/mobile/User/index/stoid/1.html"<?php endif; ?>>
<em class="global-nav__nav-shop-cart-num" id="cart_quantity_red" style="right:9px;"><cartnum item='v'>{$v}</cartnum></em>
<i class="vf_5" ></i>
<span>我的</span>
</a>
</li>
<script>
$(document).ready(function() {
var cart_cn = '';
$.ajax({
type: "GET",
url: "/index.php?m=Mobile&c=Cart&a=getNum&stoid={$Think.request.stoid}",
success: function (data) {
if(data=="" || data==undefined ) date="0";
cart_cn = parseInt(data);
$('#cart_quantity_red').html(cart_cn);
}
});
});
</script>
<?php else:?>
<li style='width:20%' class="<?php if(strpos(strtolower('https://mshop.yolipai.net/mobile/User/index/stoid/1.html'),strtolower($_SERVER['REQUEST_URI']))): ?>on<?php endif; ?>">
<a <?php if('https://mshop.yolipai.net/mobile/User/index/stoid/1.html' != ''): ?>href="https://mshop.yolipai.net/mobile/User/index/stoid/1.html"<?php endif; ?>>
<i class="vf_5"></i>
<span>我的</span>
</a>
</li>
<?php endif; ?>
</ul>
</div>
</div>
<div class="layermbox guize dn" >
<div class="laymshade"></div>
<div class="layermmain">
<div class="section">
<div class="layermchild layermanim" style="width:80%">
<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" style="width:80%">
<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;">商家暂时未开启分销,敬请期待哦!</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" style="width:80%">
<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="t_distri_stoid" value="{:I('stoid/d',1)}" type="hidden"/>
<script>
/*-----弹窗-----*/
function distri_show() {
$.ajax({
type: "GET",url: "/index.php?m=Mobile&c=User&a=is_distribut&stoid=" + $("#t_distri_stoid").val(),
success: function(data) {
/*---
if (data.status == -1) {
window.location.href = "{:U('user/login',array('stoid'=>$Think.request.stoid))}";
} else {
if (data.status == 1) {
window.location.href = "{:U('Distribut/index',array('stoid'=>$Think.request.stoid))}";
} else if (data.status == 0) {
$("#condition_money").text("满" + data.data.condition_money + "元");
$("#condition_explain").text(data.data.condition_explain);
$(".guize").removeClass("dn");
} else //未启用
$(".fxs").removeClass("dn");
}---*/
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 gdid=$(ob).attr('gid');
if(gdid!="" && gdid!=null && gdid!=undefined ){
window.location.href = "/index.php/Mobile/Goods/goodsInfo/stoid/{$Think.request.stoid}/id/"+gdid;
}else {
window.location.href = "{:U('Index/index',array('stoid'=>$Think.request.stoid))}";
}
}
</script>
<include file="public/wx_share" />