15 lines
376 B
JavaScript
15 lines
376 B
JavaScript
import requst from './requst.js';
|
|
import store from '@/store/index.js'
|
|
// 查询轮播位置
|
|
export function slidePosition(data) {
|
|
return requst.get("/api/common/slide-positions");
|
|
}
|
|
|
|
// 查询购物车数量
|
|
export function getCartNum(){
|
|
return requst.get('/api/order/shopping-cart-count').then(res=>{
|
|
if(res.code==0){
|
|
store.commit('setNum', res.data.count)
|
|
}
|
|
})
|
|
} |