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
7b5fffd6
Commit
7b5fffd6
authored
May 11, 2018
by
Junling Bu
Browse files
fix[litemall-wx,litemall-wx-apidb]: 下单时没有送货地址,添加新地址成功,但是没有显示。
parent
e265a754
Changes
2
Hide whitespace changes
Inline
Side-by-side
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxAddressController.java
View file @
7b5fffd6
...
...
@@ -153,7 +153,7 @@ public class WxAddressController {
address
.
setUserId
(
userId
);
addressService
.
update
(
address
);
}
return
ResponseUtil
.
ok
();
return
ResponseUtil
.
ok
(
address
.
getId
()
);
}
/**
...
...
litemall-wx/pages/shopping/addressAdd/addressAdd.js
View file @
7b5fffd6
...
...
@@ -298,6 +298,11 @@ Page({
isDefault
:
address
.
isDefault
,
},
'
POST
'
).
then
(
function
(
res
)
{
if
(
res
.
errno
===
0
)
{
try
{
wx
.
setStorageSync
(
'
addressId
'
,
res
.
data
);
}
catch
(
e
)
{
}
wx
.
navigateBack
();
}
});
...
...
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