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
yyq
9 years ago
Commit
9328c24f794139aa4f67bf18042a7d62643f90b4
2 parents
616991c3
2a54950f
Merge branch 'release/1.0' of git.yoho.cn:fe/yoho-blk into release/1.0
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
103 additions
and
64 deletions
apps/me/controllers/favorite.js
apps/me/models/order.js
apps/me/views/partial/collection/brand.hbs
public/js/me/setting.page.js
public/js/passport/back/back.js
public/js/plugins/share.js
public/js/product/list/list-search.js
public/scss/components/_share.css
public/scss/editorial/_detail.css
public/scss/me/favorite/_brand.css
public/scss/passport/_back.css
apps/me/controllers/favorite.js
View file @
9328c24
...
...
@@ -142,13 +142,17 @@ const favorite = {
if
(
retData
.
brandList
)
{
retData
.
brandList
.
forEach
(
b
=>
{
b
.
newProduct
.
forEach
(
p
=>
{
p
.
url
=
`
$
{
config
.
siteUrl
}
/product/
pro_$
{
p
.
productId
}
_$
{
p
.
goods
[
0
].
id
}
/${p.cnAlphabet}.html`; // eslint-disable-lin
e
});
b
.
newProduct
.
push
({
more
:
true
});
b
.
newProduct
=
_
.
chunk
(
b
.
newProduct
,
4
);
if
(
b
.
newProduct
&&
b
.
newProduct
.
length
>
0
)
{
b
.
newProduct
.
forEach
(
p
=>
{
p
.
url
=
`
$
{
config
.
siteUrl
}
/product/
pro_$
{
p
.
productId
}
_$
{
p
.
goods
[
0
].
id
}
/${p.cnAlphabet}.html`; // eslint-disable-lin
e
});
b
.
newProduct
.
push
({
more
:
true
});
b
.
newProduct
=
_
.
chunk
(
b
.
newProduct
,
4
);
}
else
{
b
.
noNewProduct
=
true
;
}
});
}
ret
.
content
.
favorite
.
data
=
retData
;
...
...
apps/me/models/order.js
View file @
9328c24
...
...
@@ -131,7 +131,8 @@ const statusMap = {
value
:
3
,
valueStr
:
'交易完成'
,
step
:
4
,
showEditor
:
true
showEditor
:
true
,
btns
:
[]
}
};
...
...
@@ -537,6 +538,7 @@ const getOrderDetail = (uid, code) => {
if
(
detail
.
isCancel
!==
'Y'
)
{
detail
.
steps
=
_getStepByOrderStatus
(
st
);
console
.
log
(
st
);
statusMap
[
st
].
btns
.
forEach
(
function
(
btn
)
{
btns
.
push
(
btn
);
});
...
...
apps/me/views/partial/collection/brand.hbs
View file @
9328c24
...
...
@@ -17,49 +17,58 @@
{{
brandName
}}
</div>
<div
class=
"tool-area clearfix"
>
<a
class=
"btn white"
href=
"/product/shop/
{{
brandDomain
}}{{#if
shopId
}}
?shopId=
{{
shopId
}}{{/if}}
"
target=
"_blank"
>
去店铺页
</a>
<a
class=
"btn white"
href=
"/product/shop/
{{
brandDomain
}}{{#if
shopId
}}
?shopId=
{{
shopId
}}{{/if}}
"
target=
"_blank"
>
去店铺页
</a>
<span
class=
"btn white cancel"
>
取消收藏
</span>
</div>
</div>
<div
class=
"brand-products slide-container"
>
<div
class=
"slide-switch"
>
<a
class=
"prev"
href=
"javascript:;"
>
<span
class=
"iconfont"
>

</span>
</a>
<a
class=
"next"
href=
"javascript:;"
>
<span
class=
"iconfont"
>

</span>
</a>
</div>
<div
class=
"slide-wrap"
>
<ul>
{{#
each
newProduct
}}
<li
class=
"clearfix"
>
{{#
each
this
}}
{{#if
more
}}
<div
class=
"goods-more"
>
<a
href=
"/product/shop/
{{
..
/
..
/
brandDomain
}}{{#if
..
/
..
/
shopId
}}
?shopId=
{{
..
/
..
/
shopId
}}{{/if}}
"
target=
"_blank"
>
<div
class=
"more-text"
>
MORE
</div>
<p>
查看更多
</p>
</a>
</div>
{{^}}
<div
class=
"goods-info"
>
<a
href=
"
{{
url
}}
"
target=
"_blank"
>
<img
class=
"lazy thumb"
src=
"
{{
image
defaultImages
148
196
}}
"
style=
"display: block;"
>
<div
class=
"desc"
>
<span
class=
"name"
>
{{
productName
}}
</span>
<p
class=
"price"
>
¥
{{
round
salesPrice
2
}}
</p>
</div>
</a>
</div>
{{/if}}
{{/
each
}}
</li>
{{/
each
}}
</ul>
</div>
{{#if
noNewProduct
}}
<p
class=
"no-product-info"
>
暂无新品, 去
<a
href=
"/
{{
siteUrl
}}
/brand"
target=
"_blank"
>
名牌频道
</a>
看看吧
</p>
{{^}}
<div
class=
"slide-switch"
>
<a
class=
"prev"
href=
"javascript:;"
>
<span
class=
"iconfont"
>

</span>
</a>
<a
class=
"next"
href=
"javascript:;"
>
<span
class=
"iconfont"
>

</span>
</a>
</div>
<div
class=
"slide-wrap"
>
<ul>
{{#
each
newProduct
}}
<li
class=
"clearfix"
>
{{#
each
this
}}
{{#if
more
}}
<div
class=
"goods-more"
>
<a
href=
"/product/shop/
{{
..
/
..
/
brandDomain
}}{{#if
..
/
..
/
shopId
}}
?shopId=
{{
..
/
..
/
shopId
}}{{/if}}
"
target=
"_blank"
>
<div
class=
"more-text"
>
MORE
</div>
<p>
查看更多
</p>
</a>
</div>
{{^}}
<div
class=
"goods-info"
>
<a
href=
"
{{
url
}}
"
target=
"_blank"
>
<img
class=
"lazy thumb"
src=
"
{{
image
defaultImages
148
196
}}
"
style=
"display: block;"
>
<div
class=
"desc"
>
<span
class=
"name"
>
{{
productName
}}
</span>
<p
class=
"price"
>
¥
{{
round
salesPrice
2
}}
</p>
</div>
</a>
</div>
{{/if}}
{{/
each
}}
</li>
{{/
each
}}
</ul>
</div>
{{/if}}
</div>
</div>
{{/
each
}}
...
...
public/js/me/setting.page.js
View file @
9328c24
...
...
@@ -189,7 +189,7 @@ $(function() {
if
(
len
===
2
)
{
new
_alert
(
'修改成功!'
).
show
();
}
else
{
new
_alert
(
'修改失败!'
).
show
();
new
_alert
(
data
[
1
].
message
).
show
();
}
}
});
...
...
public/js/passport/back/back.js
View file @
9328c24
...
...
@@ -148,8 +148,10 @@ function validatePhoneNum() {
return
validate
().
then
(
function
()
{
hideTip
(
$phoneNumInput
);
ep
.
emit
(
'phone-num'
,
true
);
return
true
;
}).
fail
(
function
()
{
ep
.
emit
(
'phone-num'
,
false
);
return
false
;
});
}
...
...
@@ -215,8 +217,10 @@ function validateImgCaptcha() {
return
validate
().
then
(
function
()
{
ep
.
emit
(
'captcha-img'
,
true
);
return
true
;
}).
fail
(
function
()
{
ep
.
emit
(
'captcha-img'
,
false
);
return
false
;
});
}
...
...
public/js/plugins/share.js
View file @
9328c24
...
...
@@ -123,3 +123,15 @@ $('.weixin').hover(function() {
},
function
()
{
$
(
'.weixin-share-box'
).
hide
();
});
// $('.weixin').mouseover(function() {
// var $el = $(this),
// type = $el.data('type');
// console.log(1)
// share(type, $el);
// });
// $('.weixin').mouseleave(function() {
// $('.weixin-share-box').hide();
// });
\ No newline at end of file
...
...
public/js/product/list/list-search.js
View file @
9328c24
...
...
@@ -304,7 +304,6 @@ var YohoListPage = {
});
},
openBrandMulitChoose
:
function
()
{
console
.
log
(
1
);
$
(
'.yoho-product-list .mulit-choose'
).
hide
();
$
(
'.input-radio'
,
this
.
brandsDoc
).
check
({
type
:
'checkbox'
...
...
@@ -361,7 +360,6 @@ var YohoListPage = {
first
=
first
.
toLowerCase
();
if
(
letter
===
'0-9'
)
{
console
.
log
(
first
);
if
((
first
>=
'a'
&&
first
<=
'z'
)
||
(
first
>=
'A'
&&
first
<=
'Z'
))
{
$
(
this
).
hide
();
}
else
{
...
...
public/scss/components/_share.css
View file @
9328c24
...
...
@@ -19,6 +19,10 @@
cursor
:
pointer
;
font-size
:
20px
;
}
.weixin
{
height
:
30px
;
}
}
.weixin-share-box
{
...
...
@@ -51,7 +55,7 @@
z-index
:
100
;
height
:
12px
;
display
:
block
;
background-image
:
resolve
(
'layout/up.png'
);
background-image
:
resolve
(
"layout/up.png"
);
top
:
17px
;
}
}
...
...
@@ -81,5 +85,4 @@
color
:
#9f9f9f
;
line-height
:
20px
;
}
}
...
...
public/scss/editorial/_detail.css
View file @
9328c24
...
...
@@ -6,10 +6,6 @@
margin
:
30px
auto
;
}
.font
{
font-family
:
'黑体'
;
}
.detail-title
{
font-size
:
24px
;
text-align
:
center
;
...
...
@@ -77,6 +73,7 @@
margin-right
:
30px
;
}
}
.article-main
{
text-align
:
center
;
margin
:
0
auto
;
...
...
@@ -272,8 +269,10 @@
.user-handle
{
float
:
right
;
ul
{
display
:
inline-block
;
li
{
float
:
left
;
margin
:
0
15px
;
...
...
@@ -328,6 +327,7 @@
i
{
opacity
:
1
;
}
.cancel-collect
{
display
:
inline
;
}
...
...
@@ -413,7 +413,6 @@
a
{
float
:
right
;
}
}
.comment-area
{
...
...
@@ -496,7 +495,7 @@
width
:
12px
;
height
:
7px
;
background
:
#fff
;
background-image
:
resolve
(
'layout/down.png'
);
background-image
:
resolve
(
"layout/down.png"
);
position
:
absolute
;
left
:
15px
;
}
...
...
@@ -518,7 +517,6 @@
}
.comments-list
{
li
{
margin
:
14px
0
0
;
padding
:
0
0
15px
;
...
...
@@ -544,6 +542,7 @@
font-weight
:
bold
;
}
}
.comment-info
{
.comment-content
{
margin-top
:
10px
;
...
...
@@ -560,7 +559,6 @@
clear
:
both
;
}
}
}
}
...
...
public/scss/me/favorite/_brand.css
View file @
9328c24
...
...
@@ -72,6 +72,15 @@
width
:
685px
;
position
:
relative
;
}
.no-product-info
{
text-align
:
center
;
margin-top
:
65px
;
a
{
color
:
#379ed6
;
}
}
}
.goods-info
{
...
...
public/scss/passport/_back.css
View file @
9328c24
...
...
@@ -81,7 +81,7 @@
cursor
:
pointer
;
&.disable
{
background-color
:
$
inactiv
e-color
;
background-color
:
$
them
e-color
;
}
}
...
...
@@ -146,7 +146,7 @@
line-height
:
@
height
;
&.disable
{
background-color
:
$
inactiv
e-color
;
background-color
:
$
them
e-color
;
}
}
...
...
@@ -166,7 +166,7 @@
margin
:
0
calc
((
$
item-width
-
@
width
)
/
2
);
&.disable
{
background-color
:
$
inactiv
e-color
;
background-color
:
$
them
e-color
;
}
}
...
...
@@ -195,7 +195,7 @@
cursor
:
pointer
;
&.disable
{
background-color
:
$
inactiv
e-color
;
background-color
:
$
them
e-color
;
}
}
}
...
...
Please
register
or
login
to post a comment