ajaxdistribution.html
4.98 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
<foreach name="goods_list" item="vo" key="k">
<li>
<div class="item" >
<if condition="$vo[dis_type] eq '0'">
<div class="pic_box pic_box1" style="margin-left: 0" ahref="{:U('Mobile/Goods/goodsInfo',array('stoid'=>$Think.request.stoid,'id'=>$vo[goods_id]))}" onclick="gopro(this)">
<else />
<div class="pic_box pic_box1" ahref="{:U('Mobile/Goods/goodsInfo',array('stoid'=>$Think.request.stoid,'id'=>$vo[goods_id]))}" onclick="gopro(this)">
</if> <!--<div class="active_box">-->
<!--<span style=" background-position:0px -36px">新品</span>-->
<!--</div>-->
<!--<img src="{$vo.goods_id|goods_thum_images=400,400}">-->
<img src="{:getimg($vo['original_img'],NOIMG,0,1)}">
</div>
<div class="title_box">{$vo.goods_name}</div>
<div class="font0" style="position: relative;">
<if condition="$vo[dis_type] eq '0'">
<!--<div class="commodityMain">主营</div>-->
<else />
<div class="check-wrapper">
<span class="cart-checkbox " id="checked_{$vo.goods_id}" onclick="chkOne_onclick({$vo.goods_id})">
<!-- <input type="cart-checkbox " autocomplete="off" name="cart_select[3985]" style="" value="1" onclick="ajax_cart_list();"> -->
</span>
</div>
</if>
<!-- <div class="commodityMain">主营</div> -->
<!-- <div class="check-wrapper">
<span class="cart-checkbox checked">
<input type="cart-checkbox " autocomplete="off" name="cart_select[3985]" style="" value="1" onclick="ajax_cart_list();">
</span>
</div> -->
<input type="hidden" name="hidtype" id="hidtype" value="{$vo.goods_id}">
<div class="price_box price_box1">
<span class="new_price" style="text-align: right;float: right;height: 40px;line-height: 20px">
<i style="display: block;">¥
<if condition="($vo.prom_type eq 0 || $vo.prom_type eq 3) && $rank_field && $vo[$rank_field] neq 0">
{$vo[$rank_field]}
<else/>
<if condition="($vo.prom_type eq 0 || $vo.prom_type eq 3) && $mz_vip && $vo.mz_price neq 0">
{$vo.mz_price}
<else/>
{$vo.final_price}
</if>
</if>
</i>
<if condition="$pattern neq 1">
<if condition="$vo.prom_integral">
+{$vo.prom_integral}积分<span class="c-9 font14" style="margin-left: 10px;">分成金额:¥{$vo.fcommission}</span>
<else/>
<span class="c-9 font14" style="margin-left: 10px;">分成金额:¥{$vo.fcommission}</span>
</if>
<else/>
<if condition="$vo.prom_integral">
+{$vo.prom_integral}积分<span class="c-9 font14" style="margin-left: 10px;">分成金额:¥{$vo.fir_rate+$vo.sec_rate+$vo.thi_rate}</span>
<else/>
<span class="c-9 font14" style="margin-left: 10px;">分成金额:¥{$vo.fir_rate+$vo.sec_rate+$vo.thi_rate}</span>
</if>
</if>
</span>
<!--<if condition="$vo.isup eq 1">-->
<!--<br><p class="new_price " style="font-size: 14px;">已选</p>-->
<!--</if>-->
</div>
<div class="clear"></div>
</div>
</div>
</li>
</foreach>
<script>
$(function(){
var isshow="<?php echo $mshow ?>";
if(isshow==0){
$('#getmore').hide();
}
else {
$('#getmore').show();
}
<notempty name="filter_price">
var prjs={$filter_price};
var html="<div class='filtrate_category filtrate_category_price'><a href='javascript:;' class='filtrate_category_a'>价格<span class='up_down'>全部展开</span></a></div><ul class='filtrate_address filtrate_list att_item' style='display: block; -webkit-transform-origin: 0px 0px 0px; opacity: 1; -webkit-transform: scale(1, 1);'>";
for(v in prjs){
html+="<li><a onclick='gosorturl(this)' a-href='"+prjs[v].href+"/stoid/{$Think.request.stoid}'>"+prjs[v].value+"</a></li>";
}
html+="<div style='clear:both'></div></ul>";
$("#ff_price").html(html);
$('.filtrate_has li').click(function () {
$(this).find("input").attr("checked", "checked");
$('.filtrate_has li').removeClass("on");
$(this).addClass("on");
})
$('.filtrate_has1 li').click(function () {
if ($(this).hasClass("on")) {
$(this).find("input").attr("checked", "");
$(this).removeClass("on");
}
else {
$(this).find("input").attr("checked", "checked");
$(this).addClass("on");
}
})
$(".filtrate_category_price a").click(function() {
$(this).hasClass("filtrate_category_show") ? ($(this).parent().removeClass("fixed"), $(this).parent().next(".filtrate_list").css("margin-top", "0").hide(), $(this).removeClass("filtrate_category_show"),$(this).children("span").html("展开")) : ($(this).parent().removeClass("fixed"), $(this).parent().next(".filtrate_list").show(), $(this).addClass("filtrate_category_show"), $(this).children("span").html("收起"), $(this).parent().next(".filtrate_list").find("li").show())
})
</notempty>
});
</script>