fix: mobile 产品详情页相关产品
This commit is contained in:
@@ -110,7 +110,7 @@
|
||||
<ul class="cpa des cursor_p">
|
||||
<li class="active" id="one">{:lang_i18n('产品描述')}</li>
|
||||
{notempty name="product_related"}
|
||||
<li>{:lang_i18n('关联产品')}</li>
|
||||
<li onclick="javascript:location.href='#related'">{:lang_i18n('关联产品')}</li>
|
||||
{/notempty}
|
||||
<div class="clear"></div>
|
||||
</ul>
|
||||
@@ -119,7 +119,7 @@
|
||||
<div class="goods_des img-responsives" id="description-tab">{$product.detail|raw}</div>
|
||||
<!-- 关联产品-->
|
||||
{notempty name="product_related"}
|
||||
<div class="glcplist" id="related-tab" style="display: none;">
|
||||
<div class="glcplist" id="related">
|
||||
{volist name="product_related" id="rel"}
|
||||
<div class="glcpitem">
|
||||
<a href="{:url('product/detail', ['id'=>$rel.id])}">
|
||||
@@ -224,9 +224,7 @@
|
||||
$('.tab-pane').hide();
|
||||
if (targetTab === 'description') {
|
||||
$('#description-tab').show();
|
||||
$('#related-tab').hide();
|
||||
} else if (targetTab === 'related') {
|
||||
$('#related-tab').show();
|
||||
$('#description-tab').hide();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user