1647 lines
74 KiB
HTML
1647 lines
74 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;}
|
||
/* 首图轮播样式 */
|
||
#videoFirst {
|
||
position: absolute;
|
||
left: 0;
|
||
top: 0;
|
||
}
|
||
.videoBtn {
|
||
width: auto;
|
||
height: auto;
|
||
position: absolute;
|
||
bottom: 45px;
|
||
left: 50%;
|
||
margin-left: -50px;
|
||
z-index: 10;
|
||
}
|
||
.videoBtn .video_btn {
|
||
display: inline-block;
|
||
color: #ff5555;
|
||
width: 40px;
|
||
height: 22px;
|
||
border-radius: 10px;
|
||
text-align: center;
|
||
line-height: 22px;
|
||
float: left;
|
||
background: rgba(255, 255, 255, 0.6);
|
||
margin: 0 5px;
|
||
font-size: 12px;
|
||
}
|
||
.videoBtn .video_btn.active {
|
||
color: #ffffff;
|
||
background: #ff5555;
|
||
}
|
||
</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 $is_offic}
|
||
<link rel="stylesheet" href="../addons/{EWEI_SHOP_V2_MODULE_NAME}/plugin/offic/static/css/style.css" />
|
||
{/if}
|
||
{if !empty($islive)}
|
||
<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">
|
||
{if $new_temp}
|
||
商品详情
|
||
{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}
|
||
{if $is_offic}
|
||
<a data-tab="tab5" id="offic-tab">素材</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 notop">
|
||
{if !empty($params)}
|
||
{loop $params $p}
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-label md" >{$p['title']}</div>
|
||
<div class="fui-cell-info overflow md" style="line-height: 1.0rem;">{$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 navbar 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>
|
||
{loop $goods['bottomFixedImageUrls'] $img}
|
||
<img src="{$img}" width="100%">
|
||
{/loop}
|
||
</div>
|
||
{if $is_offic}
|
||
<div class="fui-content offic-block" style="bottom:0;">
|
||
<div class="offic-list-tab">
|
||
<a class="active" href="javascript:void(0);" data-type="0">官方精选</a>
|
||
<a href="javascript:void(0);" data-type="1">我的素材</a>
|
||
</div>
|
||
<div class="" id="offic-list-container">
|
||
<div class="cantainer"></div>
|
||
<div class='content-empty' style='display:none;'>
|
||
<i class='icon icon-edit' style="font-size:3.2rem;"></i><br/>
|
||
<p style="font-size:0.6rem;line-height: 1rem;">您还没有上传关于这个商品的文案</p>
|
||
<p style="font-size:0.6rem;">点击下面编写按钮,发布自己的文案吧</p>
|
||
<p style="font-size:0.5rem;padding:2rem 0 0 0;"><span class="icon icon-information" style="vertical-align: middle;margin-right: 0.2rem;font-size:0.5rem;"></span>请不要上传与商品不符,带任何二维码及商品链接的文案</p>
|
||
</div>
|
||
<div class='infinite-loading'><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
|
||
</div>
|
||
|
||
</div>
|
||
<a href="{php echo mobileUrl('goods/offic', array('goodsid'=>$goods['id']))}" class="offic-goods-edit">
|
||
<img src="../addons/{EWEI_SHOP_V2_MODULE_NAME}/plugin/offic/static/images/offic_goods_edit.png" alt=""> 推荐好货
|
||
</a>
|
||
<script id='tpl_offic_find_list' type='text/html'>
|
||
<%each officlist as item%>
|
||
<div class="offic-find-list">
|
||
<div class="find-list-head fui-list">
|
||
<div class="find-list-head-thumb fui-list-media">
|
||
<span><img src="<%item.avatar%>" alt="<%item.nickname%>"></span>
|
||
</div>
|
||
<div class="find-list-head-title fui-list-inner"><%item.nickname%></div>
|
||
<div class="find-list-head-time fui-list-angle"><%item.createtime%></div>
|
||
</div>
|
||
<div class="find-list-content">
|
||
<div class="find-list-content-content">
|
||
<%item.content%>
|
||
</div>
|
||
<%if item.images.length>0%>
|
||
<div class="find-list-content-thumb">
|
||
<%if item.images.length>1%>
|
||
<%each item.images as it%>
|
||
<span class="find-list-content-images">
|
||
<a href="javascript:void(0);" style="background-image: url('<%it%>')">
|
||
<img src="<%it%>" width="100%" alt="">
|
||
</a>
|
||
</span>
|
||
<%/each%>
|
||
<%/if%>
|
||
<%if item.images.length==1%>
|
||
<%each item.images as it%>
|
||
<span class="find-list-content-imagesy">
|
||
<a href="javascript:void(0);" style="background-image: url('<%it%>')">
|
||
<img src="<%it%>" width="100%" alt="">
|
||
</a>
|
||
</span>
|
||
<%/each%>
|
||
<%/if%>
|
||
</div>
|
||
<%/if%>
|
||
</div>
|
||
<div class="find-list-foot fui-list">
|
||
<div class="fui-list-inner offic-download"><i><img src="../addons/{EWEI_SHOP_V2_MODULE_NAME}/plugin/offic/static/images/offic_download.png" alt=""></i>下载图片</div>
|
||
<div class="fui-list-inner offic-qrcode"><i><img src="../addons/{EWEI_SHOP_V2_MODULE_NAME}/plugin/offic/static/images/offic_find_share.png" alt=""></i>分享商品</div>
|
||
</div>
|
||
</div>
|
||
<%/each%>
|
||
</script>
|
||
{/if}
|
||
{/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}
|
||
|
||
|
||
<script language='javascript'>
|
||
function getHeight (obj){
|
||
if(window.screen.width < 750) {
|
||
var w = obj.width;
|
||
var h = obj.height;
|
||
var height = ((750*h) / w) / 40 + 'rem';
|
||
}else {
|
||
var w = obj.naturalWidth;
|
||
var h = obj.naturalHeight;
|
||
var height = ((750 * h) / w) + 'px';
|
||
}
|
||
$('.videoShow').css('height', height );
|
||
$('#videoFirst').css('height', height );
|
||
$('.fui-swipe.goods-swipe .fui-swipe-wrapper .fui-swipe-item img').css('height', height);
|
||
}
|
||
function getImg (obj) {
|
||
$('.fui-swipe.goods-swipe .fui-swipe-wrapper .fui-swip-item img').css('transfrom','scale(2,2)')
|
||
}
|
||
</script>
|
||
<!--轮播已完成-->
|
||
<!-- 首图ending -->
|
||
<div class='fui-swipe goods-swipe' >
|
||
{if !empty($islive)}
|
||
<a class="external isliving" href="{php echo mobileUrl('live/room', array('id'=>$liveid))}">直播中</a>
|
||
{/if}
|
||
<!-- 添加首图视频播放 -->
|
||
{if $goods['video_type'] == 2 }
|
||
{php $videoUrl = parseTencentVideo($goods['video_url']);}
|
||
{elseif $goods['video_type'] == 1}
|
||
{php $videoUrl = tomedia($goods['video']);}
|
||
{/if}
|
||
{if !empty($videoUrl)}
|
||
<div class="fui-swipe goods-swipe videoShow">
|
||
{if $goods['video_cut']}
|
||
<video id="videoFirst"
|
||
src="{php echo $videoUrl}"
|
||
webkit-playsinline="true"
|
||
playsinline x5-video-player-type="h5"
|
||
x5-video-player-fullscreen="true"
|
||
x5-video-orientation="portraint"
|
||
controls style='width:100%;'
|
||
poster="{php echo tomedia($goods['video_cut'])} " >
|
||
</video>
|
||
{else}
|
||
<video id="videoFirst"
|
||
class="autoplay"
|
||
src="{php echo $videoUrl}"
|
||
preload="auto"
|
||
webkit-playsinline="true"
|
||
playsinline x5-video-player-type="h5"
|
||
x5-video-player-fullscreen="true"
|
||
x5-video-orientation="portraint"
|
||
controls style='width:100%;'>
|
||
</video>
|
||
{/if}
|
||
<div class="videoBtn">
|
||
<div class="video_btn active" data-type="1">视频</div>
|
||
<div class="video_btn" data-type="0">图片</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
<div class="fui-swipe goods-swipe">
|
||
<div class="videoBtn" {if empty($videoUrl)} style="display: none;" {/if}>
|
||
<div class="video_btn" data-type="1">视频</div>
|
||
<div class="video_btn active" data-type="0">图片</div>
|
||
</div>
|
||
<div class="fui-swipe goods-swipe" id="allSwiper" {if !empty($videoUrl)} style="display: none;" {/if}>
|
||
<div class='fui-swipe-wrapper'>
|
||
{loop $thumbs $index $thumb}
|
||
<div class='fui-swipe-item'>
|
||
{if $index == "0" }
|
||
<img src="{php echo tomedia($thumb)}" onload='getHeight(this)' touchstart='getImg(this)' data-lazy="{php echo tomedia($thumb)}"/>
|
||
{else}
|
||
<img src="{php echo tomedia($thumb)}" data-lazy="{php echo tomedia($thumb)}"/>
|
||
{/if}
|
||
</div>
|
||
{/loop}
|
||
</div>
|
||
<div class='fui-swipe-page' style="text-align: center;"></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>
|
||
</div>
|
||
</div>
|
||
|
||
<!--秒杀完成-->
|
||
{if !empty($seckillinfo)}
|
||
<div class="red">
|
||
<div class="seckill-container {if $seckillinfo['status']==1}notstart{/if}"
|
||
data-starttime="{$seckillinfo['starttime']}"
|
||
data-endtime="{$seckillinfo['endtime']}"
|
||
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">
|
||
{if empty($seckillinfo['tag'])}
|
||
|
||
{else}
|
||
<div class="text">
|
||
<span class="stitle" style="white-space:nowrap; overflow:hidden; max-width:2.6rem;">{$seckillinfo['tag']}</span>
|
||
</div>
|
||
{/if}
|
||
<div class="text"><span class="oldprice">¥{$goods['productprice']}</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="process-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>
|
||
</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}
|
||
<!--分销佣金-->
|
||
{if $goods['cansee']>0 && $goods['seecommission']>0 }
|
||
<div style="height: 1.3rem;margin:0.2rem 0.6rem">
|
||
<div class="detail-Commission flex" style="padding-bottom: 0;display: inline-flex;float: right;">
|
||
<div class="text"> {php echo empty($goods['seetitle'])?'预计最高佣金':$goods['seetitle']}</div>
|
||
<div class="num flex1">¥{$goods['seecommission']}</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
<!--批发价格-->
|
||
<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}{$goods['unit']}{else}{$goods['unit']}以上{/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}{$goods['unit']}{else}{$goods['unit']}以上{/if}</p>
|
||
</span>
|
||
{/if}
|
||
{if $goods['intervalfloor']>2}
|
||
<span>
|
||
<p class="price"><small>¥</small>{$goods['intervalprice3']}</p>
|
||
<p>>{$goods['intervalnum3']}{$goods['unit']}</p>
|
||
</span>
|
||
{/if}
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
<!--正常价格-->
|
||
{if empty($seckillinfo)&&$goods['type']!=4}
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text price" >
|
||
|
||
{if $islive}
|
||
<span class="live-price">直播价</span>
|
||
{/if}
|
||
|
||
<span class="text-danger" style="vertical-align: middle;">
|
||
<!--任务-->
|
||
{if !empty($taskGoodsInfo)}
|
||
¥{$taskGoodsInfo['price']}
|
||
<!--三n营销-->
|
||
{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['hasoption']==1}
|
||
<!--预售-->
|
||
{$goods['minpresellprice']}~{$goods['maxpresellprice']}
|
||
{else if $goods['ispresell']>0 && $goods['hasoption']==0}
|
||
{$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}
|
||
{if p('offic') && $mid > 0}
|
||
<strong>赚 {$commission_price}</strong>
|
||
{/if}
|
||
</span>
|
||
</div>
|
||
<!--分销佣金-->
|
||
{if $goods['cansee']>0 && $goods['seecommission']>0 }
|
||
<div class="detail-Commission flex" style="padding-bottom: 0">
|
||
<div class="text"> {php echo empty($goods['seetitle'])?'预计最高佣金':$goods['seetitle']}</div>
|
||
<div class="num flex1">¥{$goods['seecommission']}</div>
|
||
</div>
|
||
{/if}
|
||
</div>
|
||
|
||
|
||
<!--促销倒计时-->
|
||
{if $goods['isdiscount'] && $goods['isdiscount_time']>=time() && $goods['isdiscount_time_start'] < 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 " >-</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 $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="距离{php echo empty($_W['shopset']['trade']['istimetext'])? '限时购': $_W['shopset']['trade']['istimetext']}开始"
|
||
data-end-label="距离{php echo empty($_W['shopset']['trade']['istimetext'])? '限时购': $_W['shopset']['trade']['istimetext']}结束"
|
||
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'>{php echo empty($_W['shopset']['trade']['istimetext'])? '限时购': $_W['shopset']['trade']['istimetext']}</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 titletabinfo" style="font-size: 0.55rem;line-height: 1.2rem;justify-content: space-between;-webkit-justify-content: space-between;flex-wrap: wrap;-webkit-flex-wrap: wrap;color: #666;">
|
||
<!--<div class="flex">-->
|
||
{if is_array($goods['dispatchprice'])}
|
||
{if $goods['type']==1 && $goods['isverify']!=2 && $goods['isshowfreight'] == 1}
|
||
<p>快递:{php echo number_format($goods['dispatchprice']['min'],2)} ~ {php echo number_format($goods['dispatchprice']['max'],2)} </p>
|
||
{/if}
|
||
{else}
|
||
{if $goods['type']==1 && $goods['isverify']!=2 && $goods['isshowfreight'] == 1}
|
||
<p>快递:{php echo $goods['dispatchprice'] == 0 ? '包邮' : number_format($goods['dispatchprice'],2)} </p>
|
||
{/if}
|
||
{/if}
|
||
{if $seckillinfo==false || ( $seckillinfo && $seckillinfo.status==1)}
|
||
{if $goods['showtotal'] == 1}
|
||
<p>库存:{$goods['total']} </p>
|
||
{/if}
|
||
{if $goods['showsales'] == 1}
|
||
<p>销量:{php echo number_format($goods['sales'],0)} {$goods['unit']} </p>
|
||
{/if}
|
||
{else}
|
||
<p></p>
|
||
<p></p>
|
||
{/if}
|
||
{if $goods['province'] != '请选择省份' && $goods['city'] != '请选择城市'}
|
||
<p>{$goods['province']} {$goods['city']}</p>
|
||
{/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" style="margin-right: 0;align-self: flex-start;-webkit-align-self: flex-start">
|
||
<div class='fui-cell-text'>
|
||
<span style="font-size: 0.65rem;color: #666;vertical-align: top">预售:</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日 H:i:s', $goods['presellsendstatrttime'])}{/if}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
<!-- 商品可用优惠券 -->
|
||
{if com('coupon')&&$coupons}
|
||
<div class="fui-cell-group fui-cell-click fui-sale-group noborder">
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text coupon-selector">
|
||
<span style="margin-right: 0.25rem">优惠券</span>
|
||
{loop $coupons $index $couponmini}
|
||
{if $index<5}
|
||
<span class="coupon-mini">{if $couponmini['backpre']}¥{/if}{php echo price_format($couponmini['backmoney'])}{if $couponmini['backtype']==1}折{/if}</span>
|
||
{/if}
|
||
{/loop}
|
||
</div>
|
||
<div class="fui-cell-remark">{if count($coupons)>5}更多{/if}</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
<!-- 所有营销 -->
|
||
<div class="fui-cell-group fui-sale-group nomargin">
|
||
|
||
<!-- 会员等级 -->
|
||
{if empty($goods['isdiscount']) || (!empty($goods['isdiscount']) &&$goods['isdiscount_time']<time())}
|
||
{if !empty($memberprice) && $memberprice!=$goods['minprice'] && !empty($level)}
|
||
<div class="fui-cell fui-sale-cell">
|
||
<div class="fui-cell-label" style="padding-top: 0.1rem">会员</div>
|
||
<div class="fui-cell-text" style="white-space: normal;">
|
||
<div class="sale-line">
|
||
<span class="sale-tip">{$level['levelname']}</span>
|
||
可享受 <span class="text-danger">¥{$memberprice}</span> 的价格
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
{/if}
|
||
|
||
{if ($enoughs && count($enoughs)>0 && empty($seckillinfo)) || ($hasSales && empty($seckillinfo)) || ((!empty($goods['deduct']) && $goods['deduct'] != '0.00') || !empty($goods['credit'])) || (floatval($goods['buyagain'])>0 && empty($seckillinfo)) || (!empty($fullbackgoods) && $isfullback)}
|
||
<div class="fui-cell fui-sale-cell" id="picker-sales">
|
||
<div class="fui-cell-label" style="padding-top: 0.2rem">活动</div>
|
||
<div class="fui-cell-text">
|
||
<!-- 满减 -->
|
||
{if $enoughs && count($enoughs)>0 && empty($seckillinfo)}
|
||
<div class="sale-line">
|
||
<span class="sale-tip">满减</span>
|
||
<span>全场满 <span class="text-danger">¥{$enoughs[0]['enough']}</span> 立减 <span class="text-danger">¥{$enoughs[0]['money']}</span></span>
|
||
</div>
|
||
{/if}
|
||
|
||
<!-- 包邮 -->
|
||
{if $hasSales && empty($seckillinfo)}
|
||
{if (!is_array($goods['dispatchprice']) && $goods['type']==1 && $goods['isverify']!=2 && $goods['dispatchprice']==0) || (($enoughfree && $enoughfree==-1) || ($enoughfree>0 || $goods['ednum']>0 || $goods['edmoney']>0))}
|
||
<div class="sale-line">
|
||
<span class="sale-tip">包邮</span>
|
||
<span>
|
||
{if !is_array($goods['dispatchprice'])}
|
||
{if $goods['type']==1 && $goods['isverify']!=2}
|
||
{if $goods['dispatchprice']==0}
|
||
本商品包邮;
|
||
{/if}
|
||
{/if}
|
||
{/if}
|
||
|
||
{if $enoughfree && $enoughfree==-1}
|
||
{if !empty($merch_set['enoughfree'])}本店{else}全场{/if}包邮
|
||
{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}{if !empty($merch_set['enoughfree'])}本店{else}全场{/if}满 <span class="text-danger">¥{$enoughfree}</span> 包邮; {/if}
|
||
{/if}
|
||
</span>
|
||
</div>
|
||
{/if}
|
||
{/if}
|
||
|
||
<!-- 积分 -->
|
||
{if (!empty($goods['deduct']) && $goods['deduct'] != '0.00') || !empty($goods['credit'])}
|
||
<div class="sale-line">
|
||
<span class="sale-tip">{$_W['shopset']['trade']['credittext']}</span>
|
||
<span>
|
||
{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}
|
||
</span>
|
||
</div>
|
||
{/if}
|
||
|
||
<!-- 二次购买 -->
|
||
{if floatval($goods['buyagain'])>0 && empty($seckillinfo)}
|
||
<div class="sale-line">
|
||
<span class="sale-tip">复购</span>
|
||
<span>此商品重复购买可享受 <span class="text-danger">{$goods['buyagain']}</span> 折优惠{if empty($goods['buyagain_sale'])}<br>重复购买 不与其他优惠共享{/if}</span>
|
||
</div>
|
||
{/if}
|
||
|
||
<!--全返-->
|
||
{if !empty($fullbackgoods) && $isfullback}
|
||
<div class="sale-line">
|
||
<span class="sale-tip">{php m('sale')->getFullBackText(true)}</span>
|
||
<span>
|
||
该商品享受
|
||
{if $fullbackgoods['type']>0}
|
||
<span class="text-danger">
|
||
{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">
|
||
{if $goods['hasoption'] > 0}
|
||
{if $fullbackgoods['minallfullbackallprice'] == $fullbackgoods['maxallfullbackallprice']}
|
||
¥{$fullbackgoods['minallfullbackallprice']}
|
||
{else}
|
||
¥{$fullbackgoods['minallfullbackallprice']} ~ ¥{$fullbackgoods['maxallfullbackallprice']}
|
||
{/if}
|
||
{else}
|
||
¥{$fullbackgoods['minallfullbackallprice']}
|
||
{/if}
|
||
</span>
|
||
{/if}
|
||
的{php m('sale')->getFullBackText(true)}
|
||
</span>
|
||
</div>
|
||
{/if}
|
||
|
||
</div>
|
||
<div class="fui-cell-remark"></div>
|
||
</div>
|
||
{/if}
|
||
|
||
{if !empty($goods['city_express_state'])}
|
||
<a class="external fui-cell" href="{php echo mobileUrl('shop/cityexpress/map')}">
|
||
<div class="fui-cell-text">
|
||
<span style="margin-right: 1rem">配送</span>
|
||
<span class="sale-line">
|
||
<span class="sale-tip">同城</span>
|
||
<span>查看商家位置</span>
|
||
</span>
|
||
</div>
|
||
<div class="fui-cell-remark"></div>
|
||
</a>
|
||
{/if}
|
||
|
||
|
||
</div>
|
||
<!--赠品-->
|
||
{if $gifts && $goods['total'] > 0}
|
||
<div class="fui-cell-group fui-sale-group nomargin">
|
||
<div class="fui-cell fui-sale-cell sendgoods">
|
||
<div class="fui-cell-label">赠品</div>
|
||
{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 $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 $has_city && $goods['type']!=5 && $goods['isverify']!=2 }
|
||
<div class='fui-cell-group fui-cell-click fui-sale-group noborder' id="city-picker">
|
||
<div class='fui-cell'>
|
||
<div class='fui-cell-text' style="font-size: 0.7rem;line-height: 0.8rem">{if empty($onlysent)}不{else}只{/if}配送区域:
|
||
{if !empty($citys)}
|
||
{loop $citys $item}
|
||
{$item}
|
||
{/loop}
|
||
{/if}
|
||
</div>
|
||
<div class='fui-cell-remark'></div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
|
||
{if !empty($stores)}
|
||
<script language='javascript' src='https://api.map.baidu.com/api?v=2.0&ak=5isIGenHv2Q0PHTyDVqG6CGBryhP7P1v&s=1'></script>
|
||
<div class='fui-according-group'>
|
||
<div class='fui-according expanded'>
|
||
<div class='fui-according-header'>
|
||
<span class="text">适用门店</span>
|
||
<span class="remark"><div class="badge">{php echo count($stores)}</div></span>
|
||
</div>
|
||
<div class="fui-according-content store-container fui-cell-group">
|
||
{loop $stores $item}
|
||
<a href="{php echo mobileUrl('store/detail',array('id'=>$item['id'],'merchid'=>$item['merchid']))}" class="fui-cell store-item external"
|
||
data-lng="{php echo floatval($item['lng'])}"
|
||
data-lat="{php echo floatval($item['lat'])}">
|
||
<div class="fui-cell-icon">
|
||
<i class='icon icon-dingwei1'></i>
|
||
</div>
|
||
<div class="fui-cell-text">
|
||
<div class="title"><span class='storename'>{$item['storename']}</span></div>
|
||
</div>
|
||
<div class="fui-cell-remark ">
|
||
查看
|
||
</div>
|
||
</a>
|
||
{/loop}
|
||
|
||
{if count($stores)>3}
|
||
<div class='show-allshop'><span class='show-allshop-btn'>加载更多门店</span></div>
|
||
{/if}
|
||
</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 && empty($seckillinfo)}
|
||
<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 nobuy" {if $ispresell}style="display: none;"{/if}>
|
||
<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}
|
||
商品已经售罄!
|
||
{else if $goods['status'] == 0}
|
||
商品已下架!
|
||
{else if !empty($goods['overdue'])}
|
||
商品已过期!
|
||
{/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">
|
||
<a class='fui-list' href="{$shopdetail['btnurl2']}">
|
||
<div class='fui-list-media'>
|
||
<img data-lazy="{php echo tomedia($shopdetail['logo'])}" />
|
||
</div>
|
||
<div class='fui-list-inner'>
|
||
<div class='title' style="padding-top:0.15rem">{$shopdetail['shopname']}</div>
|
||
<div class='subtitle'>{$shopdetail['description']}</div>
|
||
</div>
|
||
<div class="fui-list-angle " style="margin-right: 0.2rem;{if p('offic')}display: none;{/if}">
|
||
<span class="btn btn-default-o external goshop">{if !empty($shopdetail['btntext2'])}{$shopdetail['btntext2']}{else}进店逛逛{/if}</span>
|
||
</div>
|
||
</a>
|
||
</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>
|
||
{loop $goods['bottomFixedImageUrls'] $img}
|
||
<img src="{$img}" width="100%">
|
||
{/loop}
|
||
<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-title text-center' style="background: white;">请选择赠品</div>
|
||
<div class="fui-cell-group fui-sale-group" style="margin-top:0; overflow-y: auto;">
|
||
<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>
|
||
<div class='btn btn-danger block fullbtn'>确定</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
<!--底部按钮-->
|
||
{if $goods['canbuy']}
|
||
<div class="fui-navbar bottom-buttons">
|
||
{if p('offic') && $opencommission && $member['isagent'] == 1 && $member['status'] == 1}
|
||
<a class="nav-item external" href="{php echo mobileUrl('offic/myshop',array('mid'=>$mid));}">
|
||
<span class="icon icon-home"></span>
|
||
<span class="label" >首页</span>
|
||
</a>
|
||
<a class="nav-item external" href="{php echo mobileUrl('member');}">
|
||
<span class="icon icon-person2"></span>
|
||
<span class="label" >我的</span>
|
||
</a>
|
||
<a class="nav-item cart-item external" 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 !empty($seckillinfo) && $seckillinfo['status']==1}
|
||
<a class="nav-item btn buybtn seckill-notstart" style="padding:0 1.9rem;">买</a>
|
||
{else}
|
||
<a class="nav-item btn buybtn" data-type="{$goods['type']}" style="padding:0 1.9rem;">买</a>
|
||
{/if}
|
||
<a class="nav-item btn offic-qrcode" style="background: #fe9402;padding:0 1.9rem;">卖</a>
|
||
{else}
|
||
<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}
|
||
{if !isset($_GPC['taskrewardgoodsid'])}
|
||
<a class="nav-item btn cartbtn" data-type="{$goods['type']}">加入购物车</a>
|
||
{/if}
|
||
{/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']}" data-time="{if !empty($access_time)}access_time{elseif !empty($timeout)}timeout{/if}" data-timeout="false">立刻购买</a>
|
||
{/if}
|
||
|
||
{/if}
|
||
</div>
|
||
{/if}
|
||
|
||
<!--配送区域弹层-->
|
||
{if $has_city}
|
||
<div id='city-picker-modal' style="margin: -100%;">
|
||
<div class='city-picker'>
|
||
<div class='fui-cell-title text-center' style="background: white;">{if empty($onlysent)}不{else}只{/if}配送区域</div>
|
||
<div class="fui-cell-group fui-sale-group" style="margin-top:0; overflow-y: auto;">
|
||
<div class="fui-cell">
|
||
<div class="fui-cell-text dispatching">
|
||
<div class="dispatching-info">
|
||
{loop $citys $item}
|
||
<i>{$item}</i>
|
||
{/loop}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class='btn btn-danger block fullbtn'>确定</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
<!--华仔定制分享-->
|
||
{if p('offic')}
|
||
<div id="picker-qrcode-modal" style="margin-bottom: -100%">
|
||
<div class='picker-sales page-goods-detail'>
|
||
<div class="fui-cell-group fui-sale-group" style="margin-top:0;background: #f7f7f7;">
|
||
<div class="fui-cell-title text-center offic-share-title">赚 {$commission_price}</div>
|
||
<div class="fui-cell-title text-center offic-share-info">只要你的好友通过你的链接购买此商品,你就能得到至少<span>{$commission_price}</span>元的利润哦~</div>
|
||
|
||
<div class="fui-cell fui-sale-cell">
|
||
<!--<div class="fui-cell-text offic-cell-text" data-url="{php echo mobileUrl('goods/detail', array('id'=>$goods['id'],'mid' => $mid), true)}">
|
||
<input type="hidden" value="">
|
||
<i class="icon icon-link1"></i>
|
||
<p>商品链接</p>
|
||
</div>-->
|
||
<div class="fui-cell-text offic-cell-text">
|
||
<i class="icon icon-code offic-cell-code"></i>
|
||
<p>商品二维码</p>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="btn btn-default block officbtn" style="margin:0;border:none;background: #fff;">取消</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
<!-- 促销活动层 ---------------------------------------------------------------------------------------->
|
||
<div id="picker-sales-modal" style="margin: -100%">
|
||
<div class='picker-sales page-goods-detail'>
|
||
<div class='fui-cell-title text-center' style="background: white;">活 动</div>
|
||
<div class="fui-cell-group fui-sale-group noborder" style="margin-top:0; overflow-y: auto;">
|
||
<!-- 商城满减 -->
|
||
{if $enoughfree || ($enoughs && count($enoughs)>0)}
|
||
{if $enoughs && count($enoughs)>0 && empty($seckillinfo)}
|
||
<div class="fui-cell fui-sale-cell">
|
||
<div class="fui-cell-label">
|
||
<span class="sale-tip">满减</span>
|
||
</div>
|
||
<div class="fui-cell-text" style="white-space: inherit;">
|
||
{loop $enoughs $key $enough}
|
||
<div>全场 满<span class="text-danger">¥{$enough['enough']}</span>立减<span class="text-danger">¥{$enough['money']}</span></div>
|
||
{/loop}
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
{/if}
|
||
|
||
<!-- 商户满减 -->
|
||
{if !empty($merch_set['enoughdeduct']) && empty($seckillinfo)}
|
||
<div class="fui-cell fui-sale-cell">
|
||
<div class="fui-cell-label">
|
||
<span class="sale-tip">满减</span>
|
||
</div>
|
||
<div class="fui-cell-text" style="white-space: inherit;">
|
||
{loop $merch_set['enoughs'] $key $enough}
|
||
<div>商户 满<span class="text-danger">¥{$enough['enough']}</span>立减<span class="text-danger">¥{$enough['give']}</span></div>
|
||
{/loop}
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
<!-- 包邮 -->
|
||
{if $hasSales && empty($seckillinfo)}
|
||
{if (!is_array($goods['dispatchprice']) && $goods['type']==1 && $goods['isverify']!=2 && $goods['dispatchprice']==0) || (($enoughfree && $enoughfree==-1) || ($enoughfree>0 || $goods['ednum']>0 || $goods['edmoney']>0))}
|
||
<div class="fui-cell fui-sale-cell">
|
||
<div class="fui-cell-label">
|
||
<span class="sale-tip">包邮</span>
|
||
</div>
|
||
<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)}
|
||
{if !empty($merch_set['enoughfree'])}本店{else}全场{/if}包邮
|
||
{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}{if !empty($merch_set['enoughfree'])}本店{else}全场{/if}满 <span class="text-danger">¥{$enoughfree}</span> 包邮; {/if}
|
||
{/if}
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
{/if}
|
||
|
||
<!-- 积分 -->
|
||
{if (!empty($goods['deduct']) && $goods['deduct'] != '0.00') || !empty($goods['credit'])}
|
||
<div class="fui-cell fui-sale-cell">
|
||
<div class="fui-cell-label">
|
||
<span class="sale-tip">{$_W['shopset']['trade']['credittext']}</span>
|
||
</div>
|
||
<div class="fui-cell-text">
|
||
{if !empty($goods['deduct']) && $goods['deduct'] != '0.00'}<div>最高抵扣<span class="text-danger">¥{$goods['deduct']}</span></div>{/if}
|
||
{if !empty($goods['credit'])}<div>购买赠送<span class="text-danger">{$goods['credit']}</span>{$_W['shopset']['trade']['credittext']}</div>{/if}
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
<!-- 二次购买 -->
|
||
{if floatval($goods['buyagain'])>0 && empty($seckillinfo)}
|
||
<div class="fui-cell fui-sale-cell">
|
||
<div class="fui-cell-label">
|
||
<span class="sale-tip">复购</span>
|
||
</div>
|
||
<div class="fui-cell-text">
|
||
此商品重复购买可享受<span class="text-danger">{$goods['buyagain']}</span>折优惠{if empty($goods['buyagain_sale'])}<br>重复购买 不与其他优惠共享{/if}
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
{if $isfullback}
|
||
|
||
<div class="fui-cell fui-sale-cell">
|
||
<div class="fui-cell-label">
|
||
<span class="sale-tip">{php m('sale')->getFullBackText(true)}</span>
|
||
</div>
|
||
<div class="fui-cell-text" style="white-space: inherit;">
|
||
<div class="fullback-info">
|
||
<p style="display: block;"><i>¥</i>{php m('sale')->getFullBackText(true)}总额:
|
||
{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 style="display: block;"><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 style="display: block;"><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" style="line-height: inherit;">
|
||
确认收货{$fullbackgoods['startday']}天后开始{php m('sale')->getFullBackText(true)}。如申请退款,则{php m('sale')->getFullBackText(true)}金额退还。
|
||
</div>
|
||
{/if}
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
</div>
|
||
<div class="btn btn-danger block fullbtn">确定</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 " style="width: 100%;">
|
||
<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" style="flex-wrap: wrap;">
|
||
<%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 " style="width: 100%;">
|
||
<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" style="flex-wrap: wrap;">
|
||
<%each comment.images as img%>
|
||
<div class="img"><img data-lazy="<%img%>" height="50" /></div>
|
||
<%/each%>
|
||
</div>
|
||
<%/if%>
|
||
</div>
|
||
</div>
|
||
<%/each%>
|
||
<div style="text-align: center;margin: 0.8rem 0">
|
||
<span class="btn btn-default-o external btn-show-allcomment">查看全部评价</span>
|
||
</div>
|
||
</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']}",
|
||
offic:"{$_GPC['plugin']}",
|
||
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: {php echo intval($new_temp)},
|
||
liveid: {php echo intval($liveid)},
|
||
close_preview: {php echo intval($close_preview)},//是否关闭商品详情图片的放大预览
|
||
});
|
||
});
|
||
</script>
|
||
</div>
|
||
<!--华仔定制(下载图片信息提示)-->
|
||
<div id="picker-download-modal" style="margin-bottom: -100%;display: none;">
|
||
<div class='picker-sales page-goods-detail'>
|
||
<div class="fui-cell-group fui-sale-group" style="margin-top:0;background: #f7f7f7;">
|
||
<!--<div class="fui-cell-title text-center offic-share-title">赚 <span class="offic-price"></span></div>-->
|
||
<div class="fui-cell-title text-center offic-share-info" style="margin:1rem 0;text-align: left;">
|
||
<div class="offic-step-copy">
|
||
<p><i class="icon icon-roundcheckfill"></i>复制推广文案</p>
|
||
<p><i class="icon icon-roundcheckfill"></i>将图片保存至相册</p>
|
||
</div>
|
||
<div class="offic-step-share">
|
||
<p>分享给好友</p>
|
||
</div>
|
||
<div class="offic-step-info">
|
||
<p><i>1</i> <span>打开微信、微博</span></p>
|
||
<p><i>2</i> <span>粘贴文案/上传图片</span></p>
|
||
<p><i>3</i> <span>发布</span></p>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="btn btn-default block officbtn" style="margin:0;border:none;background: #fff;">确定</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<!--分享二维码弹层-->
|
||
|
||
<div id="alert-picker">
|
||
<div id="alert-mask"></div>
|
||
{if $commission_data['codeShare'] == 1}
|
||
<div class="alert-content">
|
||
<div class="alert" style="padding:0;">
|
||
<i class="alert-close alert-close1 icon icon-close"></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)}" width="100%" height="100%" class="alert-goods-img" alt="">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{elseif $commission_data['codeShare'] == 2}
|
||
<div class="alert-content">
|
||
<div class="alert2">
|
||
<div class="fui-list alert-header" style="-webkit-border-radius: 0.3rem;border-radius: 0.3rem;padding:0;">
|
||
<img src="{php echo tomedia($goodscode)}" width="100%" height="100%" class="alert-goods-img" alt="">
|
||
</div>
|
||
</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>
|
||
|
||
<div class="goods-layer bottom-buttons">
|
||
<div class="inner">
|
||
<div class="goods-content">
|
||
<div class="goods-title">温馨提示</div>
|
||
<div class="goods-con">{$hint}</div>
|
||
</div>
|
||
<div class="goods-btn buybtn" data-time="{if !empty($access_time)}access_time{elseif !empty($timeout)}timeout{/if}" data-timeout="true">
|
||
确定
|
||
</div>
|
||
</div>
|
||
</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>
|
||
<script language='javascript'>
|
||
$(function () {
|
||
setTimeout(function () {
|
||
var width = window.screen.width * window.devicePixelRatio;
|
||
var height = window.screen.height * window.devicePixelRatio;
|
||
var h = document.body.offsetHeight * window.devicePixelRatio;
|
||
|
||
function isIPhoneX() {
|
||
var u = navigator.userAgent;
|
||
var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
|
||
if (isIOS) {
|
||
if (screen.height === 812 && screen.width === 375) {
|
||
//是iphoneX
|
||
return true;
|
||
} else {
|
||
//不是iphoneX
|
||
return false;
|
||
}
|
||
}
|
||
}
|
||
if (isIPhoneX()) {
|
||
if(window.history.length != 1) {
|
||
$(".fui-navbar,.cart-list,.fui-footer,.fui-content.navbar").removeClass('iphonex');
|
||
} else {
|
||
$(".fui-navbar,.cart-list,.fui-footer,.fui-content.navbar").addClass('iphonex');
|
||
}
|
||
}
|
||
|
||
// 微信版本6.6.7
|
||
/*if(h == 1923){
|
||
$(".fui-navbar,.cart-list,.fui-footer,.fui-content.navbar").removeClass('iphonex');
|
||
return;
|
||
}
|
||
|
||
if(height==2436 && width==1125){
|
||
$(".fui-navbar,.cart-list,.fui-footer,.fui-content.navbar").addClass('iphonex')
|
||
}*/
|
||
|
||
},600)
|
||
{if !empty($videoUrl)}
|
||
setTimeout(function () {
|
||
$('video.autoplay').get(0).pause();
|
||
},500)
|
||
{/if}
|
||
$('.videoBtn .video_btn').click(function () {
|
||
if($(this).data('type')==1) {
|
||
// 视频
|
||
$('#videoFirst').parent().show();
|
||
$('#videoFirst').parent().next('.fui-swipe').hide()
|
||
}else {
|
||
// 图片
|
||
$('#videoFirst').get(0).pause();
|
||
$('#videoFirst').parent().next('.fui-swipe').find('.fui-swipe .fui-swipe-page .fui-swipe-bullet').removeClass('active');
|
||
$('#videoFirst').parent().next('.fui-swipe').find('.fui-swipe .fui-swipe-page .fui-swipe-bullet:eq(0)').addClass('active');
|
||
$('#videoFirst').parent().next('.fui-swipe').find('.fui-swipe .fui-swipe-wrapper').css('transform','translate3d(0px, 0px, 0px)');
|
||
$('#videoFirst').parent().hide();
|
||
$('#videoFirst').parent().next('.fui-swipe').find('.fui-swipe').show();
|
||
|
||
}
|
||
})
|
||
});
|
||
</script>
|
||
{template '_footer'}
|