ajaxGetMore.html
1.67 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
<if condition="$favourite_goods"><style>.rank.rank1{height: 12px;}</style>
<foreach name="favourite_goods" item="v" key="k">
<li style="border: 1px solid #eee;border-radius: 10px; margin-left: 7px;float:left">
<a href="{:U('Mobile/Goods/goodsInfo',array('id'=>$v[goods_id],'stoid'=>I('stoid')))}" title="{$v.goods_name}">
<div class="index_pro">
<div class="products_kuang">
<img src="{:getimg($v['original_img'],NOIMG,0,1)}">
<span class="dis_vm"></span>
<div class="com_sales bk_black">已售:{$v.sales_sum} </div>
</div>
<div class="goods_name">{$v.goods_name}</div>
<div class="price_box price_box_nyf" style="text-align: left;margin-left: 5px;">
<!--什么都没有开通-->
<if condition="$rank_switch!=2 && !$mz_switch">
<p><span class="new_price" style="color: #C4182E;">{:getActualPrice2($v)}</span></p>
<p><del style="font-size: 10px;margin-left: 5px;color: #999;">¥{:getUnderlinePrice($v)}</del></p>
<!--开通美妆-->
<elseif condition="$rank_switch!=2 && $mz_switch" />
<include file="public/getmore_onlymz"/>
<!--开通等级-->
<elseif condition="$rank_switch==2 && !$mz_switch" />
<include file="public/getmore_onlyrank"/>
<!--开通等级,美妆-->
<else/>
<include file="public/getmore_rankmz"/>
</if>
</div>
</div>
</a>
</li>
</foreach>
<script type="text/javascript">
var imgw=$(".product .products_kuang").width();
$(".product .products_kuang").css("height",imgw+'px');
var isshow="<?php echo $mshow ?>";
if(isshow==0){
$('#getmore').hide();
}else{
$('#getmore').show();
}
</script>
</if>