Commit e6acc26d by 朱继来

调整赠品展示

parent a4a7e3f5
Showing with 22 additions and 9 deletions
...@@ -211,11 +211,12 @@ ...@@ -211,11 +211,12 @@
<?php } ?> <?php } ?>
</tfoot> </tfoot>
</table> </table>
</div>
<!-- 赠品信息 --> <!-- 赠品信息 -->
<?php if (!empty($order_gift)) { ?> <?php if (!empty($order_gift)) { ?>
<hr> <hr>
<table class="table"> <table class="table table-bordered">
<thead> <thead>
<tr class="caption"> <tr class="caption">
<th>赠品活动ID</th> <th>赠品活动ID</th>
...@@ -226,15 +227,27 @@ ...@@ -226,15 +227,27 @@
</thead> </thead>
<tbody> <tbody>
<?php foreach ($order_gift as $k=>$v) { ?> <?php foreach ($order_gift as $k=>$v) { ?>
<tr>{{ $v['activity_id'] }}</tr> <tr>
<tr><img src="{{ $v['gift_info']['pic'] }}" width="30" height="30"></tr> <td><?= $v['activity_id'] ?></td>
<tr>{{ $v['gift_info']['item_name'] }}</tr> <td>
<tr>{{ $v['gift_info']['num'] }}</tr> <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 } ?> <?php } ?>
</tbody> </tbody>
<script>
layer.photos({
photos: '.layer-photos-demo'
,anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
});
</script>
</table> </table>
<?php } ?> <?php } ?>
</div>
<div class="order-total" style="margin-top: 30px;"> <div class="order-total" style="margin-top: 30px;">
<div> <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