Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
biao
9 years ago
Commit
3c0273189b283ef3cf6a6fc65a812c41900128de
2 parents
f06d94b4
d88be349
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into fix/issue
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
7 deletions
library/Plugin/Helpers.php
static/js/me/order-detail.js
static/sass/cart/_good.scss
static/sass/cart/_index.scss
static/sass/cart/_order-ensure.scss
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
library/Plugin/Helpers.php
View file @
3c02731
...
...
@@ -191,7 +191,7 @@ class Helpers
*/
public
static
function
transPrice
(
$price
)
{
return
(
!
empty
(
$price
)
&&
!
is_float
(
$price
))
?
$price
.
'.00'
:
number_format
(
$price
,
2
,
'.'
,
''
);
return
number_format
(
$price
,
2
,
'.'
,
''
);
}
/**
...
...
static/js/me/order-detail.js
View file @
3c02731
...
...
@@ -41,7 +41,7 @@ optHammer.on('tap', function(e) {
}
}).
then
(
function
(
res
)
{
$
(
'#dialog-wrapper'
).
hide
();
if
(
!
res
)
{
if
(
$
.
type
(
res
)
!==
'object'
)
{
return
;
}
if
(
res
.
message
)
{
...
...
@@ -70,7 +70,7 @@ optHammer.on('tap', function(e) {
}
}).
then
(
function
(
res
)
{
$
(
'#dialog-wrapper'
).
hide
();
if
(
!
res
)
{
if
(
$
.
type
(
res
)
!==
'object'
)
{
return
;
}
if
(
res
.
message
)
{
...
...
static/sass/cart/_good.scss
View file @
3c02731
...
...
@@ -28,9 +28,9 @@
}
.few-tag
{
width
:
1
32
rem
/
$pxConvertRem
;
width
:
1
48
rem
/
$pxConvertRem
;
position
:
absolute
;
left
:
100
rem
/
$pxConvertRem
;
left
:
92
rem
/
$pxConvertRem
;
text-align
:
center
;
top
:
75%
;
color
:
#fff
;
...
...
static/sass/cart/_index.scss
View file @
3c02731
...
...
@@ -5,7 +5,7 @@
.icon-cb-checked
:before
{
content
:
"\e61d"
;
}
.shopping-cart-page
{
padding
-bottom
:
120rem
/
$pxConvertRem
;
margin
-bottom
:
120rem
/
$pxConvertRem
;
overflow-x
:
hidden
;
background
:
#f0f0f0
;
...
...
static/sass/cart/_order-ensure.scss
View file @
3c02731
...
...
@@ -137,6 +137,13 @@
color
:
#999
;
}
}
.checkbox
{
display
:
inline-block
;
width
:
80rem
/
$pxConvertRem
;
text-align
:
center
;
margin-right
:
-20rem
/
$pxConvertRem
;
}
.coin-check
{
float
:
right
;
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
3c02731
...
...
@@ -408,7 +408,7 @@ class CartModel
$oneGoods
[
'name'
]
=
$single
[
'product_name'
];
$oneGoods
[
'color'
]
=
$single
[
'color_name'
];
$oneGoods
[
'size'
]
=
$single
[
'size_name'
];
$oneGoods
[
'price'
]
=
Helpers
::
transPrice
(
$single
[
'
sales
_price'
]);
$oneGoods
[
'price'
]
=
Helpers
::
transPrice
(
$single
[
'
last
_price'
]);
$oneGoods
[
'count'
]
=
$single
[
'buy_number'
];
//gift=>是否赠品,advanceBuy=>是否加价购;
...
...
Please
register
or
login
to post a comment