Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
edd03536
Commit
edd03536
authored
Apr 18, 2019
by
Junling Bu
Browse files
fix[litemall-wx,renard-wx]: 调整逻辑,修复收货地址删除仍然可以访问的问题
parent
ca5d9984
Changes
2
Hide whitespace changes
Inline
Side-by-side
litemall-wx/pages/checkout/checkout.js
View file @
edd03536
...
...
@@ -79,39 +79,34 @@ Page({
});
try
{
var
cartId
=
wx
.
getStorageSync
(
'
cartId
'
);
if
(
cartId
)
{
this
.
setData
({
'
cartId
'
:
cartId
});
if
(
cartId
===
""
)
{
cartId
=
0
;
}
var
addressId
=
wx
.
getStorageSync
(
'
addressId
'
);
if
(
addressId
)
{
this
.
setData
({
'
addressId
'
:
addressId
});
if
(
addressId
===
""
)
{
addressId
=
0
;
}
var
couponId
=
wx
.
getStorageSync
(
'
couponId
'
);
if
(
couponId
)
{
this
.
setData
({
'
couponId
'
:
couponId
});
if
(
couponId
===
""
)
{
couponId
=
0
;
}
var
grouponRulesId
=
wx
.
getStorageSync
(
'
grouponRulesId
'
);
if
(
grouponRulesId
)
{
this
.
setData
({
'
grouponRulesId
'
:
grouponRulesId
});
if
(
grouponRulesId
===
""
)
{
grouponRulesId
=
0
;
}
var
grouponLinkId
=
wx
.
getStorageSync
(
'
grouponLinkId
'
);
if
(
grouponLinkId
)
{
this
.
setData
({
'
grouponLinkId
'
:
grouponLinkId
});
if
(
grouponLinkId
===
""
)
{
grouponLinkId
=
0
;
}
this
.
setData
({
cartId
:
cartId
,
addressId
:
addressId
,
couponId
:
couponId
,
grouponRulesId
:
grouponRulesId
,
grouponLinkId
:
grouponLinkId
});
}
catch
(
e
)
{
// Do something when catch error
console
.
log
(
e
);
...
...
renard-wx/pages/shopping/checkout/checkout.js
View file @
edd03536
...
...
@@ -68,39 +68,34 @@ Page({
});
try
{
var
cartId
=
wx
.
getStorageSync
(
'
cartId
'
);
if
(
cartId
)
{
this
.
setData
({
'
cartId
'
:
cartId
});
if
(
cartId
===
""
)
{
cartId
=
0
;
}
var
addressId
=
wx
.
getStorageSync
(
'
addressId
'
);
if
(
addressId
)
{
this
.
setData
({
'
addressId
'
:
addressId
});
if
(
addressId
===
""
)
{
addressId
=
0
;
}
var
couponId
=
wx
.
getStorageSync
(
'
couponId
'
);
if
(
couponId
)
{
this
.
setData
({
'
couponId
'
:
couponId
});
if
(
couponId
===
""
)
{
couponId
=
0
;
}
var
grouponRulesId
=
wx
.
getStorageSync
(
'
grouponRulesId
'
);
if
(
grouponRulesId
)
{
this
.
setData
({
'
grouponRulesId
'
:
grouponRulesId
});
if
(
grouponRulesId
===
""
)
{
grouponRulesId
=
0
;
}
var
grouponLinkId
=
wx
.
getStorageSync
(
'
grouponLinkId
'
);
if
(
grouponLinkId
)
{
this
.
setData
({
'
grouponLinkId
'
:
grouponLinkId
});
if
(
grouponLinkId
===
""
)
{
grouponLinkId
=
0
;
}
this
.
setData
({
cartId
:
cartId
,
addressId
:
addressId
,
couponId
:
couponId
,
grouponRulesId
:
grouponRulesId
,
grouponLinkId
:
grouponLinkId
});
}
catch
(
e
)
{
// Do something when catch error
console
.
log
(
e
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment