Commit e6acc26d by 朱继来

调整赠品展示

parent a4a7e3f5
Showing with 22 additions and 9 deletions
......@@ -211,11 +211,12 @@
<?php } ?>
</tfoot>
</table>
</div>
<!-- 赠品信息 -->
<?php if (!empty($order_gift)) { ?>
<!-- 赠品信息 -->
<?php if (!empty($order_gift)) { ?>
<hr>
<table class="table">
<table class="table table-bordered">
<thead>
<tr class="caption">
<th>赠品活动ID</th>
......@@ -226,15 +227,27 @@
</thead>
<tbody>
<?php foreach ($order_gift as $k=>$v) { ?>
<tr>{{ $v['activity_id'] }}</tr>
<tr><img src="{{ $v['gift_info']['pic'] }}" width="30" height="30"></tr>
<tr>{{ $v['gift_info']['item_name'] }}</tr>
<tr>{{ $v['gift_info']['num'] }}</tr>
<tr>
<td><?= $v['activity_id'] ?></td>
<td>
<div class="layer-photos-demo">
<a><img src="<?= $v['gift_info']['pic'] ?>" width="20" height="20"></a>
</div>
</td>
<td><?= $v['gift_info']['item_name'] ?></td>
<td><?= $v['gift_info']['num'] ?></td>
</tr>
<?php } ?>
</tbody>
<script>
layer.photos({
photos: '.layer-photos-demo'
,anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
});
</script>
</table>
<?php } ?>
</div>
<?php } ?>
<div class="order-total" style="margin-top: 30px;">
<div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment