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
23d865d7a64d0be3f6920fddf877ea8a5162299a
1 parent
737af150
增加新 YOHO 币页面
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
115 additions
and
11 deletions
static/img/me/yoho-coin/dollar.png
static/sass/me/_index.scss
static/sass/me/_yoho-coin-new.scss
template/m.yohobuy.com/actions/index/home/currency-new.phtml
yohobuy/m.yohobuy.com/application/controllers/Home.php
static/img/me/yoho-coin/dollar.png
0 → 100644
View file @
23d865d
1.33 KB
static/sass/me/_index.scss
View file @
23d865d
$vip
:
sprite-map
(
"me/vip/*.png"
,
$spacing
:
10px
);
$fav
:
sprite-map
(
"me/fav/*.png"
,
$spacing
:
5px
);
@import
"home"
,
"vip-grade"
,
"order"
,
"order-detail"
,
"coupons"
,
"personal-details"
,
"yoho-coin"
,
"fav"
,
"suggest"
,
"address"
,
"online-service"
,
"my-guang"
,
"ihelp"
;
@import
"home"
,
"vip-grade"
,
"order"
,
"order-detail"
,
"coupons"
,
"personal-details"
,
"yoho-coin"
,
"yoho-coin-new"
,
"fav"
,
"suggest"
,
"address"
,
"online-service"
,
"my-guang"
,
"ihelp"
;
...
...
static/sass/me/_yoho-coin-new.scss
0 → 100644
View file @
23d865d
.yoho-coin-new-page
{
padding-top
:
pxToRem
(
30px
);
text-align
:
center
;
.coin-num
{
color
:
#d0021b
;
font-size
:
pxToRem
(
66px
);
font-weight
:
bold
;
line-height
:
pxToRem
(
106px
);
letter-spacing
:
pxToRem
(
8px
);
}
.info
{
color
:
#b0b0b0
;
font-size
:
pxToRem
(
24px
);
line-height
:
1
;
.dollar
{
display
:
inline-block
;
margin-right
:
pxToRem
(
6px
);
vertical-align
:
middle
;
width
:
pxToRem
(
24px
);
height
:
pxToRem
(
24px
);
background
:
image-url
(
"me/yoho-coin/dollar.png"
)
center
center
;
background-size
:
100%
;
}
}
.more
{
display
:
inline-block
;
margin
:
pxToRem
(
30px
)
0
;
color
:
#444
;
font-size
:
pxToRem
(
24px
);
line-height
:
pxToRem
(
36px
);
width
:
pxToRem
(
152px
);
height
:
pxToRem
(
36px
);
text-align
:
center
;
border
:
1px
solid
#444
;
border-radius
:
pxToRem
(
36px
);
}
.coin-tip
{
margin-bottom
:
pxToRem
(
30px
);
padding
:
pxToRem
(
20px
)
pxToRem
(
30px
);
font-size
:
pxToRem
(
24px
);
line-height
:
pxToRem
(
32px
);
color
:
#dc6870
;
border-top
:
1px
solid
#e0e0e0
;
border-bottom
:
1px
solid
#e0e0e0
;
.icon
{
display
:
inline-block
;
width
:
pxToRem
(
32px
);
height
:
pxToRem
(
32px
);
font-weight
:
bold
;
border
:
2px
solid
#dc6870
;
border-radius
:
50%
;
}
}
.banner
{
margin-bottom
:
pxToRem
(
30px
);
}
}
...
...
template/m.yohobuy.com/actions/index/home/currency-new.phtml
0 → 100644
View file @
23d865d
{
{>
layout/header
}
}
<div
class=
"yoho-coin-new-page yoho-page"
>
<div
class=
"coin"
>
<p
class=
"coin-num"
>
7876
</p>
<p
class=
"info"
>
<span
class=
"dollar"
></span>
个
YOHO
币
</p>
<a
href=
""
class=
"more"
>查看明细</a>
<div
class=
"coin-tip"
>
<span
class=
"icon"
>!</span>
您有
300
个YOHO币即将于
2017
年
12
月
31
日过期,请尽快使用
</div>
</div>
<div
class=
"banner"
>
<a
href=
""
>
{
{!--
演示图片
--
}
}
<img
src=
"http://temp.im/640x200"
alt=
""
>
</a>
</div>
{
{>
home/maybe_like
}
}
</div>
{
{>
layout/footer
}
}
...
...
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
23d865d
...
...
@@ -9,9 +9,9 @@ use Index\UserModel as UserModel;
/**
* 个人中心相关的控制器
*
*
* @name HomeController
* @package
* @package
* @copyright yoho.inc
* @version 1.0 (2015-10-28 16:28:32)
*/
...
...
@@ -31,7 +31,7 @@ class HomeController extends AbstractAction
/*if (!$uid) {
$uid = $this->_uid = $this->get('uid', 8826435); //$this->getUid(true);
}*/
$action
=
$this
->
getRequest
()
->
getActionName
();
if
(
!
$uid
&&
$action
!==
'index'
)
{
$this
->
go
(
Helpers
::
url
(
'/signin.html'
,
array
(
'refer'
=>
$this
->
server
(
'HTTP_REFERER'
,
'/'
))
)
);
...
...
@@ -61,7 +61,7 @@ class HomeController extends AbstractAction
$data
+=
UserModel
::
getUserProfileData
(
$uid
);
$data
+=
UserModel
::
getInfoNumData
(
$uid
);
}
$this
->
_view
->
display
(
'index'
,
$data
);
}
...
...
@@ -229,6 +229,21 @@ class HomeController extends AbstractAction
}
/**
* YOHO币
*/
public
function
currencyNewAction
()
{
$this
->
setTitle
(
'YOHO币'
);
$this
->
setNavHeader
(
'YOHO币'
,
true
,
false
);
$uid
=
$this
->
getUid
();
$currency
=
UserModel
::
getYohoCoinData
(
$uid
);
$currency
[
'pageFooter'
]
=
true
;
$this
->
_view
->
display
(
'currency-new'
,
$currency
);
}
/**
* 优惠券
*/
public
function
couponsAction
()
...
...
@@ -247,7 +262,7 @@ class HomeController extends AbstractAction
/**
* 我的消息
*
*
* 暂时使用老的,因后面APP、PC、WAP会进行一次改版
*/
public
function
messageAction
()
...
...
@@ -377,7 +392,7 @@ class HomeController extends AbstractAction
}
}
/**
/**
* 在线客服
*/
public
function
onlineServiceAction
()
...
...
@@ -536,7 +551,7 @@ class HomeController extends AbstractAction
$uid
=
$this
->
getUid
();
$data
=
GradeModel
::
getGrade
(
$gender
,
$channel
,
$uid
);
$data
[
'pageFooter'
]
=
true
;
$this
->
_view
->
display
(
'vip-grade'
,
$data
);
}
...
...
@@ -729,7 +744,7 @@ class HomeController extends AbstractAction
* 帮助列表页
*/
private
function
IHelpAction
()
{
{
$this
->
setTitle
(
'帮助中心'
);
$this
->
setNavHeader
(
'帮助中心'
);
$data
=
array
(
...
...
@@ -749,4 +764,4 @@ class HomeController extends AbstractAction
);
$this
->
_view
->
display
(
'i-help'
,
$data
);
}
}
}
...
...
Please
register
or
login
to post a comment