| | |
| | | 'info': 0, |
| | | 'flower': 0, |
| | | 'shopping': 0, |
| | | 'follow': 0 |
| | | }, |
| | | defaultaddress: {} |
| | | }, |
| | |
| | | } |
| | | }) |
| | | console.log('resp', resp) |
| | | if (resp && resp.code == 0) { |
| | | if (resp && resp.code === 0) { |
| | | storage.setItem('token', resp.data.access_token) |
| | | commit("updateLogin", true) |
| | | await dispatch('getCurrentInfo') |
| | |
| | | |
| | | }, |
| | | submitShopping: async function ({commit, dispatch}, data) { |
| | | const resp = await http.request('post', '/api/api/customer/flower/cart/change-num', { |
| | | const resp = await http.request('post', '/api/customer/flower/cart/change-num', { |
| | | data: { |
| | | id: data.id, |
| | | num: 1 |