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