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
xuqi
9 years ago
Commit
6a95c8d783f995f290d1c003301197dd01268cbe
2 parents
0c7484b0
6b311ce1
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
8 changed files
with
42 additions
and
8 deletions
apps/channel/views/partial/brand-img-box.hbs
apps/me/models/order.js
apps/shopping/controllers/pay.js
public/js/common/return-top.js
public/scss/channel/_brand-text-box.css
public/scss/channel/_home.css
public/scss/channel/_style-icon.css
public/scss/components/_footer.css
apps/channel/views/partial/brand-img-box.hbs
View file @
6a95c8d
{{#
classicBrands
}}
<div
class=
"brand-img-box
{{#if
right
}}
right
{{/if}}
{{#if
bottomSpace
}}
mb10
{{/if}}
"
>
<a
href=
"
{{
url
}}
"
>
<a
href=
"
{{
url
}}
"
target=
"_blank"
>
{{#
big
}}
<img
class=
"big-img lazy-img"
data-original=
"
{{
image
src
565
340
}}
"
alt=
"big-img"
>
{{/
big
}}
...
...
apps/me/models/order.js
View file @
6a95c8d
...
...
@@ -43,6 +43,7 @@ const btnMap = {
classStr
:
'btn white cancel-btn mr'
},
{
isEditBtn
:
true
,
name
:
'修改订单'
,
classStr
:
'btn white edit-btn'
}
...
...
@@ -518,6 +519,12 @@ const getOrderDetail = (uid, code) => {
}
});
if
(
detail
.
canUpdateDeliveryAddress
===
'N'
)
{
_
.
remove
(
detail
.
btns
,
btn
=>
{
return
btn
.
isEditBtn
;
});
}
if
(
parseInt
(
detail
.
paymentType
,
10
)
===
2
&&
(
statusMap
[
st
].
valueStr
===
'备货中'
||
detail
.
statusStr
===
'备货中'
))
{
...
...
apps/shopping/controllers/pay.js
View file @
6a95c8d
...
...
@@ -85,7 +85,7 @@ const callback = (req, res) => {
cost
:
data
.
pay
,
orderNum
:
data
.
orderCode
,
onlineCost
:
data
.
pay
,
orderHref
:
helpers
.
urlFormat
(
'/me/order/detail'
,
{
c
ode
:
data
.
orderCode
}),
orderHref
:
helpers
.
urlFormat
(
'/me/order/detail'
,
{
orderC
ode
:
data
.
orderCode
}),
walkHref
:
helpers
.
urlFormat
(
'/'
)
}
});
...
...
public/js/common/return-top.js
View file @
6a95c8d
...
...
@@ -17,6 +17,19 @@ function showOrNot() {
}
}
function
reposReturnTop
()
{
var
$top
=
$returnTop
.
parent
();
if
(
!
$top
.
hasClass
(
'service-top'
))
{
$top
=
$returnTop
;
}
if
(
$
(
window
).
width
()
<
1380
)
{
$top
.
addClass
(
'for-min'
);
}
else
{
$top
.
removeClass
(
'for-min'
);
}
}
$returnTop
.
click
(
function
()
{
$
(
'html,body'
).
animate
({
scrollTop
:
0
...
...
@@ -36,4 +49,10 @@ if ($returnTop.hasClass('hide')) {
$
(
'img'
).
load
(
showOrNot
);
}
reposReturnTop
();
if
(
$returnTop
.
length
)
{
$
(
window
).
resize
(
reposReturnTop
);
}
exports
.
returnTopShowOrNot
=
showOrNot
;
...
...
public/scss/channel/_brand-text-box.css
View file @
6a95c8d
...
...
@@ -11,8 +11,15 @@
position
:
relative
;
h4
{
height
:
18px
;
line-height
:
18px
;
padding-right
:
10px
;
display
:
-webkit-box
;
font-size
:
16px
;
font-weight
:
bold
;
overflow
:
hidden
;
-webkit-line-clamp
:
1
;
-webkit-box-orient
:
vertical
;
}
p
{
...
...
public/scss/channel/_home.css
View file @
6a95c8d
...
...
@@ -53,7 +53,7 @@
img
{
width
:
1150px
;
height
:
auto
;
height
:
$
sliderHeight
;
}
}
}
...
...
public/scss/channel/_style-icon.css
View file @
6a95c8d
...
...
@@ -79,10 +79,9 @@
border
:
1px
solid
#404040
;
border-left
:
none
;
*
{
p,
h4
{
display
:
block
;
}
p
{
display
:
-webkit-box
;
}
}
...
...
public/scss/components/_footer.css
View file @
6a95c8d
...
...
@@ -42,8 +42,10 @@
color
:
#fff
;
}
&
.min
{
margin-left
:
505px
;
&
.for-min
{
right
:
20px
;
left
:
auto
;
margin-left
:
auto
;
}
}
}
...
...
Please
register
or
login
to post a comment