Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
张孝茹
7 years ago
Commit
12e6b84e9804e80a79e6c223172dfc5954df344b
1 parent
66871dc7
图标置灰 口令页跳转
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
4 deletions
apps/home/controllers/family.js
apps/home/views/action/family/index.hbs
apps/home/views/action/family/user-info.hbs
public/js/home/family.page.js
public/scss/home/family.page.css
apps/home/controllers/family.js
View file @
12e6b84
...
...
@@ -106,7 +106,7 @@ exports.userInfo = (req, res, next) => {
let
params
=
{
uid
:
req
.
user
.
uid
,
isApp
:
req
.
yoho
.
isApp
isApp
:
req
.
yoho
.
is
Yoho
App
};
req
.
ctx
(
family
).
userInfo
(
params
).
then
(
result
=>
{
...
...
apps/home/views/action/family/index.hbs
View file @
12e6b84
...
...
@@ -42,7 +42,7 @@
<div
class=
"grade-content"
>
{{#
appList
}}
<div
class=
"content-item"
data-login=
"
{{
login
}}
"
data-name=
"
{{
nickname
}}
"
data-code=
"
{{
code
}}
"
>
<img
class=
"item-tag"
src=
"
{{
image
iconUrl
140
140
}}
"
>
<img
class=
"item-tag
{{#
unless
login
}}
gray
{{/
unless
}}
"
src=
"
{{
image
iconUrl
140
140
}}
"
>
<span
class=
"name"
>
{{
sourceName
}}
</span>
<span
class=
"level"
>
{{
name
}}
</span>
</div>
...
...
apps/home/views/action/family/user-info.hbs
View file @
12e6b84
...
...
@@ -2,12 +2,14 @@
<div
class=
"info-list"
>
<div
class=
"list-item user-pic"
>
<div
class=
"title"
>
头像
</div>
<div
class=
"main"
>
<div
class=
"main"
{{#
unlessor
isYohoApp
isMarsApp
}}
style=
"padding-right: 0rem"
{{/
unlessor
}}
>
<div
class=
"pic user-avatar"
data-avatar=
"
{{
image
headIco
100
100
}}
"
></div>
</div>
{{#
ifor
isYohoApp
isMarsApp
}}
<div
class=
"arr"
>
<span
class=
"iconfont"
>

</span>
</div>
{{/
ifor
}}
</div>
<div
class=
"list-item"
>
<div
class=
"title"
>
昵称
</div>
...
...
public/js/home/family.page.js
View file @
12e6b84
...
...
@@ -259,7 +259,13 @@ class FamilyIndex extends Page {
// 积分图表点击跳转
jump
(
params
)
{
yoho
.
goH5
(
`
$
{
location
.
protocol
}
//m.yohobuy.com/home/family/coinDetail?plateType=${params.data.plateType}`);
let
href
=
`
$
{
location
.
protocol
}
//m.yohobuy.com/home/family/coinDetail?plateType=${params.data.plateType}`;
if
(
yoho
.
isMarsApp
||
yoho
.
isNowApp
)
{
window
.
location
.
href
=
href
;
}
else
{
yoho
.
goH5
(
href
);
}
}
// 点击APP图标显示信息
...
...
public/scss/home/family.page.css
View file @
12e6b84
...
...
@@ -202,6 +202,10 @@
overflow
:
hidden
;
}
.gray
{
filter
:
grayscale
(
100%
);
}
.name
{
font-size
:
28px
;
color
:
#43b938
;
...
...
Please
register
or
login
to post a comment