You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.5 KiB
68 lines
1.5 KiB
import http from '@/utils/http/index.js'
|
|
|
|
/**
|
|
* 获取店铺列表
|
|
*/
|
|
export function getStoreList(data = {}) {
|
|
return http.get({
|
|
url: '/base-paper-trading/search/store/page',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取店铺信息
|
|
* @param {object} data 参数
|
|
* @returns {Promise<object[]>}
|
|
* swagger:http://api-ops-yyt-test.qniao.cn/base-paper-trading/swagger-ui/index.html?urls.primaryName=CustomerApi#/
|
|
*/
|
|
export const getCustomer = (data = {}) => {
|
|
return http.get({
|
|
url: '/base-paper-trading/get/store-detail/for/customer',
|
|
data
|
|
})
|
|
}
|
|
/**
|
|
* 获取店铺纸品列表
|
|
* @param {object} data 参数
|
|
* @returns {Promise<object[]>}
|
|
* swagger: http://api-ops-yyt-test.qniao.cn//base-paper-trading/swagger-ui/index.html?urls.primaryName=CustomerApi#/%E5%95%86%E5%93%81%E7%AE%A1%E7%90%86/getStoreProductListForCustomerUsingGET
|
|
*/
|
|
export const getPaperList = (data = {}) => {
|
|
return http.get({
|
|
url: '/base-paper-trading/get/store/product-list/for/customer',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 获取购物车列表
|
|
export function getShoppingCarList(data) {
|
|
return http.get(
|
|
{
|
|
url: '/base-paper-trading/get/shopping-car-list',
|
|
data
|
|
},
|
|
{
|
|
hideLoading: true
|
|
}
|
|
)
|
|
}
|
|
// 移除购物车
|
|
export function removeShoppingCar(data) {
|
|
return http.post({
|
|
url: '/base-paper-trading/delete/shopping-car',
|
|
data
|
|
})
|
|
}
|
|
// 购物车结算
|
|
export function closePaperReserve(data) {
|
|
return http.post(
|
|
{
|
|
url: '/base-paper-trading/shopping/trolley/buyer/paper/reserve',
|
|
data
|
|
},
|
|
{
|
|
isEncrypt: true
|
|
}
|
|
)
|
|
}
|