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
zhangxiaoru
8 years ago
Commit
aa5ac044f287a90b82e071c2f17fe35aaf9517ef
2 parents
54fe227a
9034097e
冲突
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
apps/cart/index.js
public/js/product/seckill.page.js
apps/cart/index.js
View file @
aa5ac04
...
...
@@ -4,15 +4,28 @@
* @date: 2016/09/26
*/
var
express
=
require
(
'express'
);
var
express
=
require
(
'express'
),
path
=
require
(
'path'
);
var
app
=
express
();
// set view engin
var
doraemon
=
path
.
join
(
__dirname
,
'../../doraemon/views'
);
// parent view root
app
.
on
(
'mount'
,
function
(
parent
)
{
delete
parent
.
locals
.
settings
;
// 不继承父 App 的设置
Object
.
assign
(
app
.
locals
,
parent
.
locals
);
});
app
.
use
(
global
.
yoho
.
hbs
({
extname
:
'.hbs'
,
defaultLayout
:
'layout'
,
layoutsDir
:
doraemon
,
partialsDir
:
path
.
join
(
__dirname
,
'views/partial'
),
views
:
path
.
join
(
__dirname
,
'views/action'
),
helpers
:
global
.
yoho
.
helpers
}));
// for zookeeper, inject locals
app
.
use
((
req
,
res
,
next
)
=>
{
req
.
app
.
locals
.
wap
=
app
.
locals
.
wap
;
...
...
@@ -24,3 +37,4 @@ app.use((req, res, next) => {
app
.
use
(
require
(
'./router'
));
module
.
exports
=
app
;
...
...
public/js/product/seckill.page.js
View file @
aa5ac04
...
...
@@ -212,8 +212,7 @@ seckillObj = {
var
focusElem
=
$el
.
$navUl
.
find
(
'>li.focus'
);
if
(
focusElem
.
length
)
{
location
.
reload
();
history
.
go
(
0
);
// that.refreshProductList(
// focusElem.find('input.activityId').val(),
// focusElem.find('input.date').val()
...
...
Please
register
or
login
to post a comment