Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
d71120ea5062d3508582d60cf9c5320e3b9e9840
2 parents
e124bdea
9b29c86c
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
framework
static/js/cart/order-ensure.js
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
framework
@
e9d066dd
Subproject commit
75bbc3b075de19f239532f60c5995d06c5f814e2
Subproject commit
e9d066dd88a8e7e37103021c427a205a5cfcdcec
...
...
static/js/cart/order-ensure.js
View file @
d71120e
...
...
@@ -97,12 +97,6 @@ function orderCompute() {
if
(
$
.
type
(
res
)
!==
'object'
)
{
window
.
location
.
reload
();
}
else
{
/*if (res.order_amount) {
res.order_amount = (+res.order_amount).toFixed(2);
}
if (res.discount_amount) {
res.discount_amount = (+res.discount_amount).toFixed(2);
}*/
if
(
res
.
last_order_amount
)
{
res
.
last_order_amount
=
(
+
res
.
last_order_amount
).
toFixed
(
2
);
}
...
...
@@ -128,6 +122,10 @@ function submitOrder() {
var
invoiceText
=
$invoice
.
find
(
'[name="invoice-title"]'
).
val
()
||
orderInfo
(
'invoiceText'
),
msg
=
$
(
'#msg'
).
find
(
'input'
).
val
()
||
orderInfo
(
'msg'
);
if
(
orderInfo
(
'deliveryId'
)
===
2
&&
!
$addressWrap
.
data
(
'support'
))
{
tip
.
show
(
'当前地址不支持顺丰快递'
);
return
;
}
if
(
isSubmiting
)
{
return
false
;
}
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
d71120e
...
...
@@ -346,7 +346,8 @@ class CartModel
$result
[
'phoneNum'
]
=
isset
(
$address
[
'mobile'
])
?
$address
[
'mobile'
]
:
$payReturn
[
'delivery_address'
][
'mobile'
];
$result
[
'area'
]
=
isset
(
$address
[
'area'
])
?
$address
[
'area'
]
:
$payReturn
[
'delivery_address'
][
'area'
];
$result
[
'address'
]
=
isset
(
$address
[
'address'
])
?
$address
[
'address'
]
:
$payReturn
[
'delivery_address'
][
'address'
];
$result
[
'isSupport'
]
=
(
$payReturn
[
'delivery_address'
][
'is_support'
]
===
'Y'
);
$isSupport
=
isset
(
$address
[
'is_support'
])
?
$address
[
'is_support'
]
:
$payReturn
[
'delivery_address'
][
'is_support'
];
$result
[
'isSupport'
]
=
$isSupport
===
'Y'
;
}
// 配送方式
...
...
Please
register
or
login
to post a comment