|
|
@@ -127,7 +127,7 @@ export const actions = {
|
|
|
// 获取轮播配置
|
|
|
loadBanners({ commit }, params = {}) {
|
|
|
commit('carousel/REQUEST_BANNER')
|
|
|
- return axios.get('/api/carousel/' + params.type + '%20' + (params.type === 'home' ? 'page' : 'zone') + '%20banner')
|
|
|
+ return axios.get(`/cmsApi?method=queryContentPage&module=${params.type}&orderBy=order_number%20ASC`)
|
|
|
.then(response => {
|
|
|
commit('carousel/GET_BANNER_SUCCESS', response.data)
|
|
|
}, err => {
|
|
|
@@ -144,6 +144,56 @@ export const actions = {
|
|
|
commit('floor/GET_NEWLIST_FAILURE', err)
|
|
|
})
|
|
|
},
|
|
|
+ // 获取楼层配置f1
|
|
|
+ loadNewFloorsF1({ commit }) {
|
|
|
+ commit('floor/REQUEST_LISTF1')
|
|
|
+ return axios.get(`/cmsApi?method=queryContentPage&module=home_floor_f1&orderBy=order_number%20ASC`)
|
|
|
+ .then(response => {
|
|
|
+ commit('floor/GET_LIST_SUCCESSF1', response.data)
|
|
|
+ }, err => {
|
|
|
+ commit('floor/GET_LIST_FAILUREF1', err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 获取楼层配置f2
|
|
|
+ loadNewFloorsF2({ commit }) {
|
|
|
+ commit('floor/REQUEST_LISTF2')
|
|
|
+ return axios.get(`/cmsApi?method=queryContentPage&module=home_floor_f2&orderBy=order_number%20ASC`)
|
|
|
+ .then(response => {
|
|
|
+ commit('floor/GET_LIST_SUCCESSF2', response.data)
|
|
|
+ }, err => {
|
|
|
+ commit('floor/GET_LIST_FAILUREF2', err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 获取楼层配置f3
|
|
|
+ loadNewFloorsF3({ commit }) {
|
|
|
+ commit('floor/REQUEST_LISTF3')
|
|
|
+ return axios.get(`/cmsApi?method=queryContentPage&module=home_floor_f3&orderBy=order_number%20ASC`)
|
|
|
+ .then(response => {
|
|
|
+ commit('floor/GET_LIST_SUCCESSF3', response.data)
|
|
|
+ }, err => {
|
|
|
+ commit('floor/GET_LIST_FAILUREF3', err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 获取楼层配置f4
|
|
|
+ loadNewFloorsF4({ commit }) {
|
|
|
+ commit('floor/REQUEST_LISTF4')
|
|
|
+ return axios.get(`/cmsApi?method=queryContentPage&module=home_floor_f4&orderBy=order_number%20ASC`)
|
|
|
+ .then(response => {
|
|
|
+ commit('floor/GET_LIST_SUCCESSF4', response.data)
|
|
|
+ }, err => {
|
|
|
+ commit('floor/GET_LIST_FAILUREF4', err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 获取楼层配置f5
|
|
|
+ loadNewFloorsF5({ commit }) {
|
|
|
+ commit('floor/REQUEST_LISTF5')
|
|
|
+ return axios.get(`/cmsApi?method=queryContentPage&module=home_floor_f5&orderBy=order_number%20ASC`)
|
|
|
+ .then(response => {
|
|
|
+ commit('floor/GET_LIST_SUCCESSF5', response.data)
|
|
|
+ }, err => {
|
|
|
+ commit('floor/GET_LIST_FAILUREF5', err)
|
|
|
+ })
|
|
|
+ },
|
|
|
// 获取子器件类目
|
|
|
loadProductKinds({ commit }, params = {}) {
|
|
|
let id = params.id
|