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
毕凯
2017-09-04 14:23:12 +0800
Commit
e3214c5907b041232b52d04a43d2b919af17ce92
2 parents
c4ea7ba7
b2d46318
Merge branch 'gray' into 'master'
Gray See merge request
!862
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
1 deletions
doraemon/middleware/user.js
doraemon/views/partial/analysis.hbs
package-lock.json
package.json
public/scss/cart/_chose-panel.css
doraemon/middleware/user.js
View file @
e3214c5
...
...
@@ -79,6 +79,7 @@ module.exports = () => {
}
}
res
.
locals
.
isLogin
=
Boolean
(
req
.
user
.
uid
);
// 用户是否登录
next
();
};
};
...
...
doraemon/views/partial/analysis.hbs
View file @
e3214c5
...
...
@@ -72,6 +72,10 @@
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
{{#if
@root
.
isLogin
}}
_hmt.push(['_setCustomVar', 1, 'login', true, 2]);
{{/if}}
}, 1000);
}());
...
...
package-lock.json
0 → 100644
View file @
e3214c5
This diff could not be displayed because it is too large.
package.json
View file @
e3214c5
{
"name"
:
"m-yohobuy-node"
,
"version"
:
"6.0.1
3
"
,
"version"
:
"6.0.1
4
"
,
"private"
:
true
,
"description"
:
"A New Yohobuy Project With Express"
,
"repository"
:
{
...
...
public/scss/cart/_chose-panel.css
View file @
e3214c5
...
...
@@ -425,3 +425,23 @@
}
}
}
.is-mars-app
{
.chose-panel
{
.block
{
&.chosed
{
background-color
:
#89b374
;
color
:
#fff
;
border-color
:
#89b374
;
}
}
.btn-wrap
{
.btn-sure,
.btn-sure-addtocart
{
background-color
:
#89b374
!important
;
color
:
#fff
;
}
}
}
}
...
...
Please
register
or
login
to post a comment