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
Email Patches
Plain Diff
Browse Files
Authored by
毕凯
9 years ago
Commit
673938aa4f513700059903cb0748ed394e808855
1 parent
4f1a1d6b
cookie 增加购物车类型
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
static/js/cart/order-ensure.js
static/js/cart/order-info.js
static/js/cart/order-ensure.js
View file @
673938a
...
...
@@ -33,6 +33,8 @@ if ($couponUse.data('name') !== orderInfo('couponName')) {
orderInfo
(
'couponName'
,
null
);
}
orderInfo
(
'cartType'
,
queryString
.
cartType
||
queryString
.
carttype
||
'ordinary'
);
function
dispacthTapEvt
(
e
)
{
var
$cur
=
$
(
e
.
target
).
closest
(
'li'
);
...
...
@@ -78,7 +80,7 @@ function orderCompute() {
method
:
'POST'
,
url
:
'/cart/index/orderCompute'
,
data
:
{
cartType
:
queryString
.
cartType
||
queryString
.
carttype
||
'ordinary'
,
cartType
:
orderInfo
(
'cartType'
)
||
'ordinary'
,
deliveryId
:
orderInfo
(
'deliveryId'
),
paymentTypeId
:
orderInfo
(
'paymentTypeId'
),
couponCode
:
orderInfo
(
'couponCode'
),
...
...
@@ -139,11 +141,12 @@ function submitOrder() {
url
:
'/cart/index/orderSub'
,
data
:
{
addressId
:
orderInfo
(
'addressId'
),
cartType
:
queryString
.
cartType
||
queryString
.
carttype
||
'ordinary'
,
cartType
:
orderInfo
(
'cartType'
)
||
'ordinary'
,
deliveryId
:
orderInfo
(
'deliveryId'
),
deliveryTimeId
:
orderInfo
(
'deliveryTimeId'
),
invoiceText
:
orderInfo
(
'invoice'
)
?
invoiceText
:
null
,
invoiceType
:
orderInfo
(
'invoice'
)
?
(
$invoice
.
find
(
'.invoice-type'
).
val
()
||
orderInfo
(
'invoiceType'
))
:
null
,
invoiceType
:
orderInfo
(
'invoice'
)
?
(
$invoice
.
find
(
'.invoice-type'
).
val
()
||
orderInfo
(
'invoiceType'
))
:
null
,
msg
:
msg
,
paymentTypeId
:
orderInfo
(
'paymentTypeId'
),
paymentType
:
orderInfo
(
'paymentType'
),
//支付方式
...
...
static/js/cart/order-info.js
View file @
673938a
...
...
@@ -19,7 +19,8 @@ function init() {
invoice
:
null
,
invoiceText
:
null
,
invoiceType
:
null
,
msg
:
null
msg
:
null
,
cartType
:
'ordinary'
};
window
.
setCookie
(
'order-info'
,
JSON
.
stringify
(
info
));
}
...
...
Please
register
or
login
to post a comment