Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
石坚
9 years ago
Commit
7b003eb8e0bd6d15c8cc56de24e418ba313cb3e3
2 parents
982ffdb8
ffa80d12
Merge branch 'release/1.0' of
http://git.yoho.cn/fe/yoho-blk
into release/1.0
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
32 additions
and
20 deletions
apps/brand/views/partial/list.hbs
apps/me/views/partial/collection/product.hbs
apps/passport/views/action/login/index.hbs
apps/product/controllers/shop.js
doraemon/components/pagination/pagination.js
public/js/me/favorite.page.js
public/scss/_base.css
public/scss/channel/_editorial.css
public/scss/components/_header.css
public/scss/passport/_login.css
public/tpl/common/bag-goods.hbs
apps/brand/views/partial/list.hbs
View file @
7b003eb
...
...
@@ -7,7 +7,7 @@
<li>
<a
data-key=
"
{{
key
}}
"
href=
"
{{
brandDomain
}}
"
target=
"_blank"
>
<img
class=
"lazy"
data-original=
"
{{
image
brandIco
270
190
}}
"
>
<span>
{{#if
brandNameEn
}}{{
brandNameEn
}}{{else}}{{
brandName
Cn
}}{{/if}}
</span>
<span>
{{#if
brandNameEn
}}{{
brandNameEn
}}{{else}}{{
brandName
}}{{/if}}
</span>
</a>
</li>
{{/
each
}}
...
...
apps/me/views/partial/collection/product.hbs
View file @
7b003eb
...
...
@@ -26,8 +26,8 @@
{{/
stateText
}}
</div>
<div
class=
"desc"
>
<div
class=
"brand-name"
>
{{
brandName
}}
</div>
<div
class=
"product-name"
>
{{
productName
}}
</div>
<div
class=
"brand-name"
><a
href=
"
{{
url
}}
"
target=
"_blank"
>
{{
brandName
}}
</a></div>
<div
class=
"product-name"
><a
href=
"
{{
url
}}
"
target=
"_blank"
>
{{
productName
}}
</a></div>
<p
class=
"price"
>
¥
{{
round
salesPrice
2
}}
</p>
</div>
...
...
apps/passport/views/action/login/index.hbs
View file @
7b003eb
{{>
sign-header
}}
<div
class=
"login-page passport-page"
>
{{#
passport
}}
<form
method=
'post'
onsubmit=
'return false;'
>
<ul>
<li
class=
"clearfix"
>
<div
class=
"title"
>
登录 SIGN IN
</div>
...
...
@@ -51,8 +52,7 @@
<span
class=
"iconfont"
>

