Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张泽世
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to dashboard
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
ccbikai
2016-05-20 10:34:24 +0800
Commit
dfbefc223ba779626134302e8a7db15ecae3fbd8
1 parent
5844de53
模板目录调整
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
39 additions
and
39 deletions
apps/channel/controllers/index.js
apps/channel/views/partial/channel/content-lifestyle.hbs
apps/channel/views/partial/channel/content.hbs
apps/channel/views/partial/channel/floor-header-more.hbs → doraemon/views/partial/common/floor-header-more.hbs
apps/channel/views/partial/channel/floor-header.hbs → doraemon/views/partial/common/floor-header.hbs
apps/channel/views/partial/channel/banner-bottom.hbs → doraemon/views/partial/resources/banner-bottom.hbs
apps/channel/views/partial/channel/banner-top.hbs → doraemon/views/partial/resources/banner-top.hbs
apps/channel/views/partial/channel/banner.hbs → doraemon/views/partial/resources/banner.hbs
apps/channel/views/partial/channel/creative-life.hbs → doraemon/views/partial/resources/creative-life.hbs
apps/channel/views/partial/channel/favorite-brand-list.hbs → doraemon/views/partial/resources/favorite-brand-list.hbs
apps/channel/views/partial/channel/favorite-product-list.hbs → doraemon/views/partial/resources/favorite-product-list.hbs
apps/channel/views/partial/channel/fine-brands.hbs → doraemon/views/partial/resources/fine-brands.hbs
apps/channel/views/partial/channel/fresh-only.hbs → doraemon/views/partial/resources/fresh-only.hbs
apps/channel/views/partial/channel/goods-category.hbs → doraemon/views/partial/resources/goods-category.hbs
apps/channel/views/partial/channel/hot-brands-list.hbs → doraemon/views/partial/resources/hot-brands-list.hbs
apps/channel/views/partial/channel/hot-brands-swipe.hbs → doraemon/views/partial/resources/hot-brands-swipe.hbs
apps/channel/views/partial/channel/hot-category.hbs → doraemon/views/partial/resources/hot-category.hbs
apps/channel/views/partial/channel/icons-enter.hbs → doraemon/views/partial/resources/icons-enter.hbs
apps/channel/views/partial/channel/notice.hbs → doraemon/views/partial/resources/notice.hbs
apps/channel/views/partial/channel/plus-star.hbs → doraemon/views/partial/resources/plus-star.hbs
apps/channel/views/partial/channel/thumb-row.hbs → doraemon/views/partial/resources/thumb-row.hbs
apps/channel/views/partial/channel/trend-topics.hbs → doraemon/views/partial/resources/trend-topics.hbs
apps/channel/views/partial/channel/trendsetter-collocation.hbs → doraemon/views/partial/resources/trendsetter-collocation.hbs
apps/channel/views/partial/channel/two-column-goods.hbs → doraemon/views/partial/resources/two-column-goods.hbs
apps/channel/controllers/index.js
View file @
dfbefc2
...
...
@@ -41,7 +41,7 @@ const channelLogger = (err, res) => {
const
channelPage
=
(
req
,
res
,
data
)
=>
{
channelModel
.
getChannelDate
({
gender
:
data
.
gender
,
uid
:
req
.
user
.
uid
uid
:
_
.
toString
(
req
.
user
.
uid
)
}).
then
(
result
=>
{
res
.
render
(
'channel'
,
Object
.
assign
(
renderData
,
data
,
result
));
}).
catch
((
err
)
=>
{
...
...
apps/channel/views/partial/channel/content-lifestyle.hbs
View file @
dfbefc2
{{#
content
}}
{{! 头部banner}}
{{#if
focus
}}
{{>
channel
/
banner-top
}}
{{>
resources
/
banner-top
}}
{{/if}}
{{! 图标入口}}
{{#if
appIconList
}}
{{>
channel
/
icons-enter
}}
{{>
resources
/
icons-enter
}}
{{/if}}
{{! 中间banner}}
{{#if
singleImage
}}
{{>
channel
/
banner
}}
{{>
resources
/
banner
}}
{{/if}}
{{! 两个小图}}
{{#if
smallPic
}}
{{>
channel
/
thumb-row
}}
{{>
resources
/
thumb-row
}}
{{/if}}
{{! 热门品类}}
{{#if
recommendContentFive
}}
{{>
channel
/
hot-category
}}
{{>
resources
/
hot-category
}}
{{/if}}
{{! 热门品牌}}
{{#if
appHotBrands
}}
{{>
channel
/
hot-brands-list
}}
{{>
resources
/
hot-brands-list
}}
{{/if}}
{{! 热门品牌可滑动}}
{{#if
customBrands
}}
{{>
channel
/
hot-brands-swipe
}}
{{>
resources
/
hot-brands-swipe
}}
{{/if}}
{{! 潮人搭配}}
{{#if
trendsetterCollocation
}}
{{>
channel
/
trendsetter-collocation
}}
{{>
resources
/
trendsetter-collocation
}}
{{/if}}
{{! 潮流话题}}
{{#if
trendgoodsTopic
}}
{{>
channel
/
trend-topics
}}
{{>
resources
/
trend-topics
}}
{{/if}}
{{! 潮流时装/经典裤裙/时尚靴履/潮人配饰/潮流上装}}
{{#if
recommendContentOne
}}
{{>
channel
/
goods-category
}}
{{>
resources
/
goods-category
}}
{{/if}}
{{! 新入住品牌/品味生活/创意生活}}
{{#if
recommendContentTwo
}}
{{>
channel
/
creative-life
}}
{{>
resources
/
creative-life
}}
{{/if}}
{{! PLUS}}
{{#if
singleNameImage
}}
{{>
channel
/
plus-star
}}
{{>
resources
/
plus-star
}}
{{/if}}
{{! 新人专享}}
{{#if
newUserFloor
}}
{{>
channel
/
fresh-only
}}
{{>
resources
/
fresh-only
}}
{{/if}}
{{/
content
}}
\ No newline at end of file
{{/
content
}}
...
...
apps/channel/views/partial/channel/content.hbs
View file @
dfbefc2
{{#
content
}}
{{! 头部banner}}
{{#if
focus
}}
{{>
channel
/
banner-top
}}
{{>
resources
/
banner-top
}}
{{/if}}
{{! 图标入口}}
{{#if
appIconList
}}
{{>
channel
/
icons-enter
}}
{{>
resources
/
icons-enter
}}
{{/if}}
{{! 首页公告}}
{{!-- {{#announcement}}
{{>
channel
/notice}}
{{>
resources
/notice}}
{{/announcement}} --}}
{{! 中间banner}}
{{#if
singleImage
}}
{{>
channel
/
banner
}}
{{>
resources
/
banner
}}
{{/if}}
{{! 两个小图}}
{{#if
smallPic
}}
{{>
channel
/
thumb-row
}}
{{>
resources
/
thumb-row
}}
{{/if}}
{{! 热门品类}}
{{#if
recommendContentFive
}}
{{>
channel
/
hot-category
}}
{{>
resources
/
hot-category
}}
{{/if}}
{{! 热门品牌}}
{{#if
appHotBrands
}}
{{>
channel
/
hot-brands-list
}}
{{>
resources
/
hot-brands-list
}}
{{/if}}
{{! 热门品牌可滑动}}
{{#if
customBrands
}}
{{>
channel
/
hot-brands-swipe
}}
{{>
resources
/
hot-brands-swipe
}}
{{/if}}
{{! 潮人搭配}}
{{#if
trendsetterCollocation
}}
{{>
channel
/
trendsetter-collocation
}}
{{>
resources
/
trendsetter-collocation
}}
{{/if}}
{{! 潮流话题}}
{{#if
trendgoodsTopic
}}
{{>
channel
/
trend-topics
}}
{{>
resources
/
trend-topics
}}
{{/if}}
{{! 潮流时装/经典裤裙/时尚靴履/潮人配饰/潮流上装}}
{{#if
recommendContentOne
}}
{{>
channel
/
goods-category
}}
{{>
resources
/
goods-category
}}
{{/if}}
{{! 新入住品牌/品味生活/创意生活}}
{{#if
recommendContentTwo
}}
{{>
channel
/
creative-life
}}
{{>
resources
/
creative-life
}}
{{/if}}
{{! PLUS}}
{{#if
singleNameImage
}}
{{>
channel
/
plus-star
}}
{{>
resources
/
plus-star
}}
{{/if}}
{{! 新人专享}}
{{#if
newUserFloor
}}
{{>
channel
/
fresh-only
}}
{{>
resources
/
fresh-only
}}
{{/if}}
{{/
content
}}
...
...
apps/channel/views/partial/channel
/floor-header-more.hbs →
doraemon/views/partial/common
/floor-header-more.hbs
View file @
dfbefc2
apps/channel/views/partial/channel
/floor-header.hbs →
doraemon/views/partial/common
/floor-header.hbs
View file @
dfbefc2
apps/channel/views/partial/channel
/banner-bottom.hbs →
doraemon/views/partial/resources
/banner-bottom.hbs
View file @
dfbefc2
apps/channel/views/partial/channel
/banner-top.hbs →
doraemon/views/partial/resources
/banner-top.hbs
View file @
dfbefc2
apps/channel/views/partial/channel
/banner.hbs →
doraemon/views/partial/resources
/banner.hbs
View file @
dfbefc2
apps/channel/views/partial/channel
/creative-life.hbs →
doraemon/views/partial/resources
/creative-life.hbs
View file @
dfbefc2
{{#
data
}}
{{>
c
hannel
/
floor-header-more
}}
{{>
c
ommon
/
floor-header-more
}}
<div
class=
"creative-life"
>
{{#
bigImage
}}
<a
class=
"banner"
href=
"
{{
url
}}
"
>
...
...
apps/channel/views/partial/channel
/favorite-brand-list.hbs →
doraemon/views/partial/resources
/favorite-brand-list.hbs
View file @
dfbefc2
apps/channel/views/partial/channel
/favorite-product-list.hbs →
doraemon/views/partial/resources
/favorite-product-list.hbs
View file @
dfbefc2
apps/channel/views/partial/channel
/fine-brands.hbs →
doraemon/views/partial/resources
/fine-brands.hbs
View file @
dfbefc2
{{>
c
hannel
/
floor-header
}}
{{>
c
ommon
/
floor-header
}}
<ul
class=
"fine-brands clearfix"
>
{{#
brands
}}
<li
class=
"brand"
>
...
...
apps/channel/views/partial/channel
/fresh-only.hbs →
doraemon/views/partial/resources
/fresh-only.hbs
View file @
dfbefc2
{{#
data
}}
{{>
c
hannel
/
floor-header-more
}}
{{>
c
ommon
/
floor-header-more
}}
<div
class=
"fresh-only"
>
{{#
bannerImage
}}
<div
class=
"fresh-swiper"
>
...
...
apps/channel/views/partial/channel
/goods-category.hbs →
doraemon/views/partial/resources
/goods-category.hbs
View file @
dfbefc2
{{#
data
}}
{{>
c
hannel
/
floor-header-more
}}
{{>
c
ommon
/
floor-header-more
}}
<div
class=
"goods-category"
>
{{#
bigImage
}}
{{#if
bigList
}}
...
...
apps/channel/views/partial/channel
/hot-brands-list.hbs →
doraemon/views/partial/resources
/hot-brands-list.hbs
View file @
dfbefc2
{{#
data
}}
<ul
class=
"hot-brands clearfix"
>
{{>
c
hannel
/
floor-header
}}
{{>
c
ommon
/
floor-header
}}
{{#
list
}}
<li
class=
"brand"
>
<a
href=
"
{{
url
}}
"
>
...
...
apps/channel/views/partial/channel
/hot-brands-swipe.hbs →
doraemon/views/partial/resources
/hot-brands-swipe.hbs
View file @
dfbefc2
{{#
data
}}
<div
class=
"hot-brands"
>
{{>
c
hannel
/
floor-header
}}
{{>
c
ommon
/
floor-header
}}
<div
class=
"brands-swiper"
>
<ul
class=
"brands-list swiper-wrapper clearfix"
>
{{#
list
}}
...
...
apps/channel/views/partial/channel
/hot-category.hbs →
doraemon/views/partial/resources
/hot-category.hbs
View file @
dfbefc2
{{#
data
}}
<div
class=
"hot-category"
>
{{>
c
hannel
/
floor-header
}}
{{>
c
ommon
/
floor-header
}}
{{#
banner
}}
<a
class=
"category-banner"
href=
"
{{
url
}}
"
>
...
...
apps/channel/views/partial/channel
/icons-enter.hbs →
doraemon/views/partial/resources
/icons-enter.hbs
View file @
dfbefc2
apps/channel/views/partial/channel
/notice.hbs →
doraemon/views/partial/resources
/notice.hbs
View file @
dfbefc2
apps/channel/views/partial/channel
/plus-star.hbs →
doraemon/views/partial/resources
/plus-star.hbs
View file @
dfbefc2
{{#
data
}}
<div
class=
"plus-star"
>
{{>
c
hannel
/
floor-header
}}
{{>
c
ommon
/
floor-header
}}
<a
href=
"
{{
url
}}
"
>
<img
class=
"lazy"
data-original=
"
{{
image
src
640
198
}}
"
>
</a>
...
...
apps/channel/views/partial/channel
/thumb-row.hbs →
doraemon/views/partial/resources
/thumb-row.hbs
View file @
dfbefc2
apps/channel/views/partial/channel
/trend-topics.hbs →
doraemon/views/partial/resources
/trend-topics.hbs
View file @
dfbefc2
{{#
data
}}
<div
class=
"trend-topic-wrapper"
>
{{>
c
hannel
/
floor-header-more
}}
{{>
c
ommon
/
floor-header-more
}}
<div
class=
"trend-topic-content"
>
<div
class=
"trend-topic-swiper"
>
<ul
class=
"swiper-wrapper"
>
...
...
apps/channel/views/partial/channel
/trendsetter-collocation.hbs →
doraemon/views/partial/resources
/trendsetter-collocation.hbs
View file @
dfbefc2
{{#
data
}}
<div
class=
"trend-coll-wrapper"
>
{{>
c
hannel
/
floor-header-more
}}
{{>
c
ommon
/
floor-header-more
}}
<div
class=
"trend-coll-content clearfix"
>
{{#
article
}}
<div
class=
"lspan"
>
...
...
apps/channel/views/partial/channel
/two-column-goods.hbs →
doraemon/views/partial/resources
/two-column-goods.hbs
View file @
dfbefc2
Please
register
or
login
to post a comment