Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
9 years ago
Commit
e95122ee6901d898171b440042c6c8b2aacfaa57
1 parent
827686d4
add edit user tips
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
2 deletions
template/www.yohobuy.com/partials/home/edit/basicinfo.phtml
web-static/sass/home/_user-info.css
yohobuy/www.yohobuy.com/application/modules/Home/controllers/User.php
template/www.yohobuy.com/partials/home/edit/basicinfo.phtml
View file @
e95122e
...
...
@@ -3,6 +3,15 @@
<h
2
class=
"sub-title"
>
<div
class=
"more"
><a
class=
"btn-edit"
title=
"修改"
></a></div>
{
{subTitle
}
}
{
{#if
certified
}
}
<span
class=
"sub-tips"
>学生身份已验证通过啦,赶紧去体验下<a
class=
"tips-url"
href=
"{{tipsUrl}}"
>我们的专属特权</a>吧!</span>
{
{else
}
}
<span
class=
"sub-tips"
>
校园潮流季-我们的专属特权,进行学生身份验证即有惊喜哦,</span>
<a
class=
"tips-url"
href=
"{{tipsUrl}}"
>立即进行身份验证</a>
{
{/if
}
}
</h
2
>
<form
action=
""
{
{#
firstBox
}
}class=
"first"
{
{/firstBox
}
}>
<div
class=
"box"
>
...
...
web-static/sass/home/_user-info.css
View file @
e95122e
...
...
@@ -283,7 +283,6 @@
font-size
:
12px
;
color
:
#333
;
font-weight
:
normal
;
cursor
:
pointer
;
margin-bottom
:
2px
;
.more
{
...
...
@@ -298,6 +297,7 @@
display
:
inline-block
;
overflow
:
hidden
;
border
:
0px
;
cursor
:
pointer
;
}
}
...
...
@@ -321,6 +321,15 @@
margin-bottom
:
10px
;
}
}
.sub-tips
{
color
:
#e52828
;
}
.tips-url
{
color
:
#e52828
;
text-decoration
:
underline
;
}
}
...
...
yohobuy/www.yohobuy.com/application/modules/Home/controllers/User.php
View file @
e95122e
...
...
@@ -14,7 +14,7 @@ class UserController extends WebAction
public
function
indexAction
()
{
//判断是否登录
$uid
=
$this
->
auditJumpLogin
();
//
$uid = $this->auditJumpLogin();
//头部导航
$channel
=
Helpers
::
getChannelNameByCookie
();
...
...
@@ -40,6 +40,8 @@ class UserController extends WebAction
'isShowTip'
=>
intval
(
$configInfo
[
'data'
][
'config'
][
'sn'
]),
'userPersonalInfo'
=>
array
(
'subTitle'
=>
'会员信息'
,
'certified'
=>
$userInfo
[
'is_students'
]
===
1
,
'tipsUrl'
=>
$userInfo
[
'is_students'
]
===
1
?
Helpers
::
url
(
'/'
,
''
,
'list'
)
:
Helpers
::
url
(
'/product/students'
),
'firstBox'
=>
true
,
'submitId'
=>
'base-info'
,
'profileSrc'
=>
$userInfo
[
'headIco'
],
...
...
Please
register
or
login
to post a comment