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
沈志敏
2016-11-17 13:50:28 +0800
Commit
9b78524c4e2c608e12ec356b67d9d5ac17a20674
1 parent
2df339a5
增加浮动首页
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
54 additions
and
5 deletions
apps/activity/views/action/coupon-floor.hbs
apps/guang/views/action/index/list.hbs
apps/guang/views/action/info/index.hbs
apps/guang/views/action/list.hbs
apps/guang/views/action/plusstar/index.hbs
apps/guang/views/action/plustar/list.hbs
apps/product/views/action/detail/detail.hbs
apps/product/views/action/new/new.hbs
apps/product/views/action/sale/index.hbs
apps/product/views/action/shop/index.hbs
apps/product/views/partial/search/list.hbs
doraemon/middleware/set-yoho-data.js
doraemon/views/partial/common/suspend-home.hbs
public/scss/common/_index.css
public/scss/common/_suspend-home.css
public/scss/product/new/_new-arrival.css
public/scss/product/search/_list.css
apps/activity/views/action/coupon-floor.hbs
View file @
9b78524
...
...
@@ -58,6 +58,7 @@
<input
id=
"appurl"
type=
"hidden"
value=
"
{{
appUrl
}}
"
>
<input
id=
"wapurl"
type=
"hidden"
value=
"
{{
wapUrl
}}
"
>
{{/
noLoginUrl
}}
{{>
common
/
suspend-home
}}
</div>
<div
class=
"floor-mask"
></div>
<div
class=
"floor-message"
>
...
...
apps/guang/views/action/index/list.hbs
View file @
9b78524
...
...
@@ -35,4 +35,5 @@
<input
id=
"isApp"
type=
"hidden"
value=
{{
isApp
}}
>
{{/if}}
{{/
guang
}}
{{>
common
/
suspend-home
}}
</div
>
...
...
apps/guang/views/action/info/index.hbs
View file @
9b78524
...
...
@@ -174,4 +174,5 @@
<input
id=
"shareTitle"
type=
"hidden"
value=
"
{{
shareTitle
}}
"
>
<input
id=
"shareDesc"
type=
"hidden"
value=
"
{{
shareDesc
}}
"
>
{{/
guang
}}
{{>
common
/
suspend-home
}}
</div>
...
...
apps/guang/views/action/list.hbs
View file @
9b78524
...
...
@@ -35,4 +35,5 @@
<input
id=
"isApp"
type=
"hidden"
value=
{{
isApp
}}
>
{{/if}}
{{/
guang
}}
{{>
common
/
suspend-home
}}
</div
>
\ No newline at end of file
...
...
apps/guang/views/action/plusstar/index.hbs
View file @
9b78524
...
...
@@ -15,5 +15,5 @@
<div
class=
"plusstar-resources"
>
<!--资源位数据模板-->
</div>
<!--/plusstar-resources-->
{{>
common
/
suspend-home
}}
</div>
<!--/plusstar-page-->
\ No newline at end of file
...
...
apps/guang/views/action/plustar/list.hbs
View file @
9b78524
...
...
@@ -17,4 +17,5 @@
</div>
{{/if}}
</div>
{{>
common
/
suspend-home
}}
</div>
\ No newline at end of file
...
...
apps/product/views/action/detail/detail.hbs
View file @
9b78524
...
...
@@ -174,6 +174,6 @@
{{#if
showPannel
}}
<input
type=
"hidden"
id=
"showPannel"
value=
"1"
>
{{/if}}
{{>
common
/
suspend-home
}}
</div>
{{/
result
}}
...
...
apps/product/views/action/new/new.hbs
View file @
9b78524
...
...
@@ -39,6 +39,7 @@
{{>
common
/
query-param
}}
{{>
common
/
suspend-home
}}
{{>
common
/
suspend-cart
}}
</div>
...
...
apps/product/views/action/sale/index.hbs
View file @
9b78524
...
...
@@ -51,5 +51,5 @@
{{>
common
/
filter-nav
}}
</div>
{{>
sale
/
common
}}
{{>
common
/
suspend-home
}}
</div>
...
...
apps/product/views/action/shop/index.hbs
View file @
9b78524
...
...
@@ -233,6 +233,7 @@
</ul>
</div>
</div>
{{>
common
/
suspend-home
}}
</div>
{{>
common
/
filter
}}
{{/
shopIndex
}}
...
...
apps/product/views/partial/search/list.hbs
View file @
9b78524
...
...
@@ -143,7 +143,7 @@
</div>
{{>
common
/
query-param
}}
{{>
common
/
suspend-home
}}
{{>
common
/
suspend-cart
}}
{{/
goodList
}}
...
...
doraemon/middleware/set-yoho-data.js
View file @
9b78524
...
...
@@ -32,7 +32,8 @@ module.exports = () => {
res
.
set
(
'Access-Control-Allow-Origin'
,
'*'
);
}
res
.
locals
.
cartUrl
=
helpers
.
urlFormat
(
'/cart/index/index'
);
res
.
locals
.
cartUrl
=
helpers
.
urlFormat
(
'/cart/index/index'
);
// 悬挂购物车
res
.
locals
.
indexUrl
=
helpers
.
urlFormat
(
'/?go=1'
);
// 悬挂首页
res
.
locals
.
showHeader
=
true
;
next
();
...
...
doraemon/views/partial/common/suspend-home.hbs
0 → 100644
View file @
9b78524
<div
id=
"suspend-home"
class=
"suspend-home hide"
>
<a
href=
"
{{
@root
.
indexUrl
}}
"
>
<span
class=
"iconfont"
>

</span>
</a>
</div>
<script
type=
"text/javascript"
>
var
isWechat
=
/micromessenger/i
.
test
(
navigator
.
userAgent
||
''
);
if
(
isWechat
)
document
.
getElementById
(
'suspend-home'
).
classList
.
remove
(
'hide'
);
</script>
\ No newline at end of file
...
...
public/scss/common/_index.css
View file @
9b78524
@import
"good"
;
@import
"filter"
;
@import
"suspend-cart"
;
@import
"suspend-home"
;
@import
"error"
;
@import
"loading"
;
@import
"data-bind"
;
...
...
public/scss/common/_suspend-home.css
0 → 100644
View file @
9b78524
.suspend-home
{
position
:
fixed
;
right
:
30px
;
bottom
:
140px
;
z-index
:
10
;
width
:
88px
;
height
:
88px
;
border-radius
:
50%
;
background
:
rgba
(
0
,
0
,
0
,
0.3
);
text-align
:
center
;
line-height
:
88px
;
a
{
display
:
block
;
width
:
100%
;
height
:
100%
;
}
.iconfont
{
color
:
#fff
;
font-size
:
36px
;
}
}
\ No newline at end of file
...
...
public/scss/product/new/_new-arrival.css
View file @
9b78524
...
...
@@ -94,4 +94,8 @@
padding-left
:
0.375rem
;
padding-top
:
0.2rem
;
}
.suspend-home
{
bottom
:
258px
;
}
}
...
...
public/scss/product/search/_list.css
View file @
9b78524
...
...
@@ -311,4 +311,8 @@
}
}
}
.suspend-home
{
bottom
:
258px
;
}
}
...
...
Please
register
or
login
to post a comment