Commit 7b5fffd6 authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-wx,litemall-wx-apidb]: 下单时没有送货地址,添加新地址成功,但是没有显示。

parent e265a754
...@@ -153,7 +153,7 @@ public class WxAddressController { ...@@ -153,7 +153,7 @@ public class WxAddressController {
address.setUserId(userId); address.setUserId(userId);
addressService.update(address); addressService.update(address);
} }
return ResponseUtil.ok(); return ResponseUtil.ok(address.getId());
} }
/** /**
......
...@@ -298,6 +298,11 @@ Page({ ...@@ -298,6 +298,11 @@ Page({
isDefault: address.isDefault, isDefault: address.isDefault,
}, 'POST').then(function (res) { }, 'POST').then(function (res) {
if (res.errno === 0) { if (res.errno === 0) {
try {
wx.setStorageSync('addressId', res.data);
} catch (e) {
}
wx.navigateBack(); wx.navigateBack();
} }
}); });
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment