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
Plain Diff
Browse Files
Authored by
徐祁xuqi
2016-10-18 19:28:45 +0800
Commit
b503d5b97a7a0c74ce6f92ec8d5561e840e4d7e6
2 parents
ef6a24fd
f21754cf
Merge branch 'hotfix/noCacheXMLHttpRequest' into qCloud
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
app.js
doraemon/views/partial/common/query-param.hbs
doraemon/views/partial/resources/six-lines-floor.hbs
public/scss/channel/_six-lines-floor.css
app.js
View file @
b503d5b
...
...
@@ -100,6 +100,14 @@ try {
app
.
use
(
devtools
());
}
// set no cache
app
.
use
((
req
,
res
,
next
)
=>
{
if
(
req
.
get
(
'X-Requested-With'
)
===
'XMLHttpRequest'
)
{
res
.
set
(
'Cache-Control'
,
'no-cache'
);
}
next
();
});
require
(
'./dispatch'
)(
app
);
app
.
all
(
'*'
,
errorHanlder
.
notFound
());
// 404
...
...
doraemon/views/partial/common/query-param.hbs
View file @
b503d5b
...
...
@@ -70,6 +70,10 @@
<input
class=
"query-param"
type=
"hidden"
data-attr=
"productPool"
value=
"
{{
productPool
}}
"
>
{{/if}}
{{#if
filter_poolId
}}
<input
class=
"query-param"
type=
"hidden"
data-attr=
"filter_poolId"
value=
"
{{
filter_poolId
}}
"
>
{{/if}}
{{#if
saleType
}}
<input
class=
"query-param"
type=
"hidden"
data-attr=
"saleType"
value=
"
{{
saleType
}}
"
>
{{/if}}
...
...
doraemon/views/partial/resources/six-lines-floor.hbs
View file @
b503d5b
...
...
@@ -7,7 +7,7 @@
<li>
<a
href=
"
{{
url
}}
"
>
<div
class=
"img-box"
>
<img
class=
"lazy"
data-original=
"
{{
image
src
180
320
}}
"
alt=
""
>
<img
class=
"lazy"
data-original=
"
{{
image
src
320
154
}}
"
alt=
""
>
</div>
</a>
</li>
...
...
public/scss/channel/_six-lines-floor.css
View file @
b503d5b
.six-lines-floor
li
{
height
:
1
80
px
;
height
:
1
54
px
;
width
:
50%
;
float
:
left
;
img
{
height
:
1
80
px
;
height
:
1
54
px
;
width
:
100%
;
}
}
...
...
Please
register
or
login
to post a comment