1324 lines
57 KiB
HTML
1324 lines
57 KiB
HTML
{template '_header'}
|
||
<style>
|
||
.fui-cell-group{width:100%;}
|
||
.fullback-title{color:#999999;font-size:0.7rem;padding:0.75rem 0 0.5rem 0;}
|
||
.fullback-info{}
|
||
.fullback-info p{height:1rem;line-height: 1rem;font-size:0.625rem;color:#333;display: inline-block;padding:0 0.5rem 0 0;}
|
||
.fullback-info p i{border:none;height:0.75rem;width:0.75rem;display: inline-block;background: #ff4753;color:#fff;font-size:0.4rem;line-height: 0.8rem;text-align: center;
|
||
font-style: normal;border-radius: 0.75rem;-webkit-border-radius: 0.75rem;margin-right:0.25rem;}
|
||
.fullback-remark{line-height: 1rem;font-size:0.6rem;color:#666;padding:0.2rem 0;}
|
||
</style>
|
||
<link rel="stylesheet" type="text/css" href="../addons/{EWEI_SHOP_V2_MODULE_NAME}/template/mobile/default/static/css/coupon.css?v=2.0.0">
|
||
<link rel="stylesheet" type="text/css" href="../addons/{EWEI_SHOP_V2_MODULE_NAME}/template/mobile/default/static/css/coupon-new.css?v=2017030302">
|
||
<link rel="stylesheet" href="../addons/{EWEI_SHOP_V2_MODULE_NAME}/static/js/dist/swiper/swiper.min.css">
|
||
|
||
{if !empty($liveprice)}
|
||
<link rel="stylesheet" type="text/css" href="../addons/{EWEI_SHOP_V2_MODULE_NAME}/plugin/live/static/css/living.css?v=20170628" />
|
||
{/if}
|
||
|
||
<div class='fui-page fui-page-current page-goods-detail' id='page-goods-detail-index'>
|
||
{php $this->followBar()}
|
||
|
||
{if empty($err)}
|
||
<div class="fui-header">
|
||
<div class="fui-header-left">
|
||
<a class="back" id="btn-back"></a>
|
||
</div>
|
||
<div class="title" style="background: #000000">
|
||
{if $new_temp && 0}
|
||
商品详情
|
||
{else}
|
||
<div id="tab" class="fui-tab fui-tab-danger" >
|
||
<a data-tab="tab1" class="tab active" >立即报名</a>
|
||
<a data-tab="tab2" class="tab">赛程安排</a>
|
||
{if count($params)>0}
|
||
<a data-tab="tab3" class="tab">参数</a>
|
||
{/if}
|
||
{if $getComments}
|
||
<a data-tab="tab4" class="tab" style="display:none" id="tabcomment">评价</a>
|
||
{/if}
|
||
</div>
|
||
{/if}
|
||
</div>
|
||
<div class="fui-header-right"></div>
|
||
</div>
|
||
{else}
|
||
<div class="fui-header ">
|
||
<div class="fui-header-left">
|
||
<a class="back" id="btn-back"></a>
|
||
</div>
|
||
<div class="title">
|
||
找不到宝贝
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
|
||
{if empty($err)}
|
||
|
||
|
||
{if count($params)>0}
|
||
<div class="fui-content param-block {if !$goods['canbuy']}notbuy{/if}">
|
||
<div class="fui-cell-group">
|
||
{if !empty($params)}
|
||
{loop $params $p}
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-label" >{$p['title']}</div>
|
||
<div class="fui-cell-info overflow">{$p['value']}</div>
|
||
</div>
|
||
{/loop}
|
||
|
||
{else}
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-info text-align">商品没有参数</div>
|
||
</div>
|
||
{/if}
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
{if !$new_temp}
|
||
<div class='fui-content comment-block {if !$goods['canbuy']}notbuy{/if}' data-getcount='1' id='comments-list-container'>
|
||
<div class='fui-icon-group col-5 '>
|
||
<div class='fui-icon-col' data-level='all'><span class='text-danger'>全部<br/><span class="count"></span></span></div>
|
||
<div class='fui-icon-col' data-level='good'><span>好评<br/><span class="count"></span></span></div>
|
||
<div class='fui-icon-col' data-level='normal'><span>中评<br/><span class="count"></span></span></div>
|
||
<div class='fui-icon-col' data-level='bad'><span>差评<br/><span class="count"></span></span></div>
|
||
<div class='fui-icon-col' data-level='pic'><span>晒图<br/><span class="count"></span></span></div>
|
||
</div>
|
||
<div class='content-empty' style='display:none;'>
|
||
<i class='icon icon-community'></i><br/>暂时没有任何评价
|
||
</div>
|
||
<div class='container' id="comments-all"></div>
|
||
<div class='infinite-loading'><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
|
||
</div>
|
||
<div class="fui-content detail-block {if !$goods['canbuy']}notbuy{/if}">
|
||
<div class="text-danger look-basic"><i class='icon icon-unfold'></i> <span>上拉返回商品详情</span></div>
|
||
<div class='content-block content-images'></div>
|
||
</div>
|
||
{/if}
|
||
|
||
<div class='fui-content basic-block pulldown {if !$goods['canbuy']}notbuy{/if}'>
|
||
|
||
{if !empty($err)}
|
||
<div class='content-empty'>
|
||
<i class='icon icon-search'></i><br/> 宝贝找不到了~ 您看看别的吧 ~<br/><a href="{php echo mobileUrl()}" class='btn btn-default-o external'>到处逛逛</a>
|
||
</div>
|
||
{else}
|
||
{if $commission_data['qrcodeshare'] > 0}
|
||
<i class="icon icon-qrcode" id="alert-click"></i>
|
||
{/if}
|
||
<div class='fui-swipe goods-swipe'>
|
||
{if !empty($liveprice)}
|
||
<a class="external isliving" href="{php echo mobileUrl('live/room', array('id'=>$liveid))}"></a>
|
||
{/if}
|
||
|
||
<div class='fui-swipe-wrapper'>
|
||
{loop $thumbs $thumb}
|
||
<div class='fui-swipe-item'><img src="{EWEI_SHOPV2_PLACEHOLDER}" data-lazy="{php echo tomedia($thumb)}" /></div>
|
||
{/loop}
|
||
</div>
|
||
<div class='fui-swipe-page'></div>
|
||
{if $goods['total']<=0 && !empty($_W['shopset']['shop']['saleout'])}
|
||
<div class="salez">
|
||
<img src="{php echo tomedia($_W['shopset']['shop']['saleout'])}">
|
||
</div>
|
||
{/if}
|
||
</div>
|
||
|
||
{if !empty($seckillinfo)}
|
||
<div class="seckill-container {if $seckillinfo['status']==1}notstart{/if}"
|
||
data-starttime="{php echo $seckillinfo['starttime']-time();}"
|
||
data-endtime="{php echo $seckillinfo['endtime']-time();}"
|
||
data-status="{$seckillinfo['status']}">
|
||
<div class="fui-list seckill-list" style="" >
|
||
<div class="fui-list-media seckill-price">
|
||
¥<span>{$seckillinfo['price']}</span>
|
||
</div>
|
||
<div class="fui-list-inner">
|
||
<div class="text"><span class="stitle" style="white-space:nowrap; overflow:hidden; max-width:2.6rem;">{$seckillinfo['tag']}</span></div>
|
||
<div class="text"><span class="oldprice">¥{$goods['minprice']}</span></div>
|
||
</div>
|
||
</div>
|
||
<div class="fui-list seckill-list1" >
|
||
<div class="fui-list-inner">
|
||
<div class="text ">{if $seckillinfo['status']==0}已出售 {$seckillinfo['percent']}%{/if}</div>
|
||
<div class="text ">{if $seckillinfo['status']==0}<span class="process"><div class="inner" style="width:{$seckillinfo['percent']}%"></div></span>{/if}</div>
|
||
</div>
|
||
</div>
|
||
<div class="fui-list seckill-list2" style="" >
|
||
<div class="fui-list-inner">
|
||
<div class="text ">距{if $seckillinfo['status']==1}开始{else}结束{/if}还有</div>
|
||
<div class="text timer">
|
||
<span class="time-hour">-</span> : <span class="time-min">-</span> : <span class="time-sec">-</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
|
||
<div class="fui-cell-group fui-detail-group" >
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text name ">
|
||
{if $ispresell==1}<i class="fui-tag fui-tag-danger">预</i>{/if}
|
||
{$goods['title']}
|
||
</div>
|
||
{if empty($share['goods_detail_close'])}
|
||
<a class="fui-cell-remark share" {if !empty($goods['sharebtn']) && $member['isagent']==1 && $member['status']==1} href="{php echo mobileUrl('commission/qrcode', array('goodsid'=>$goods['id']))}" {else} id='btn-share' {/if}>
|
||
<i class="icon icon-share"></i>
|
||
<p>分享</p>
|
||
</a>
|
||
{/if}
|
||
</div>
|
||
{if !empty($goods['subtitle'])}
|
||
<div class="fui-cell goods-subtitle">
|
||
<span class='text-danger'>{$goods['subtitle']}</span>
|
||
</div>
|
||
{/if}
|
||
|
||
{if $goods['type']==4}
|
||
<!--批发价格-->
|
||
<div class="fui-cell goods-bulk">
|
||
<div class="fui-cell-text flex">
|
||
{if $goods['intervalfloor']>0}
|
||
<span>
|
||
<p class="price"><small>¥</small>{$goods['intervalprice1']}</p>
|
||
<p>{$goods['intervalnum1']} {if $goods['intervalfloor']>1}-{php echo intval($goods['intervalnum2'])-1}件{else}件以上{/if}</p>
|
||
</span>
|
||
{/if}
|
||
{if $goods['intervalfloor']>1}
|
||
<span>
|
||
<p class="price"><small>¥</small>{$goods['intervalprice2']}</p>
|
||
<p>{$goods['intervalnum2']}{if $goods['intervalfloor']>2}-{php echo intval($goods['intervalnum3'])-1}件{else}件以上{/if}</p>
|
||
</span>
|
||
{/if}
|
||
{if $goods['intervalfloor']>2}
|
||
<span>
|
||
<p class="price"><small>¥</small>{$goods['intervalprice3']}</p>
|
||
<p>>{$goods['intervalnum3']}件</p>
|
||
</span>
|
||
{/if}
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
{if empty($seckillinfo)&&$goods['type']!=4}
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text price">
|
||
<span class="text-danger">
|
||
{if !empty($taskGoodsInfo)}
|
||
¥{$taskGoodsInfo['price']}
|
||
{elseif $threen &&(!empty($threenprice['price'])||!empty($threenprice['discount']))}
|
||
{if !empty($threenprice['price'])}
|
||
{php echo $threenprice['price'];}
|
||
{elseif !empty($threenprice['discount'])}
|
||
{php echo $threenprice['discount']*$goods['minprice'];}
|
||
{/if}
|
||
{else}
|
||
¥{if $goods['ispresell']>0 && ($goods['preselltimeend'] == 0 || $goods['preselltimeend'] > time())}
|
||
{$goods['presellprice']}
|
||
{else}
|
||
{if $goods['minprice']==$goods['maxprice']}
|
||
{$goods['minprice']}{else}{$goods['minprice']}~{$goods['maxprice']}
|
||
{/if}
|
||
{/if}
|
||
{if $goods['isdiscount'] && $goods['isdiscount_time']>=time()}
|
||
<span class="original">¥{$goods['productprice']}</span>
|
||
{else}
|
||
{if $goods['productprice']>0}
|
||
<span class="original">¥{$goods['productprice']}</span>
|
||
{/if}
|
||
{/if}
|
||
{/if}
|
||
</span>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
{if $goods['isdiscount'] && $goods['isdiscount_time']>=time()}
|
||
<div class="row row-time">
|
||
<div id='discount-container' class='fui-labeltext fui-labeltext-danger'
|
||
data-now="{php echo date('Y-m-d H:i:s')}"
|
||
data-end="{php echo date('Y-m-d H:i:s', $goods['isdiscount_time'])}"
|
||
data-end-label='{php echo empty($goods['isdiscount_title'])?'促销':$goods['isdiscount_title']}' >
|
||
<div class='label'>{php echo empty($goods['isdiscount_title'])?'促销':$goods['isdiscount_title']}</div>
|
||
<div class='text'>
|
||
<span class="day number text-danger" >-</span><span class="time">天</span>
|
||
<span class="hour number text-danger">-</span><span class="time">小时</span>
|
||
<span class="minute number text-danger">-</span><span class="time">分</span>
|
||
<span class="second number text-danger">-</span><span class="time">秒</span>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
{/if}
|
||
|
||
{if $goods['istime']}
|
||
<div class="row row-time">
|
||
<div id='time-container' class='fui-labeltext fui-labeltext-danger'
|
||
data-now="{php echo date('Y-m-d H:i:s')}"
|
||
data-start-label='距离限时购开始'
|
||
data-end-label='距离限时购结束'
|
||
data-end-text='活动已经结束,下次早点来~'
|
||
data-start="{php echo date('Y-m-d H:i:s', $goods['timestart'])}"
|
||
data-end="{php echo date('Y-m-d H:i:s', $goods['timeend'])}"
|
||
>
|
||
<div class='label'>限时购</div>
|
||
<div class='text'>
|
||
<span class="day number"></span><span class="time">天</span><span class="hour number"></span><span class="time">小时</span><span class="minute number"></span><span class="time">分</span><span class="second number"></span><span class="time">秒</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
{/if}
|
||
|
||
{if $goods['ispresell']==1 && ($goods['preselltimestart'] > time() || $goods['preselltimeend'] > time())}
|
||
<div class="row row-time">
|
||
<div id='time-presell' class='fui-labeltext fui-labeltext-danger'
|
||
data-now="{php echo date('Y-m-d H:i:s')}"
|
||
data-start-label='距离预售开始'
|
||
data-end-label='距离预售结束'
|
||
data-end-text='活动已经结束,下次早点来~'
|
||
data-start="{php echo date('Y-m-d H:i:s', $goods['preselltimestart'])}"
|
||
data-end="{php echo date('Y-m-d H:i:s', $goods['preselltimeend'])}">
|
||
<div class='label'>预售</div>
|
||
<div class='text'>
|
||
<span class="day number"></span><span class="time">天</span><span class="hour number"></span><span class="time">小时</span><span class="minute number"></span><span class="time">分</span><span class="second number"></span><span class="time">秒</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text flex">
|
||
{if is_array($goods['dispatchprice'])}
|
||
{if $goods['type']==1 && $goods['isverify']!=2}
|
||
<span>快递: {php echo number_format($goods['dispatchprice']['min'],2)} ~ {php echo number_format($goods['dispatchprice']['max'],2)}</span>
|
||
{/if}
|
||
{else}
|
||
{if $goods['type']==1 && $goods['isverify']!=2}
|
||
<span>快递: {php echo $goods['dispatchprice'] == 0 ? '包邮' : number_format($goods['dispatchprice'],2)}</span>
|
||
{/if}
|
||
{/if}
|
||
{if $seckillinfo==false || ( $seckillinfo && $seckillinfo.status==1)}
|
||
{if $goods['showtotal'] == 1}
|
||
<span>库存: {$goods['total']}</span>
|
||
{/if}
|
||
|
||
{if $goods['showsales'] == 1}
|
||
<span>销量: {php echo number_format($goods['sales'],0)} {$goods['unit']}</span>
|
||
{/if}
|
||
|
||
{else}
|
||
<span></span>
|
||
<span></span>
|
||
{/if}
|
||
|
||
|
||
{if $goods['province'] != '请选择省份' && $goods['city'] != '请选择城市'}
|
||
<span>{$goods['province']} {$goods['city']}</span>
|
||
{/if}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{if $goods['ispresell']==1 && ( $goods['preselltimeend'] > time() || $goods['preselltimeend'] == 0)}
|
||
<div class='fui-cell-group fui-cell-click fui-sale-group' style='margin-top:0'>
|
||
<div class="fui-list">
|
||
<div class="fui-list-media">
|
||
<div class='fui-cell-text'>
|
||
<span class="fui-label fui-label-safety">预售</span>
|
||
</div>
|
||
</div>
|
||
<div class="fui-list-inner" style="font-size:0.65rem;color:#666;">
|
||
{if $goods['preselltimeend'] > 0}
|
||
结束时间:{php echo date('m月d日 H:i:s', $goods['preselltimeend'])}<br />
|
||
{/if}
|
||
预计发货:{if $goods['presellsendtype']>0}购买后{$goods['presellsendtime']}天发货{else}{php echo date('m月d日', $goods['presellsendstatrttime'])}{/if}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
<script>var local_url=window.location.toString();
|
||
var dest_url = local_url.replace("goods.detail","goods.recent");
|
||
$.post(dest_url,function(data){
|
||
if(data.status==1){
|
||
for(var key in data.msg){
|
||
|
||
$("#image_content").append("<img sr"+"c="+data.msg[key].headimg+" />");
|
||
|
||
}
|
||
$("#image_count").append("<span>有"+data.count+"人购买</span>");
|
||
}
|
||
|
||
},"json");</script><style>#image_count{
|
||
height: 30px;
|
||
line-height: 30px;
|
||
padding-left: 2%;
|
||
width: 98%;
|
||
overflow: hidden;
|
||
color: #A2A2A2;
|
||
font-size: 12px;
|
||
}
|
||
#image_content {
|
||
border-top: 1px solid #EAEAEA;
|
||
border-bottom: 1px solid #EAEAEA;
|
||
background: #FFF;
|
||
color: #000000;
|
||
font-size: 13px;
|
||
line-height: 20px;
|
||
overflow: hidden;
|
||
padding: 10px 0 10px 5px;
|
||
}
|
||
#image_content img{
|
||
width: 35px;
|
||
height: 35px;
|
||
border-radius: 50%;
|
||
display: inline-block;
|
||
margin-left: 7px;
|
||
}</style>
|
||
<div id="image_count"></div>
|
||
<div id="image_content"></div>
|
||
|
||
{if com('coupon')&&$coupons}
|
||
<div class="fui-cell-group fui-cell-click">
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text coupon-selector">领取可用优惠券</div>
|
||
<div class="fui-cell-remark"></div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
|
||
{if empty($seckillinfo)}
|
||
{if floatval($goods['buyagain'])>0}
|
||
<div class="fui-cell-group fui-sale-group" style="margin-top:0">
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text" style="white-space: normal;">此商品二次购买 可享受 <span class="text-danger">{$goods['buyagain']}</span> 折优惠
|
||
{if empty($goods['buyagain_sale'])}
|
||
<br>二次购买的时候 不与其他优惠共享
|
||
{/if}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
{if empty($goods['isdiscount']) || (!empty($goods['isdiscount']) &&$goods['isdiscount_time']<time())}
|
||
{if !empty($memberprice) && $memberprice!=$goods['minprice'] && !empty($level)}
|
||
<div class="fui-cell-group fui-sale-group" style="margin-top:0">
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text" style="white-space: normal;">您的会员等级是 <span class="text-danger">{$level['levelname']}</span> 可享受 <span class="text-danger">¥{$memberprice}</span> 的价格</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
{/if}
|
||
|
||
{if $liveprice}
|
||
<div class="fui-cell-group fui-sale-group" style="margin-top:0">
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text" style="white-space: normal;">您通过直播间<span class="text-danger">{$liveprice['name']}</span>进入 可享受 <span class="text-danger">¥{$liveprice['price']}</span>的价格</div>
|
||
<input type="hidden" id="liveid" value="{$liveprice['id']}">
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
{/if}
|
||
{if !empty($fullbackgoods) && $isfullback}
|
||
<div class="fui-cell-group fui-sale-group" id="fullback-picker" style="margin-top:0;background: #fcecec;font-size:1.5rem;border:none;">
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text" style="white-space: normal;color:#ff5555;">
|
||
该商品享受
|
||
{if $fullbackgoods['type']>0}
|
||
<span class="text-danger" style="font-weight: bold;">
|
||
{if $goods['hasoption'] > 0}
|
||
{if $fullbackgoods['minallfullbackallprice'] == $fullbackgoods['maxallfullbackallprice']}
|
||
{$fullbackgoods['minallfullbackallratio']}%
|
||
{else}
|
||
{$fullbackgoods['minallfullbackallratio']}% ~ {$fullbackgoods['maxallfullbackallratio']}%
|
||
{/if}
|
||
{else}
|
||
{$fullbackgoods['minallfullbackallratio']}%
|
||
{/if}
|
||
</span>
|
||
{else}
|
||
<span class="text-danger" style="font-weight: bold;">
|
||
{if $goods['hasoption'] > 0}
|
||
{if $fullbackgoods['minallfullbackallprice'] == $fullbackgoods['maxallfullbackallprice']}
|
||
¥{$fullbackgoods['minallfullbackallprice']}
|
||
{else}
|
||
¥{$fullbackgoods['minallfullbackallprice']} ~ ¥{$fullbackgoods['maxallfullbackallprice']}
|
||
{/if}
|
||
{else}
|
||
¥{$fullbackgoods['minallfullbackallprice']}
|
||
{/if}
|
||
</span>
|
||
{/if}
|
||
的全返
|
||
</div>
|
||
<div class='fui-cell-remark'></div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
{if (!empty($goods['deduct']) && $goods['deduct'] != '0.00') || !empty($goods['credit'])}
|
||
<div class='fui-cell-group fui-sale-group' style='margin-top:0'>
|
||
<div class='fui-cell'>
|
||
<div class='fui-cell-text'>{$_W['shopset']['trade']['credittext']} {if !empty($goods['deduct']) && $goods['deduct'] != '0.00'}最高抵扣 <span class="text-danger">{$goods['deduct']}</span> 元{/if} {if !empty($goods['credit'])}购买赠送 <span class="text-danger">{$goods['credit']}</span> {$_W['shopset']['trade']['credittext']}{/if}</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
{if $has_city}
|
||
<div class='fui-cell-group fui-cell-click fui-sale-group' style='margin-top:0' id="city-picker">
|
||
<div class='fui-cell'>
|
||
<div class='fui-cell-text'>{if empty($onlysent)}不{else}只{/if}配送区域:
|
||
{loop $citys $item}
|
||
{$item}
|
||
{/loop}
|
||
</div>
|
||
|
||
<div class='fui-cell-remark'></div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
{if $gifts && $goods['total'] > 0}
|
||
<div class='fui-cell-group fui-sale-group' style='margin-top:0'>
|
||
<div class='fui-cell'>
|
||
{if count($gifts)>1}
|
||
<div class='fui-cell-text fui-cell-giftclick'>
|
||
赠品: <label id="gifttitle">请选择赠品</label>
|
||
<input type="hidden" name="giftid" id="giftid" value="">
|
||
</div>
|
||
{else}
|
||
{loop $gifts $item}
|
||
<div class='fui-cell-text' onclick="javascript:window.location.href='{php echo mobileUrl('goods/gift',array('id'=>$item['id']))}'">
|
||
赠品:{$gifttitle}<input type="hidden" name="giftid" id="giftid" value="{$item['id']}">
|
||
</div>
|
||
{/loop}
|
||
{/if}
|
||
<div class='fui-cell-remark'></div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
{if $hasSales && empty($seckillinfo)}
|
||
|
||
<div class='fui-cell-group fui-cell-click fui-sale-group' style='margin-top:0' id="sale-picker">
|
||
<div class='fui-cell'>
|
||
<div class='fui-cell-text'>优惠
|
||
{if !is_array($goods['dispatchprice'])}
|
||
{if $goods['type']==1 && $goods['isverify']!=2}
|
||
{if $goods['dispatchprice']==0}
|
||
本商品包邮
|
||
{/if}
|
||
{/if}
|
||
{/if}
|
||
|
||
{if $enoughfree && $enoughfree==-1}
|
||
全场包邮
|
||
{else}
|
||
{if $goods['ednum']>0}单品满 <span class="text-danger">{$goods['ednum']}</span> {php echo empty($goods['unit'])?'件':$goods['unit']}包邮{/if}
|
||
{if $goods['edmoney']>0}单品满 <span class="text-danger">¥{$goods['edmoney']}</span> 包邮{/if}
|
||
{if $enoughfree}全场满 <span class="text-danger">¥{$enoughfree}</span> 包邮{/if}
|
||
{/if}
|
||
{if $enoughs && count($enoughs)>0}
|
||
全场满 <span class="text-danger">¥{$enoughs[0]['enough']}</span> 立减 <span class="text-danger">¥{$enoughs[0]['money']}</span>
|
||
{/if}
|
||
</div>
|
||
|
||
<div class='fui-cell-remark'></div>
|
||
</div>
|
||
</div>
|
||
|
||
{/if}
|
||
|
||
{if $hasServices || $labelname}
|
||
<div class="fui-cell-group fui-option-group" style='margin-top:0'>
|
||
|
||
<div class="goods-label-demo">
|
||
<div class="goods-label-list
|
||
{if empty($style['style'])}goods-label-style1
|
||
{elseif $style['style']==1}goods-label-style2
|
||
{elseif $style['style']==2}goods-label-style3
|
||
{elseif $style['style']==3}goods-label-style4
|
||
{elseif $style['style']==4}goods-label-style5{/if}">
|
||
{if $goods['cash']==2}<span class="{if $style['style']<2}cl-3 cl-4 cl-2{/if}"><i></i><strong>货到付款</strong></span>{/if}
|
||
{if $goods['quality']}<span class="{if $style['style']<2}cl-3 cl-4 cl-2{/if}"><i></i><strong>正品保证</strong></span>{/if}
|
||
{if $goods['repair']}<span class="{if $style['style']<2}cl-3 cl-4 cl-2{/if}"><i></i><strong>保修</strong></span>{/if}
|
||
{if $goods['invoice']}<span class="{if $style['style']<2}cl-3 cl-4 cl-2{/if}"><i></i><strong>发票</strong></span>{/if}
|
||
{if $goods['seven']}<span class="{if $style['style']<2}cl-3 cl-4 cl-2{/if}"><i></i><strong>7天退换</strong></span>{/if}
|
||
{if $labelname}
|
||
{loop $labelname $item}
|
||
<span class="{if $style['style']<2}cl-3 cl-4 cl-2{/if}"><i></i><strong>{$item}</strong></span>
|
||
{/loop}
|
||
{/if}
|
||
<div style="clear: both;"></div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
{/if}
|
||
|
||
|
||
{if !empty($stores)}
|
||
<script language='javascript' src='https://api.map.baidu.com/api?v=2.0&ak=dYHdUNpc8bGaPjNoSjUD5enR&s=1'></script>
|
||
<div class='fui-according-group'>
|
||
<div class='fui-according'>
|
||
<div class='fui-according-header'>
|
||
<i class='icon icon-shop'></i>
|
||
<span class="text">适用门店</span>
|
||
<span class="remark"><div class="badge">{php echo count($stores)}</div></span>
|
||
</div>
|
||
<div class="fui-according-content store-container">
|
||
{loop $stores $item}
|
||
<div class="fui-list store-item"
|
||
|
||
data-lng="{php echo floatval($item['lng'])}"
|
||
data-lat="{php echo floatval($item['lat'])}">
|
||
<div class="fui-list-media">
|
||
<i class='icon icon-shop'></i>
|
||
</div>
|
||
<div class="fui-list-inner store-inner">
|
||
<div class="title"><span class='storename'>{$item['storename']}</span></div>
|
||
<div class="text">
|
||
地址: <span class='realname'>{$item['address']}</span>
|
||
</div>
|
||
<div class="text">
|
||
电话: <span class='address'>{$item['tel']}</span>
|
||
</div>
|
||
</div>
|
||
<div class="fui-list-angle ">
|
||
{if !empty($item['tel'])}<a href="tel:{$item['tel']}" class='external '><i class=' icon icon-phone' style='color:green'></i></a>{/if}
|
||
<a href="{php echo mobileUrl('store/map',array('id'=>$item['id'],'merchid'=>$item['merchid']))}" class='external' ><i class='icon icon-location' style='color:#f90'></i></a>
|
||
</div>
|
||
</div>
|
||
{/loop}
|
||
</div>
|
||
|
||
<div id="nearStore" style="display:none">
|
||
|
||
<div class='fui-list store-item' id='nearStoreHtml'></div>
|
||
</div>
|
||
</div></div>
|
||
{/if}
|
||
{if $goods['canbuy']}
|
||
{if $goods['type']!=4}
|
||
<div class="fui-cell-group fui-cell-click">
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text option-selector">请选择{if empty($spec_titles)}数量{else}{$spec_titles}等{/if}</div>
|
||
<div class="fui-cell-remark"></div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
{else}
|
||
<div class="fui-cell-group fui-cell-click">
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text">
|
||
{if $goods['userbuy']==0}
|
||
您已经超出最大{$goods['usermaxbuy']}件购买量
|
||
{else if $goods['levelbuy']==0}
|
||
您当前会员等级没有购买权限
|
||
{else if $goods['groupbuy']==0}
|
||
您所在的用户组没有购买权限
|
||
{else if $goods['timebuy'] ==-1}
|
||
未到开始抢购时间!
|
||
{else if $goods['timebuy'] ==1}
|
||
抢购时间已经结束!
|
||
{else if $goods['total'] <=0}
|
||
商品已经售罄!
|
||
{/if}</div>
|
||
</div>
|
||
</div>
|
||
|
||
{/if}
|
||
{if $packages && $goods['total'] > 0}
|
||
{if count($packages)<=3}
|
||
<style>
|
||
.package-goods{padding:0.2rem 1rem;}
|
||
</style>
|
||
<div class="fui-cell-group fui-comment-group">
|
||
<div class="fui-cell fui-cell-click">
|
||
<div class="fui-cell-text desc">相关套餐</div>
|
||
<div class="fui-cell-text desc label" onclick="javascript:window.location.href='{php echo mobileUrl('goods/package',array('goodsid'=>$goods['id']))}'">更多套餐</div>
|
||
<div class="fui-cell-remark"></div>
|
||
</div>
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text comment ">
|
||
<div class="fui-list package-list">
|
||
{loop $packages $item}
|
||
<div class="fui-list-inner package-goods" onclick="javascript:window.location.href='{php echo mobileUrl('goods/package/detail',array('pid'=>$package_goods['pid']))}'">
|
||
<img src="{php echo tomedia($item['thumb'])}" class="package-goods-img" alt="{$item['title']}">
|
||
<span>{$item['title']}</span>
|
||
</div>
|
||
{/loop}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{else}
|
||
<div class="fui-cell-group fui-comment-group">
|
||
<div class="fui-cell fui-cell-click">
|
||
<div class="fui-cell-text desc">相关套餐</div>
|
||
<div class="fui-cell-text desc label" onclick="javascript:window.location.href='{php echo mobileUrl('goods/package',array('goodsid'=>$goods['id']))}'">更多套餐</div>
|
||
<div class="fui-cell-remark"></div>
|
||
</div>
|
||
<div id="product" class="fui-list">
|
||
<span class="prev fui-list-media"><i class="icon icon-left"></i></span>
|
||
<div id="content" class="fui-list-inner">
|
||
<div id="content_list" onclick="javascript:window.location.href='{php echo mobileUrl('goods/package/detail',array('pid'=>$package_goods['pid']))}'">
|
||
{loop $packages $item}
|
||
<dl class="package-goods package-goods3">
|
||
<dt><img class="package-goods-img" src="{php echo tomedia($item['thumb'])}"/></dt>
|
||
<dd>{$item['title']}</dd>
|
||
</dl>
|
||
{/loop}
|
||
</div>
|
||
</div>
|
||
<span class="next fui-list-media"><i class="icon icon-right1"></i></span>
|
||
</div>
|
||
</div>
|
||
<script type="text/javascript">
|
||
$(function(){
|
||
var page = 1;
|
||
var i = 3; //每版放4个图片
|
||
//向后 按钮
|
||
$("span.next").click(function(){ //绑定click事件
|
||
var content = $("div#content");
|
||
var content_list = $("div#content_list");
|
||
var v_width = content.width();
|
||
var len = content.find("dl").length;
|
||
var page_count = Math.ceil(len / i) ; //只要不是整数,就往大的方向取最小的整数
|
||
if( !content_list.is(":animated") ){ //判断“内容展示区域”是否正在处于动画
|
||
if( page == page_count ){ //已经到最后一个版面了,如果再向后,必须跳转到第一个版面。
|
||
content_list.animate({ left : '0px'}, "slow"); //通过改变left值,跳转到第一个版面
|
||
page = 1;
|
||
}else{
|
||
content_list.animate({ left : '-='+v_width }, "slow"); //通过改变left值,达到每次换一个版面
|
||
page++;
|
||
}
|
||
}
|
||
});
|
||
//往前 按钮
|
||
$("span.prev").click(function(){
|
||
var content = $("div#content");
|
||
var content_list = $("div#content_list");
|
||
var v_width = content.width();
|
||
var len = content.find("dl").length;
|
||
var page_count = Math.ceil(len / i) ; //只要不是整数,就往大的方向取最小的整数
|
||
if(!content_list.is(":animated") ){ //判断“内容展示区域”是否正在处于动画
|
||
if(page == 1 ){ //已经到第一个版面了,如果再向前,必须跳转到最后一个版面。
|
||
content_list.animate({ left : '-='+v_width*(page_count-1) }, "slow");
|
||
page = page_count;
|
||
}else{
|
||
content_list.animate({ left : '+='+v_width }, "slow");
|
||
page--;
|
||
}
|
||
}
|
||
});
|
||
});
|
||
</script>
|
||
{/if}
|
||
|
||
<script type="text/javascript">
|
||
$(function(){
|
||
$(".package-goods-img").height($(".package-goods-img").width());
|
||
})
|
||
</script>
|
||
{/if}
|
||
|
||
<div id='comments-container'></div>
|
||
|
||
<div class="fui-cell-group fui-shop-group">
|
||
<div class='fui-list'>
|
||
<div class='fui-list-media'>
|
||
<img data-lazy="{php echo tomedia($shopdetail['logo'])}" />
|
||
</div>
|
||
<div class='fui-list-inner'>
|
||
<div class='title'>{$shopdetail['shopname']}</div>
|
||
<div class='subtitle'>{$shopdetail['description']}</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text center">{$statics['all']}<p>全部</p></div>
|
||
<div class="fui-cell-text center">{$statics['new']}<p>新品</p></div>
|
||
<div class="fui-cell-text center">{$statics['discount']}<p>促销</p></div>
|
||
</div>
|
||
<div class="fui-cell btns">
|
||
<div class="fui-cell-text center">
|
||
<a class="btn btn-default-o external" href="{$shopdetail['btnurl1']}">{if !empty($shopdetail['btntext1'])}{$shopdetail['btntext1']}{else}全部商品{/if}</a>
|
||
<a class="btn btn-default-o external" href="{$shopdetail['btnurl2']}">{if !empty($shopdetail['btntext2'])}{$shopdetail['btntext2']}{else}进店逛逛{/if}</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
{if $buyshow==1 && !empty($goods['buycontent'])}
|
||
<div class="fui-cell-group">
|
||
<div class="fui-cell">
|
||
<div class="content-block">{$goods['buycontent']}</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
|
||
{if $new_temp}
|
||
{if count($params)>0 || $showComments}
|
||
<div class="fui-tab fui-tab-danger detail-tab" id="tabnew">
|
||
<a data-tab="tab2" class="active">详情</a>
|
||
{if count($params)>0}
|
||
<a data-tab="tab3">参数</a>
|
||
{/if}
|
||
{if $showComments}
|
||
<a data-tab="tab4">评价</a>
|
||
{/if}
|
||
</div>
|
||
{else}
|
||
<div class="fui-cell-group">
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-info">商品详情</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
<div class="detail-tab-panel">
|
||
<div class="tab-panel show detail-block" data-tab="tab2">
|
||
<div class="content-block content-images"></div>
|
||
</div>
|
||
<div class="tab-panel" data-tab="tab3">
|
||
<div class="fui-cell-group">
|
||
{if !empty($params)}
|
||
{loop $params $p}
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-label" >{$p['title']}</div>
|
||
<div class="fui-cell-info overflow">{$p['value']}</div>
|
||
</div>
|
||
{/loop}
|
||
{else}
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-info text-align">商品没有参数</div>
|
||
</div>
|
||
{/if}
|
||
</div>
|
||
</div>
|
||
<div class="tab-panel comment-block" data-tab="tab4" data-getcount='1' id='comments-list-container'>
|
||
<div class='fui-icon-group col-5 '>
|
||
<div class='fui-icon-col' data-level='all'><span class='text-danger'>全部<br/><span class="count"></span></span></div>
|
||
<div class='fui-icon-col' data-level='good'><span>好评<br/><span class="count"></span></span></div>
|
||
<div class='fui-icon-col' data-level='normal'><span>中评<br/><span class="count"></span></span></div>
|
||
<div class='fui-icon-col' data-level='bad'><span>差评<br/><span class="count"></span></span></div>
|
||
<div class='fui-icon-col' data-level='pic'><span>晒图<br/><span class="count"></span></span></div>
|
||
</div>
|
||
<div class='content-empty' style='display:none;'>暂时没有任何评价
|
||
</div>
|
||
<div class='container' id="comments-all"></div>
|
||
<div class='infinite-loading'><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
|
||
</div>
|
||
</div>
|
||
{else}
|
||
<div class="fui-cell-group">
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text text-center look-detail"><i class='icon icon-fold'></i> <span>上拉查看图文详情</span></div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
{/if}
|
||
</div>
|
||
{if $isgift && $goods['total'] > 0}
|
||
<div id='gift-picker-modal' style="margin:-100%;">
|
||
<div class='gift-picker'>
|
||
<div class="fui-cell-group fui-sale-group" style='margin-top:0;'>
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text dispatching">
|
||
请选择赠品:
|
||
<div class="dispatching-info" style="max-height:12rem;overflow-y: auto ">
|
||
{loop $gifts $item}
|
||
<div class="fui-list goods-item align-start" data-giftid="{$item['id']}">
|
||
<div class="fui-list-media">
|
||
<input type="radio" name="checkbox" class="fui-radio fui-radio-danger gift-item" value="{$item['id']}" style="display: list-item;">
|
||
</div>
|
||
<div class="fui-list-inner">
|
||
{loop $item['gift'] $gift}
|
||
<div class="fui-list">
|
||
<div class="fui-list-media image-media" style="position: initial;">
|
||
<a href="javascript:void(0);">
|
||
<img class="round" src="{php echo tomedia($gift['thumb'])}" data-lazyloaded="true">
|
||
</a>
|
||
</div>
|
||
<div class="fui-list-inner">
|
||
<a href="javascript:void(0);">
|
||
<div class="text">
|
||
{$gift['title']}
|
||
</div>
|
||
</a>
|
||
</div>
|
||
<div class='fui-list-angle'>
|
||
<span class="price">¥<del class='marketprice'>{$gift['marketprice']}</del></span>
|
||
</div>
|
||
</div>
|
||
{/loop}
|
||
</div>
|
||
</div>
|
||
{/loop}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class='btn btn-danger block'>确定</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
{if $goods['canbuy'] ||1 }
|
||
<div class="fui-navbar bottom-buttons" style="background: #000000">
|
||
<!-- <a class="nav-item favorite-item {if $isFavorite}active{/if}" data-isfavorite="{php echo intval($isFavorite)}">
|
||
<span class="icon {if $isFavorite}icon-likefill{else}icon-like{/if}"></span>
|
||
<span class="label" >关注</span>
|
||
</a>
|
||
<a class="nav-item external" href="{php echo !empty($goods['merchid']) ? mobileUrl('merch',array('merchid'=>$goods['merchid'])) : mobileUrl('');}">
|
||
<span class="icon icon-shop"></span>
|
||
<span class="label" >店铺</span>
|
||
</a>
|
||
<a class="nav-item cart-item" href="{php echo mobileUrl('member/cart')}" data-nocache="true" he="" id="menucart">
|
||
<span class='badge {if $cartCount<=0}out{else}in{/if}'>{$cartCount}</span>
|
||
<span class="icon icon-cart"></span>
|
||
<span class="label">购物车</span>
|
||
</a> -->
|
||
{if $canAddCart}
|
||
<a class="nav-item btn cartbtn" data-type="{$goods['type']}">加入购物车</a>
|
||
{/if}
|
||
{if !empty($seckillinfo) && $seckillinfo['status']==1}
|
||
<a class="nav-item btn buybtn seckill-notstart">原价购买</a>
|
||
{else}
|
||
<a class="nav-item btn buybtn" data-type="{$goods['type']}" style="background: #000000;">立即报名</a>
|
||
{/if}
|
||
</div>
|
||
{/if}
|
||
|
||
{if $has_city}
|
||
<div id='city-picker-modal' style="margin: -100%;">
|
||
<div class='city-picker'>
|
||
<div class='fui-cell-title'>促销活动</div>
|
||
|
||
<div class="fui-cell-group fui-sale-group" style='margin-top:0;'>
|
||
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text dispatching">
|
||
{if empty($onlysent)}不{else}只{/if}配送区域:
|
||
<div class="dispatching-info">
|
||
{loop $citys $item}
|
||
<i>{$item}</i>
|
||
{/loop}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class='btn btn-danger block'>确定</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
{if $isfullback}
|
||
<div id='fullback-picker-modal' style="margin: -100%;">
|
||
<div class='city-picker'>
|
||
<div class="fui-cell-group fui-sale-group" style='margin-top:0;'>
|
||
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text">
|
||
<div class="fullback-title">全返说明:</div>
|
||
<div class="fullback-info">
|
||
<p><i>¥</i>全返总额:
|
||
{if $fullbackgoods['type']>0}
|
||
{if $goods['hasoption'] > 0}
|
||
{if $fullbackgoods['minallfullbackallratio'] == $fullbackgoods['maxallfullbackallratio']}
|
||
{php echo price_format($fullbackgoods['minallfullbackallratio'],2)}%
|
||
{else}
|
||
{php echo price_format($fullbackgoods['minallfullbackallratio'],2)}% ~ {php echo price_format($fullbackgoods['maxallfullbackallratio'],2)}%
|
||
{/if}
|
||
{else}
|
||
{php echo price_format($fullbackgoods['minallfullbackallratio'],2)}%
|
||
{/if}
|
||
{else}
|
||
{if $goods['hasoption'] > 0}
|
||
{if $fullbackgoods['minallfullbackallprice'] != $fullbackgoods['maxallfullbackallprice']}
|
||
¥{php echo price_format($fullbackgoods['minallfullbackallprice'],2)}
|
||
{else}
|
||
¥{php echo price_format($fullbackgoods['minallfullbackallprice'],2)} ~ ¥{php echo price_format($fullbackgoods['maxallfullbackallprice'],2)}
|
||
{/if}
|
||
{else}
|
||
¥{php echo price_format($fullbackgoods['minallfullbackallprice'],2)}
|
||
{/if}
|
||
{/if}
|
||
</p>
|
||
<p><i>¥</i>每天返:
|
||
{if $fullbackgoods['type']>0}
|
||
{if $goods['hasoption'] > 0}
|
||
{if $fullbackgoods['minfullbackratio'] == $fullbackgoods['maxfullbackratio']}
|
||
{php echo price_format($fullbackgoods['minfullbackratio'],2)}%
|
||
{else}
|
||
{php echo price_format($fullbackgoods['minfullbackratio'],2)}% ~ {php echo price_format($fullbackgoods['maxfullbackratio'],2)}%
|
||
{/if}
|
||
{else}
|
||
{php echo price_format($fullbackgoods['fullbackratio'],2)}%
|
||
{/if}
|
||
{else}
|
||
{if $goods['hasoption'] > 0}
|
||
{if $fullbackgoods['minfullbackprice'] == $fullbackgoods['maxfullbackprice']}
|
||
¥{php echo price_format($fullbackgoods['minfullbackprice'],2)}
|
||
{else}
|
||
¥{php echo price_format($fullbackgoods['minfullbackprice'],2)} ~ ¥{php echo price_format($fullbackgoods['maxfullbackprice'],2)}
|
||
{/if}
|
||
{else}
|
||
¥{php echo price_format($fullbackgoods['fullbackprice'],2)}
|
||
{/if}
|
||
{/if}
|
||
</p>
|
||
<p><i>¥</i>时间:
|
||
{if $goods['hasoption'] > 0}
|
||
{if $fullbackgoods['minday'] == $fullbackgoods['maxday']}
|
||
{$fullbackgoods['minday']}
|
||
{else}
|
||
{$fullbackgoods['minday']} ~ {$fullbackgoods['maxday']}
|
||
{/if}
|
||
{else}
|
||
{$fullbackgoods['day']}
|
||
{/if}天
|
||
</p>
|
||
</div>
|
||
{if $fullbackgoods['startday']>0}
|
||
<div class="fullback-remark">
|
||
确认收货 {$fullbackgoods['startday']}天后开始全返。如申请退款,则全返金额退还。
|
||
</div>
|
||
{/if}
|
||
</div>
|
||
</div>
|
||
<div class='btn btn-danger block' style="margin:0;border-radius: 0;height:2.5rem;line-height: 2.5rem;">确定</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
<div id='sale-picker-modal' style="margin: -100%;">
|
||
<div class='sale-picker'>
|
||
<div class='fui-cell-title'>促销活动</div>
|
||
|
||
<div class="fui-cell-group fui-sale-group" style='margin-top:0'>
|
||
{if !is_array($goods['dispatchprice'])}
|
||
{if $goods['type']==1 && $goods['isverify']!=2}
|
||
{if $goods['dispatchprice']==0}
|
||
<div class="fui-cell"><div class="fui-cell-text">本商品包邮</div></div>
|
||
{/if}
|
||
{/if}
|
||
{/if}
|
||
|
||
{if $enoughfree && $enoughfree==-1}
|
||
<div class="fui-cell"><div class="fui-cell-text">全场包邮</div></div>
|
||
{else}
|
||
|
||
{if $enoughfree>0}
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text">全场满 <span class="text-danger">¥{$enoughfree}</span> 包邮</div>
|
||
</div>
|
||
{/if}
|
||
|
||
{if $goods['ednum']>0}
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text">单品满 <span class="text-danger">{$goods['ednum']}</span> {php echo empty($goods['unit'])?'件':$goods['unit']}包邮
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
{if $goods['edmoney']>0}
|
||
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text">单品满 <span class="text-danger">¥{$goods['edmoney']}</span> 包邮
|
||
</div>
|
||
</div>
|
||
|
||
{/if}
|
||
{/if}
|
||
|
||
|
||
|
||
{if $enoughfree || ($enoughs && count($enoughs)>0)}
|
||
{if $enoughs && count($enoughs)>0}
|
||
<div class='fui-according'>
|
||
<div class='fui-according-header'>
|
||
<div class="text">
|
||
<div class="fui-cell-text">全场满 <span class="text-danger">¥{$enoughs[0]['enough']}</span> 立减 <span class="text-danger">¥{$enoughs[0]['money']}</span></div>
|
||
</div>
|
||
{if count($enoughs)>1}<span class="remark">更多</span>{/if}
|
||
</div>
|
||
{if count($enoughs)>1}
|
||
<div class='fui-according-content'>
|
||
{loop $enoughs $key $enough}
|
||
{if $key>0}
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text">满 <span class="text-danger">¥{$enough['enough']}</span> 立减 <span class="text-danger">¥{$enough['money']}</span></div>
|
||
</div>
|
||
{/if}
|
||
{/loop}
|
||
</div>
|
||
{/if}
|
||
</div>
|
||
{/if}
|
||
{/if}
|
||
|
||
{if !empty($merch_set['enoughdeduct'])}
|
||
<div class='fui-according'>
|
||
<div class='fui-according-header'>
|
||
<div class="text">
|
||
<div class="fui-cell-text">商户满 <span class="text-danger">¥{$merch_set['enoughmoney']}</span> 立减 <span class="text-danger">¥{$merch_set['enoughdeduct']}</span></div>
|
||
</div>
|
||
{if count($merch_set['enoughs'])>0}<span class="remark">更多</span>{/if}
|
||
</div>
|
||
{if count($merch_set['enoughs'])>0}
|
||
<div class='fui-according-content'>
|
||
{loop $merch_set['enoughs'] $key $enough}
|
||
{if $key>0}
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text">满 <span class="text-danger">¥{$enough['enough']}</span> 立减 <span class="text-danger">¥{$enough['give']}</span></div>
|
||
</div>
|
||
{/if}
|
||
{/loop}
|
||
</div>
|
||
{/if}
|
||
</div>
|
||
{/if}
|
||
|
||
|
||
<div class='btn btn-danger block'>确定</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{if $goods['type']==4}
|
||
{template 'goods/wholesalePicker'}
|
||
{else}
|
||
{template 'goods/picker'}
|
||
{/if}
|
||
{if $getComments}
|
||
<script type='text/html' id='tpl_goods_detail_comments_list'>
|
||
<div class="fui-cell-group fui-comment-group">
|
||
<%each list as comment%>
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text comment ">
|
||
<div class="info head">
|
||
<div class='img'><img src='<%comment.headimgurl%>'/></div>
|
||
<div class='nickname'><%comment.nickname%></div>
|
||
|
||
<div class="date"><%comment.createtime%></div>
|
||
<div class="star star1">
|
||
<span <%if comment.level>=1%>class="shine"<%/if%>>★</span>
|
||
<span <%if comment.level>=2%>class="shine"<%/if%>>★</span>
|
||
<span <%if comment.level>=3%>class="shine"<%/if%>>★</span>
|
||
<span <%if comment.level>=4%>class="shine"<%/if%>>★</span>
|
||
<span <%if comment.level>=5%>class="shine"<%/if%>>★</span>
|
||
</div>
|
||
</div>
|
||
<div class="remark"><%comment.content%></div>
|
||
<%if comment.images.length>0%>
|
||
<div class="remark img">
|
||
<%each comment.images as img%>
|
||
<div class="img"><img data-lazy="<%img%>" /></div>
|
||
<%/each%>
|
||
</div>
|
||
<%/if%>
|
||
|
||
<%if comment.reply_content%>
|
||
<div class="reply-content" style="background:#EDEDED;">
|
||
掌柜回复:<%comment.reply_content%>
|
||
<%if comment.reply_images.length>0%>
|
||
<div class="remark img">
|
||
<%each comment.reply_images as img%>
|
||
<div class="img"><img data-lazy="<%img%>" /></div>
|
||
<%/each%>
|
||
</div>
|
||
<%/if%>
|
||
</div>
|
||
<%/if%>
|
||
<%if comment.append_content && comment.replychecked==0%>
|
||
<div class="remark reply-title">用户追加评价</div>
|
||
<div class="remark"><%comment.append_content%></div>
|
||
<%if comment.append_images.length>0%>
|
||
<div class="remark img">
|
||
<%each comment.append_images as img%>
|
||
<div class="img"><img data-lazy="<%img%>" /></div>
|
||
<%/each%>
|
||
</div>
|
||
<%/if%>
|
||
<%if comment.append_reply_content%>
|
||
<div class="reply-content" style="background:#EDEDED;">
|
||
掌柜回复:<%comment.append_reply_content%>
|
||
<%if comment.append_reply_images.length>0%>
|
||
<div class="remark img">
|
||
<%each comment.append_reply_images as img%>
|
||
<div class="img"><img data-lazy="<%img%>" /></div>
|
||
<%/each%>
|
||
</div>
|
||
<%/if%>
|
||
</div>
|
||
<%/if%>
|
||
<%/if%>
|
||
</div>
|
||
</div>
|
||
<%/each%>
|
||
</div>
|
||
</script>
|
||
|
||
<script type='text/html' id='tpl_goods_detail_comments'>
|
||
<div class="fui-cell-group fui-comment-group">
|
||
|
||
<div class="fui-cell fui-cell-click">
|
||
<div class="fui-cell-text desc">评价(<%count.all%>)</div>
|
||
<div class="fui-cell-text desc label"><span><%percent%>%</span> 好评</div>
|
||
<div class="fui-cell-remark"></div>
|
||
|
||
</div>
|
||
<%each list as comment%>
|
||
<div class="fui-cell">
|
||
|
||
<div class="fui-cell-text comment ">
|
||
<div class="info">
|
||
<div class="star">
|
||
<span <%if comment.level>=1%>class="shine"<%/if%>>★</span>
|
||
<span <%if comment.level>=2%>class="shine"<%/if%>>★</span>
|
||
<span <%if comment.level>=3%>class="shine"<%/if%>>★</span>
|
||
<span <%if comment.level>=4%>class="shine"<%/if%>>★</span>
|
||
<span <%if comment.level>=5%>class="shine"<%/if%>>★</span>
|
||
</div>
|
||
<div class="date"><%comment.nickname%> <%comment.createtime%></div>
|
||
</div>
|
||
<div class="remark"><%comment.content%></div>
|
||
<%if comment.images.length>0%>
|
||
<div class="remark img">
|
||
<%each comment.images as img%>
|
||
<div class="img"><img data-lazy="<%img%>" height="50" /></div>
|
||
<%/each%>
|
||
</div>
|
||
<%/if%>
|
||
</div>
|
||
</div>
|
||
<%/each%>
|
||
</div>
|
||
</script>
|
||
{/if}
|
||
|
||
{else}
|
||
|
||
<div class='fui-content'>
|
||
<div class='content-empty'>
|
||
<i class='icon icon-searchlist'></i><br/> 商品已经下架,或者已经删除!<br/><a href="{php echo mobileUrl()}" class='btn btn-default-o external'>到处逛逛</a>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
|
||
<div id='cover'>
|
||
<div class='fui-mask-m visible'></div>
|
||
<div class='arrow'></div>
|
||
<div class='content'>{if empty($share['goods_detail_text'])}请点击右上角<br/>通过【发送给朋友】<br/>邀请好友购买{else}{$share['goods_detail_text']}{/if}</div>
|
||
</div>
|
||
|
||
{template 'sale/coupon/util/couponpicker'}
|
||
<script language="javascript">
|
||
|
||
require(['biz/goods/detail'], function (modal) {
|
||
modal.init({
|
||
goodsid:"{$goods['id']}",
|
||
getComments : "{$getComments}",
|
||
seckillinfo: {php echo json_encode($seckillinfo)},
|
||
attachurl_local:"{$GLOBALS['_W']['attachurl_local']}",
|
||
attachurl_remote:"{$GLOBALS['_W']['attachurl_remote']}",
|
||
coupons: {php echo json_encode($coupons)},
|
||
new_temp: {$new_temp}
|
||
});
|
||
});
|
||
</script>
|
||
</div>
|
||
|
||
<div id="alert-picker">
|
||
<script type="text/javascript" src="../addons/{EWEI_SHOP_V2_MODULE_NAME}/static/js/dist/jquery/jquery.qrcode.min.js"></script>
|
||
<script type="text/javascript">
|
||
$(function(){
|
||
$(".alert-qrcode-i").html('')
|
||
$(".alert-qrcode-i").qrcode({
|
||
typeNumber: 0, //计算模式
|
||
correctLevel: 0,//纠错等级
|
||
text:"{php echo mobileUrl('goods/detail', array('id'=>$goods['id'],'mid'=>$mid),true)}"/*{php echo $_W['siteroot'].'app/'.mobileUrl('goods/detail', array('id'=>$goods['id']))}*/
|
||
});
|
||
});
|
||
</script>
|
||
<div id="alert-mask"></div>
|
||
{if $commission_data['codeShare'] == 1}
|
||
<div class="alert-content">
|
||
<div class="alert">
|
||
<i class="alert-close alert-close1 icon icon-close"></i>
|
||
<div class="fui-list alert-header">
|
||
<div class="fui-list-media">
|
||
<img class="round" src="{php echo tomedia($_W['shopset']['shop']['logo'])}">
|
||
</div>
|
||
<div class="fui-list-inner">
|
||
{$_W['shopset']['shop']['name']}
|
||
</div>
|
||
</div>
|
||
<img src="{php echo tomedia($goods['thumb'])}" class="alert-goods-img" alt="">
|
||
<div class="fui-list alert-qrcode">
|
||
<div class="fui-list-media">
|
||
<i class="alert-qrcode-i"></i>
|
||
</div>
|
||
<div class="fui-list-inner alert-content">
|
||
<h2 class="alert-title">{$goods['title']}</h2>
|
||
<span>¥{if $goods['minprice']==$goods['maxprice']}{$goods['minprice']}{else}{$goods['minprice']}~{$goods['maxprice']}{/if}</span>
|
||
{if $goods['isdiscount'] && $goods['isdiscount_time']>=time()}
|
||
<del>¥{$goods['productprice']}</del>
|
||
{else}
|
||
{if $goods['productprice']>0}<del>¥{$goods['productprice']}</del>{/if}
|
||
{/if}
|
||
</div>
|
||
</div>
|
||
<div class="share-text1">截屏保存分享给您的朋友</div>
|
||
</div>
|
||
</div>
|
||
{elseif $commission_data['codeShare'] == 2}
|
||
<div class="alert-content">
|
||
<div class="alert2">
|
||
<div class="fui-list alert2-goods">
|
||
<div class="fui-list-media">
|
||
<img src="{php echo tomedia($goods['thumb'])}" class="alert2-goods-img" alt="">
|
||
</div>
|
||
<div class="fui-list-inner">
|
||
<h2 class="alert2-title">{$goods['title']}</h2>
|
||
<span>¥{if $goods['minprice']==$goods['maxprice']}{$goods['minprice']}{else}{$goods['minprice']}~{$goods['maxprice']}{/if}</span>
|
||
{if $goods['isdiscount'] && $goods['isdiscount_time']>=time()}
|
||
<del>¥{$goods['productprice']}</del>
|
||
{else}
|
||
{if $goods['productprice']>0}<del>¥{$goods['productprice']}</del>{/if}
|
||
{/if}
|
||
</div>
|
||
</div>
|
||
<div class="alert2-qrcode">
|
||
<i class="alert-qrcode-i"></i>
|
||
</div>
|
||
<div class="share-text2">截屏保存分享给您的朋友</div>
|
||
<a href="javascript:void(0);" class="alert-close2">{$_W['shopset']['shop']['name']}</a>
|
||
</div>
|
||
</div>
|
||
{else}
|
||
<div class="alert-content">
|
||
<div class="alert" style="padding:0;background: #f5f4f9;border:none;-webkit-border-radius: 0.3rem;border-radius: 0.3rem;top:2rem;">
|
||
<i class="alert-close alert-close1 icon icon-close" style="right: -0.7rem;top: -0.8rem;background: #e1040d;border:none;z-index:10"></i>
|
||
<div class="fui-list alert-header" style="-webkit-border-radius: 0.3rem;border-radius: 0.3rem;padding:0;">
|
||
<img src="{php echo tomedia($goodscode)}" class="alert-goods-img" alt="">
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
</div>
|
||
|
||
<style type="text/css">
|
||
.share-text1{text-align: center;padding:0.5rem 0.5rem 0;font-size:0.6rem;color:#666;line-height: 1rem;}
|
||
.share-text2{text-align: center;padding:0 0.5rem 0.5rem;font-size:0.6rem;color:#666;line-height: 1rem;}
|
||
</style>
|
||
|
||
{template '_footer'} |