Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郭成尧
9 years ago
Commit
c569df8840a8cb27bef6a5fb73a754a193820a24
1 parent
2bb75f97
feature_coupon
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
0 deletions
static/img/sprite.guang.png
static/img/sprite.me.png
template/m.yohobuy.com/actions/index/coupon/index.phtml
yohobuy/m.yohobuy.com/application/controllers/Coupon.php
static/img/sprite.guang.png
View file @
c569df8
9.77 KB
|
W:
|
H:
9.87 KB
|
W:
|
H:
2-up
Swipe
Onion skin
static/img/sprite.me.png
View file @
c569df8
17.3 KB
|
W:
|
H:
17.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
template/m.yohobuy.com/actions/index/coupon/index.phtml
0 → 100644
View file @
c569df8
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
领券楼层
</title>
</head>
<body>
<div>
{{#if showTitle}}
<h4>
{{title}}
</h4>
{{/if}}
{{# coupons}}
<div>
<div><a
href=
""
><img
src=
"{{picUrl}}"
alt=
""
></a></div>
<div>
<div>
状态:{{status}} 剩余数量:{{num}}
</div>
<div><a
href=
"{{go}}"
>
去逛逛
</a></div>
</div>
</div>
{{/ coupons}}
</div>
</body>
</html>
\ No newline at end of file
...
...
yohobuy/m.yohobuy.com/application/controllers/Coupon.php
0 → 100644
View file @
c569df8
<?php
/**
* Created by PhpStorm.
* User: Targaryen
* Date: 2016/4/11
* Time: 16:31
*/
use
Action\AbstractAction
;
class
CouponController
extends
AbstractAction
{
/**
* 领券中心
*/
public
function
indexAction
()
{
var_dump
(
'123456'
);
}
/**
* 领券楼层
*/
public
function
floorAction
()
{
$data
=
[
'title'
=>
'领券中心'
,
'showTitle'
=>
1
,
'coupons'
=>
[
[
'picUrl'
=>
'http://img12.static.yhbimg.com/yhb-img01/2016/01/19/11/02039485d87cc1b100b883244cf386e62d.jpg?imageView/2/w/640/h/200'
,
'status'
=>
1
,
'num'
=>
'123'
,
'go'
=>
'http://m.dev.yohobuy.com/boys'
,
],
[
'picUrl'
=>
'http://img12.static.yhbimg.com/yhb-img01/2016/01/19/11/02039485d87cc1b100b883244cf386e62d.jpg?imageView/2/w/640/h/200'
,
'status'
=>
2
,
'num'
=>
'0'
,
'go'
=>
'http://m.dev.yohobuy.com/boys'
,
],
[
'picUrl'
=>
'http://img12.static.yhbimg.com/yhb-img01/2016/01/19/11/02039485d87cc1b100b883244cf386e62d.jpg?imageView/2/w/640/h/200'
,
'status'
=>
3
,
'num'
=>
'456'
,
'go'
=>
'http://m.dev.yohobuy.com/boys'
,
],
]
];
$this
->
_view
->
display
(
'index'
,
$data
);
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment