import requst from './requst.js'; import store from '@/store/index.js' // 查询轮播位置 export function slidePosition(data) { return requst.get("/api/common/slide-positions"); } // 查询购物车信息 export function getCartInfo(){ return requst.post('/api/index/indexGetShoppingCartInformation').then(res=>{ if(res.code==0){ console.log(res,'首页购物车信息') let cartObj = res.data; store.commit('setNum', cartObj.count) store.commit('setPrice', cartObj.price) } }) }