|
@@ -193,6 +193,7 @@ export const actions = {
|
|
|
commit('componentInformation/REQUEST_INFORMATION')
|
|
commit('componentInformation/REQUEST_INFORMATION')
|
|
|
return axios.get('/api/commodity/goods/page', { params })
|
|
return axios.get('/api/commodity/goods/page', { params })
|
|
|
.then(response => {
|
|
.then(response => {
|
|
|
|
|
+ console.log(response.data)
|
|
|
commit('componentInformation/GET_INFORMATION_SUCCESS', response.data)
|
|
commit('componentInformation/GET_INFORMATION_SUCCESS', response.data)
|
|
|
}, err => {
|
|
}, err => {
|
|
|
commit('componentInformation/GET_INFORMATION_FAILURE', err)
|
|
commit('componentInformation/GET_INFORMATION_FAILURE', err)
|
|
@@ -206,12 +207,11 @@ export const actions = {
|
|
|
return axios.get(`/api/product/brand/${id}`)
|
|
return axios.get(`/api/product/brand/${id}`)
|
|
|
.then(response => {
|
|
.then(response => {
|
|
|
let brand = response.data || {}
|
|
let brand = response.data || {}
|
|
|
|
|
+ console.log('loadBrandDetail', response.data !== null)
|
|
|
commit('brandDetail/GET_DETAIL_SUCCESS', response.data)
|
|
commit('brandDetail/GET_DETAIL_SUCCESS', response.data)
|
|
|
return Promise.all([
|
|
return Promise.all([
|
|
|
- loadBrandCategories({ commit }, { id: brand.id }),
|
|
|
|
|
- loadBrandComponent({ commit }, {count: 10, filter: { brandid: brand.id }, page: 1})
|
|
|
|
|
loadBrandCategories({ commit }, {id: brand.id}),
|
|
loadBrandCategories({ commit }, {id: brand.id}),
|
|
|
- loadBrandComponent({ commit }, {count: 10, filter: { brandid: brand.id }})
|
|
|
|
|
|
|
+ loadBrandComponent({ commit }, {count: 10, filter: { brandid: brand.id }, page: 1})
|
|
|
])
|
|
])
|
|
|
}, err => {
|
|
}, err => {
|
|
|
commit('brandDetail/GET_DETAIL_FAILURE', err)
|
|
commit('brandDetail/GET_DETAIL_FAILURE', err)
|
|
@@ -238,16 +238,6 @@ export const actions = {
|
|
|
commit('brandComponent/GET_COMPONENT_FAILURE', err)
|
|
commit('brandComponent/GET_COMPONENT_FAILURE', err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- // 获取品牌详情分页信息
|
|
|
|
|
- loadBrandPages ({commit}, params = {}) {
|
|
|
|
|
- commit('brandPages/REQUEST_PAGES', params)
|
|
|
|
|
- return axios.get('/api/product/PAGES/list', { params })
|
|
|
|
|
- .then(response => {
|
|
|
|
|
- commit('brandPages/GET__SUCCESS', response.data)
|
|
|
|
|
- }, err => {
|
|
|
|
|
- commit('brandPages/GET_COMPONENT_FAILURE', err)
|
|
|
|
|
- })
|
|
|
|
|
- },
|
|
|
|
|
// 获取帮助中心信息
|
|
// 获取帮助中心信息
|
|
|
loadHelpSnapsho ({ commit }, params = {}) {
|
|
loadHelpSnapsho ({ commit }, params = {}) {
|
|
|
commit('help/REQUEST_SNAPSHO')
|
|
commit('help/REQUEST_SNAPSHO')
|