</span>
<em></em>
</span>
<a
id=
"login-btn"
class=
"btn login-btn"
>
登录
</a>
<input
type=
"submit"
id=
"login-btn"
class=
"btn login-btn"
value=
'登录'
/>
</li>
<li
class=
"clearfix"
>
...
...
@@ -93,5 +93,6 @@
</li>
</ul>
<input
id=
"country-code-hide"
name=
"countryCode"
type=
"hidden"
value=
"
{{
countryCode
}}
"
>
</form>
{{/
passport
}}
</div>
...
...
apps/product/controllers/shop.js
View file @
7b003eb
...
...
@@ -40,6 +40,7 @@ const shop = {
nav
:
nav
};
data
.
banner
=
result
;
data
.
title
=
result
.
name
;
data
.
shopId
=
result
.
shopId
;
data
.
mores
=
{};
result
.
menus
.
forEach
(
m
=>
{
...
...
@@ -110,7 +111,7 @@ const shop = {
ShopData
.
getShopHeadData
(
domain
,
shopId
,
uid
).
then
(
result
=>
{
data
.
banner
=
result
;
data
.
title
=
result
.
name
;
if
(
data
.
banner
.
banner
)
{
data
.
banner
.
banner
=
data
.
banner
.
banner
.
split
(
'?'
)[
0
];
}
...
...
doraemon/components/pagination/pagination.js
View file @
7b003eb
...
...
@@ -47,7 +47,7 @@ exports.createPagination = function(pagination, options) {
var
template
;
if
(
!
pagination
)
{
if
(
!
pagination
||
pagination
.
pageTotal
===
1
)
{
return
''
;
}
...
...
public/js/me/favorite.page.js
View file @
7b003eb
...
...
@@ -32,6 +32,14 @@ function doCancel(ids) {
});
}
function
goodsChoose
()
{
if
(
$
(
this
).
parent
(
'.goods-info'
,
$root
).
hasClass
(
'choose'
))
{
$
(
this
).
parent
(
'.goods-info'
,
$root
).
removeClass
(
'choose'
);
}
else
{
$
(
this
).
parent
(
'.goods-info'
,
$root
).
addClass
(
'choose'
);
}
}
function
eventBind
()
{
$
(
'.check-all'
,
$root
).
check
({
...
...
@@ -45,14 +53,8 @@ function eventBind() {
}
});
$
(
'.goods-img'
,
$root
).
click
(
function
()
{
if
(
$
(
this
).
parent
(
'.goods-info'
,
$root
).
hasClass
(
'choose'
))
{
$
(
this
).
parent
(
'.goods-info'
,
$root
).
removeClass
(
'choose'
);
}
else
{
$
(
this
).
parent
(
'.goods-info'
,
$root
).
addClass
(
'choose'
);
}
});
$
(
'.choose-icon'
,
$root
).
click
(
goodsChoose
);
$
(
'.goods-img'
,
$root
).
click
(
goodsChoose
);
$
(
'.btn.cancel'
,
$root
).
click
(
function
()
{
var
id
=
$
(
this
).
parents
(
'.goods-info'
).
data
(
'id'
);
...
...
public/scss/_base.css
View file @
7b003eb
...
...
@@ -325,3 +325,7 @@ a {
border
:
1px
solid
#f0f0f0
;
text-indent
:
5px
;
}
.mr15
{
margin-right
:
15px
;
}
...
...
public/scss/channel/_editorial.css
View file @
7b003eb
...
...
@@ -30,7 +30,8 @@
.editorial-title
{
width
:
100%
;
min-height
:
50px
;
min-height
:
70px
;
line-height
:
1.4
;
padding
:
$
space
;
position
:
absolute
;
bottom
:
0
;
...
...
public/scss/components/_header.css
View file @
7b003eb
...
...
@@ -73,7 +73,6 @@
.tag-bag
{
padding-right
:
6px
;
margin-right
:
8px
;
font-weight
:
normal
;
position
:
relative
;
&:hover
{
...
...
@@ -114,6 +113,7 @@
width
:
230px
;
color
:
#1b1b1b
;
font-size
:
14px
;
font-weight
:
normal
;
padding
:
20px
0
;
margin-left
:
-86px
;
line-height
:
1.5
;
...
...
@@ -144,6 +144,7 @@
width
:
370px
;
padding
:
18px
;
border
:
1px
solid
#eee
;
font-weight
:
normal
;
background
:
#fff
;
position
:
absolute
;
z-index
:
50
;
...
...
@@ -181,7 +182,7 @@
.go-bag-btn
{
font-size
:
20px
;
line-height
:
1
;
padding-top
:
2
4
px
;
padding-top
:
2
0
px
;
border-top
:
1px
solid
#ddd
;
text-align
:
center
;
}
...
...
@@ -233,6 +234,7 @@
.del-good-btn
{
cursor
:
pointer
;
color
:
#999
;
}
}
}
...
...
public/scss/passport/_login.css
View file @
7b003eb
...
...
@@ -55,6 +55,7 @@
height
:
$
item-height
;
width
:
$
item-width
;
line-height
:
@
height
;
border
:
none
;
}
.captcha-component
{
...
...
public/tpl/common/bag-goods.hbs
View file @
7b003eb
...
...
@@ -7,11 +7,11 @@
</div>
<div
class=
"info"
>
<a
href=
"/product/pro_
{{
product_id
}}
_
{{
goods_id
}}
/
{{
cn_alphabet
}}
.html"
class=
"name"
target=
"_blank"
>
{{
product_name
}}
</a>
<
p>
颜色:
{{
color_name
}}
尺码:
{{
size_name
}}
</p
>
<
span
style=
"margin-right:15px;"
>
颜色:
{{
color_name
}}
</span>
<span>
尺码:
{{
size_name
}}
</span
>
</div>
<div
class=
"price"
>
<p>
¥
{{
round
sales_price
2
}}
X
{{
buy_number
}}
</p>
<span
class=
"del-good-btn"
data-type=
"
{{
goods_type
}}
"
data-num=
"
{{
buy_number
}}
"
data-num=
"
{{
buy_number
}}
"
data-sku=
"
{{
product_sku
}}
"
data-pid=
"
{{
promotion_id
}}
"
>
删除
</span>
</div>
</dd>
{{/
goods
}}
\ No newline at end of file
{{/
goods
}}
...
...
Please
register
or
login
to post a comment