...
|
...
|
@@ -100,14 +100,14 @@ const address = (params) => { |
|
|
|
|
|
/* 加密地址 ID */
|
|
|
_.forEach(selfAddress.data, (value, key) => {
|
|
|
selfAddress.data[key].address_id = crypto.encryption(null, selfAddress.data[key].address_id);
|
|
|
selfAddress.data[key].address_id = encodeURIComponent(crypto.encryption(null, selfAddress.data[key].address_id));
|
|
|
});
|
|
|
|
|
|
/* 如果有 ID 是地址编辑页面 */
|
|
|
if (params.id) {
|
|
|
return {
|
|
|
address: camelCase(_.find(selfAddress.data, o => {
|
|
|
return o.address_id === params.id;
|
|
|
return decodeURIComponent(o.address_id) === params.id;
|
|
|
})),
|
|
|
addressList: camelCase(result[1] ? result[1].data : []),
|
|
|
navTitle: '编辑地址'
|
...
|
...
|
|