vr-shopxo-source/application/index/view/default/search/content.html

87 lines
4.2 KiB
HTML
Raw Normal View History

2019-07-28 10:24:06 +00:00
{{if !empty($data)}}
{{foreach $data as $v}}
<li class="am-animation-scale-up">
<div class="items am-padding-bottom-xs">
2019-08-02 13:35:25 +00:00
<a href="{{$v.goods_url}}" target="_blank" class="am-block">
<!-- 搜索页面商品信息顶部钩子 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
<div class="plugins-tag">
<span>plugins_view_search_goods_inside_top</span>
</div>
{{/if}}
{{php}}
$hook_name = 'plugins_view_search_goods_inside_top';
$hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'goods_id'=>$v['id'], 'goods'=>$v]);
if(!empty($hook_data) && is_array($hook_data))
2019-07-28 10:24:06 +00:00
{
2019-08-02 13:35:25 +00:00
foreach($hook_data as $hook)
2019-07-28 10:24:06 +00:00
{
2019-08-02 13:35:25 +00:00
if(is_string($hook) || is_int($hook))
{
echo htmlspecialchars_decode($hook);
}
2019-07-28 10:24:06 +00:00
}
}
2019-08-02 13:35:25 +00:00
{{/php}}
2019-07-28 10:24:06 +00:00
2019-08-02 13:35:25 +00:00
<img src="{{$v.images}}" alt="{{$v.title}}" class="goods-images" />
<div class="am-padding-xs">
<p class="am-text-truncate-2 goods-title" title="{{$v.title}}">{{$v.title}}</p>
</div>
2019-07-28 10:24:06 +00:00
</a>
<p class="am-padding-horizontal-xs am-cf">
2019-08-28 02:40:52 +00:00
{{if isset($v['original_price']) and $v['original_price'] gt 0}}
2020-02-04 09:18:14 +00:00
<span class="am-fl original-price">{{$price_symbol}}{{$v.original_price}}</span>
2019-08-28 02:40:52 +00:00
{{/if}}
2019-07-28 10:24:06 +00:00
<span class="am-fr sales-count">销量 {{$v.sales_count}}</span>
</p>
<!-- 搜索页面商品信息售价顶部钩子 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
<div class="plugins-tag">
2019-07-29 07:44:55 +00:00
<span>plugins_view_search_goods_inside_price_top</span>
2019-07-28 10:24:06 +00:00
</div>
{{/if}}
{{php}}
2019-07-29 07:44:55 +00:00
$hook_name = 'plugins_view_search_goods_inside_price_top';
2019-07-28 10:24:06 +00:00
$hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'goods_id'=>$v['id'], 'goods'=>$v]);
if(!empty($hook_data) && is_array($hook_data))
{
foreach($hook_data as $hook)
{
if(is_string($hook) || is_int($hook))
{
echo htmlspecialchars_decode($hook);
}
}
}
{{/php}}
2019-07-29 07:44:55 +00:00
<p class="price am-padding-horizontal-xs am-text-truncate">
2020-02-04 09:18:14 +00:00
<strong>{{$price_symbol}}{{$v.price}}</strong>
2019-07-28 10:24:06 +00:00
</p>
<!-- 搜索页面商品信息底部钩子 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
<div class="plugins-tag">
<span>plugins_view_search_goods_inside_bottom</span>
</div>
{{/if}}
{{php}}
$hook_name = 'plugins_view_search_goods_inside_bottom';
$hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'goods_id'=>$v['id'], 'goods'=>$v]);
if(!empty($hook_data) && is_array($hook_data))
{
foreach($hook_data as $hook)
{
if(is_string($hook) || is_int($hook))
{
echo htmlspecialchars_decode($hook);
}
}
}
{{/php}}
</div>
</li>
{{/foreach}}
{{/if}}