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} * 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} * 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 } ) }