收货地址管理列表,设置默认,成功后刷新地址!
let addressId = e.detail.address.addressId;
let { token, key: appKey} = this.data;
axios.setAddressDefault({
addressId,
appKey,
token
}).then(this.getAddressList.call(this))
通过分析,在执行成功函数,获取地址列表出现错误!
let addressId = e.detail.address.addressId;
let { token, key: appKey} = this.data;
axios.setAddressDefault({
addressId,
appKey,
token
}).then(this.getAddressList.bind(this))