Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e6acc26d
authored
Jan 14, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整赠品展示
parent
a4a7e3f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
22 deletions
resources/views/detail/detail_items_info.php
resources/views/detail/detail_items_info.php
View file @
e6acc26d
...
@@ -211,30 +211,43 @@
...
@@ -211,30 +211,43 @@
<?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>
<th>
赠品图片
</th>
<th>
赠品图片
</th>
<th>
赠品名称
</th>
<th>
赠品名称
</th>
<th>
数量
</th>
<th>
数量
</th>
</tr>
</thead>
<tbody>
<?php
foreach
(
$order_gift
as
$k
=>
$v
)
{
?>
<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>
</tr>
</thead>
<?php
}
?>
<tbody>
</tbody>
<?php
foreach
(
$order_gift
as
$k
=>
$v
)
{
?>
<tr>
{{ $v['activity_id'] }}
</tr>
<script>
<tr><img
src=
"{{ $v['gift_info']['pic'] }}"
width=
"30"
height=
"30"
></tr>
layer
.
photos
({
<tr>
{{ $v['gift_info']['item_name'] }}
</tr>
photos
:
'.layer-photos-demo'
<tr>
{{ $v['gift_info']['num'] }}
</tr>
,
anim
:
5
//0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
<?php
}
?>
});
</tbody>
</script>
</table>
</table>
<?php
}
?>
<?php
}
?>
</div>
<div
class=
"order-total"
style=
"margin-top: 30px;"
>
<div
class=
"order-total"
style=
"margin-top: 30px;"
>
<div>
<div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment