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.
shop-app/common/api/goods.js

28 lines
743 B

3 years ago
/*
* @Author: ch
* @Date: 2022-04-02 09:54:53
* @LastEditors: ch
* @LastEditTime: 2022-04-06 10:15:32
3 years ago
* @Description: file content
*/
import {ToAsyncAwait, MsbRequest} from '@/common/utils';
const BASE_URL = '/mall/product';
3 years ago
/**
* 获取商品瀑布流
* @param {*} params
*/
export const ApiGetGoodsList = (params) =>
ToAsyncAwait(MsbRequest.get(`${BASE_URL}/app/product/page`, params));
3 years ago
/**
* 获取商品详情
* @param {*} params
*/
export const ApiGetGoodsDetail = (params) =>
ToAsyncAwait(MsbRequest.get(`${BASE_URL}/app/product/${params.id}`));
3 years ago
/**
* 获取商品sku信息
* @param {*} productId
*/
export const ApiGetGoodsSkus = (params) =>
ToAsyncAwait(MsbRequest.get(`${BASE_URL}/app/product/sku`,params));