Showing
1 changed file
with
2 additions
and
14 deletions
@@ -9,9 +9,7 @@ export default { | @@ -9,9 +9,7 @@ export default { | ||
9 | async fetchUserAddressList({ | 9 | async fetchUserAddressList({ |
10 | commit | 10 | commit |
11 | }) { | 11 | }) { |
12 | - const result = await this.$api.get('/api/address/gethidden', { | ||
13 | - uid: '500031912' | ||
14 | - }); | 12 | + const result = await this.$api.get('/api/address/gethidden'); |
15 | 13 | ||
16 | if (result.code === 200) { | 14 | if (result.code === 200) { |
17 | commit(Types.FETCH_USER_ADDRESS_LIST, { | 15 | commit(Types.FETCH_USER_ADDRESS_LIST, { |
@@ -24,9 +22,7 @@ export default { | @@ -24,9 +22,7 @@ export default { | ||
24 | async fetchAddressTags({ | 22 | async fetchAddressTags({ |
25 | commit | 23 | commit |
26 | }) { | 24 | }) { |
27 | - const result = await this.$api.get('/api/address/getTags', { | ||
28 | - uid: '500031912' | ||
29 | - }); | 25 | + const result = await this.$api.get('/api/address/getTags'); |
30 | 26 | ||
31 | if (result.code === 200) { | 27 | if (result.code === 200) { |
32 | commit(Types.FETCH_ADDRESS_TAGS, { | 28 | commit(Types.FETCH_ADDRESS_TAGS, { |
@@ -42,9 +38,7 @@ export default { | @@ -42,9 +38,7 @@ export default { | ||
42 | 38 | ||
43 | try { | 39 | try { |
44 | result = await this.$api.get('/api/address/getProvinces', { | 40 | result = await this.$api.get('/api/address/getProvinces', { |
45 | - uid: '500031912', | ||
46 | id, | 41 | id, |
47 | - debug: 'XYZ' | ||
48 | }); | 42 | }); |
49 | } catch (e) { | 43 | } catch (e) { |
50 | return result; | 44 | return result; |
@@ -58,14 +52,12 @@ export default { | @@ -58,14 +52,12 @@ export default { | ||
58 | commit | 52 | commit |
59 | }, data) { | 53 | }, data) { |
60 | const result = await this.$api.post('/api/address/addAddress', { | 54 | const result = await this.$api.post('/api/address/addAddress', { |
61 | - uid: '500031912', | ||
62 | address: data.address, | 55 | address: data.address, |
63 | area_code: data.area_code, | 56 | area_code: data.area_code, |
64 | consignee: data.consignee, | 57 | consignee: data.consignee, |
65 | mobile: data.mobile, | 58 | mobile: data.mobile, |
66 | tag_code: data.tag_code, | 59 | tag_code: data.tag_code, |
67 | is_default: data.is_default, | 60 | is_default: data.is_default, |
68 | - debug: 'XYZ' | ||
69 | }); | 61 | }); |
70 | 62 | ||
71 | return result || {}; | 63 | return result || {}; |
@@ -75,7 +67,6 @@ export default { | @@ -75,7 +67,6 @@ export default { | ||
75 | commit | 67 | commit |
76 | }, data) { | 68 | }, data) { |
77 | const result = await this.$api.post('/api/address/updateAddress', { | 69 | const result = await this.$api.post('/api/address/updateAddress', { |
78 | - uid: '500031912', | ||
79 | id: data.id, | 70 | id: data.id, |
80 | address: data.address, | 71 | address: data.address, |
81 | area_code: data.area_code, | 72 | area_code: data.area_code, |
@@ -83,7 +74,6 @@ export default { | @@ -83,7 +74,6 @@ export default { | ||
83 | mobile: data.mobile, | 74 | mobile: data.mobile, |
84 | tag_code: data.tag_code, | 75 | tag_code: data.tag_code, |
85 | is_default: data.is_default, | 76 | is_default: data.is_default, |
86 | - debug: 'XYZ' | ||
87 | }); | 77 | }); |
88 | 78 | ||
89 | return result || {}; | 79 | return result || {}; |
@@ -93,9 +83,7 @@ export default { | @@ -93,9 +83,7 @@ export default { | ||
93 | commit | 83 | commit |
94 | }, addressId) { | 84 | }, addressId) { |
95 | const result = await this.$api.post('/api/address/delAddress', { | 85 | const result = await this.$api.post('/api/address/delAddress', { |
96 | - uid: '500031912', | ||
97 | id: addressId, | 86 | id: addressId, |
98 | - debug: 'XYZ' | ||
99 | }); | 87 | }); |
100 | 88 | ||
101 | return result || {}; | 89 | return result || {}; |
-
Please register or login to post a comment