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
011d7a051bfb13c1c40af0d3e061de7d22a0d20d
1 parent
d40ef7e3
offline
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
apps/common/controllers/index.js
public/js/pwa/sw.js
public/scss/common/offline.page.css
public/static/sw.js
apps/common/controllers/index.js
View file @
011d7a0
...
...
@@ -5,7 +5,8 @@ module.exports = {
res
.
render
(
'offline'
,
{
pageHeader
:
headerModel
.
setNav
(),
module
:
'common'
,
page
:
'offline'
page
:
'offline'
,
localCss
:
true
});
}
};
...
...
public/js/pwa/sw.js
View file @
011d7a0
...
...
@@ -17,9 +17,10 @@ const config = {
'/index.css'
,
'/common.css'
,
'/libs.js'
,
'/common.offline.js'
,
'/font/iconfont.woff'
,
'/img/common/404.png'
'/common.offline.js'
,
'/common.offline.css'
,
'/pwa/404.png'
]
};
const
qs
=
parseQs
(
self
.
location
.
search
.
substr
(
1
));
...
...
public/scss/common/offline.page.css
View file @
011d7a0
...
...
@@ -10,7 +10,7 @@
.offline-bg
{
height
:
200px
;
width
:
200px
;
background
:
resolve
(
"common
/404.png"
)
no-repeat
;
background
:
url("https://cdn.yoho.cn/pwa
/404.png")
no-repeat
;
background-size
:
100%
100%
;
display
:
inline-block
;
}
...
...
public/static/sw.js
View file @
011d7a0
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment