Authored by 张文文

bug fix

... ... @@ -9,9 +9,7 @@ export default {
async fetchUserAddressList({
commit
}) {
const result = await this.$api.get('/api/address/gethidden', {
uid: '500031912'
});
const result = await this.$api.get('/api/address/gethidden');
if (result.code === 200) {
commit(Types.FETCH_USER_ADDRESS_LIST, {
... ... @@ -24,9 +22,7 @@ export default {
async fetchAddressTags({
commit
}) {
const result = await this.$api.get('/api/address/getTags', {
uid: '500031912'
});
const result = await this.$api.get('/api/address/getTags');
if (result.code === 200) {
commit(Types.FETCH_ADDRESS_TAGS, {
... ... @@ -42,9 +38,7 @@ export default {
try {
result = await this.$api.get('/api/address/getProvinces', {
uid: '500031912',
id,
debug: 'XYZ'
});
} catch (e) {
return result;
... ... @@ -58,14 +52,12 @@ export default {
commit
}, data) {
const result = await this.$api.post('/api/address/addAddress', {
uid: '500031912',
address: data.address,
area_code: data.area_code,
consignee: data.consignee,
mobile: data.mobile,
tag_code: data.tag_code,
is_default: data.is_default,
debug: 'XYZ'
});
return result || {};
... ... @@ -75,7 +67,6 @@ export default {
commit
}, data) {
const result = await this.$api.post('/api/address/updateAddress', {
uid: '500031912',
id: data.id,
address: data.address,
area_code: data.area_code,
... ... @@ -83,7 +74,6 @@ export default {
mobile: data.mobile,
tag_code: data.tag_code,
is_default: data.is_default,
debug: 'XYZ'
});
return result || {};
... ... @@ -93,9 +83,7 @@ export default {
commit
}, addressId) {
const result = await this.$api.post('/api/address/delAddress', {
uid: '500031912',
id: addressId,
debug: 'XYZ'
});
return result || {};
... ...