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
zzzzzzz
2016-10-09 16:26:01 +0800
Commit
5fbc40e9b675d3c54a3d8bd30c48b7b80f7c6fc8
1 parent
2ef1534f
app下载恢复,收藏容错处理
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
51 deletions
apps/home/models/favorite.js
doraemon/views/partial/download-app.hbs
public/scss/layout/_footer.css
apps/home/models/favorite.js
View file @
5fbc40e
...
...
@@ -110,6 +110,9 @@ const favProduct = (uid, page, limit) => {
return
resu
;
}
else
{
logger
.
error
(
'收藏商品 cood 不是 200'
);
return
{
total
:
0
,
};
}
});
};
...
...
@@ -190,6 +193,9 @@ const favfavBrand = (uid, page, limit) => {
return
resu
;
}
else
{
logger
.
error
(
'收藏品牌 cood 不是 200'
);
return
{
total
:
0
,
};
}
});
};
...
...
doraemon/views/partial/download-app.hbs
View file @
5fbc40e
{{#
showDownloadApp
}}
<div
class=
"float-layer"
id=
"float-layer-app"
>
<div
class=
"float-layer
hide
"
id=
"float-layer-app"
>
<div
class=
"float-layer-left"
>
<span
class=
"yoho-icon iconfont"
>

</span>
<p>
新用户送惊喜礼包
</p>
...
...
@@ -8,12 +8,8 @@
<i
class=
"close-icon iconfont"
>

</i>
<div
class=
"circle-rightbottom"
></div>
</a>
<a
href=
"
http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho
"
id=
"float-layer-btn"
>
<a
href=
"
javascript:void(0);
"
id=
"float-layer-btn"
>
立即下载
</a>
</div>
{{/
showDownloadApp
}}
\ No newline at end of file
{{/
showDownloadApp
}}
\ No newline at end of file
...
...
public/scss/layout/_footer.css
View file @
5fbc40e
...
...
@@ -55,74 +55,83 @@
}
.float-layer
{
height
:
128px
;
height
:
44
PX
;
background
:
rgba
(
68
,
68
,
68
,
0.95
);
position
:
fixed
;
width
:
100%
;
bottom
:
0
;
left
:
0
;
z-index
:
9999
;
padding
:
20px
0
;
padding
:
10
PX
0
;
box-sizing
:
content-box
;
.float-layer-left
{
padding-left
:
44px
;
padding-left
:
22
PX
;
overflow
:
hidden
;
float
:
left
;
img
{
height
:
44
px
;
height
:
44
PX
;
float
:
left
;
margin-right
:
20px
;
margin-right
:
10
PX
;
}
p
{
float
:
left
;
font-size
:
32px
;
height
:
88px
;
line-height
:
88px
;
font-size
:
16
PX
;
height
:
44
PX
;
line-height
:
44
PX
;
color
:
white
;
}
.yoho-icon
{
float
:
left
;
margin-right
:
10px
;
font-size
:
44px
;
line-height
:
88px
;
width
:
88px
;
height
:
88px
;
margin-right
:
10
PX
;
font-size
:
22
PX
;
line-height
:
44
PX
;
width
:
44
PX
;
height
:
44
PX
;
text-align
:
center
;
color
:
#fff
;
border-radius
:
20px
;
border-radius
:
10
PX
;
background-image
:
linear-gradient
(
#323232
,
#0f0f0f
);
}
}
}
#float-layer-close
{
}
#float-layer-close
{
position
:
absolute
;
left
:
0
;
top
:
0
;
width
:
50
PX
;
height
:
50
PX
;
.close-icon
{
position
:
absolute
;
left
:
0
;
top
:
0
;
width
:
100px
;
height
:
100px
;
.close-icon
{
position
:
absolute
;
left
:
0
;
top
:
0
;
color
:
#C0C0C0
;
z-index
:
2
;
}
color
:
#C0C0C0
;
z-index
:
2
;
}
#float-layer-btn
{
position
:
absolute
;
top
:
50%
;
right
:
15px
;
font-size
:
32px
;
padding
:
0
10px
;
height
:
54px
;
line-height
:
54px
;
background
:
white
;
border-radius
:
5px
;
margin-top
:
-26px
;
-webkit-tap-highlight-color
:
rgba
(
0
,
0
,
0
,
0.5
);
&:link,
&:visited,
&:hover,
&:actived
{
color
:
#000
;
}
}
\ No newline at end of file
}
#float-layer-btn
{
position
:
absolute
;
top
:
50%
;
right
:
15
PX
;
font-size
:
16
PX
;
padding
:
0
10
PX
;
height
:
27
PX
;
line-height
:
27
PX
;
background
:
white
;
border-radius
:
5
PX
;
margin-top
:
-13
PX
;
-webkit-tap-highlight-color
:
rgba
(
0
,
0
,
0
,
0.5
);
&:link,
&:visited,
&:hover,
&:actived
{
color
:
#000
;
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment