review 秒杀活动

This commit is contained in:
YunaiV
2023-07-02 21:46:04 +08:00
parent a6fc5f775a
commit b1ce2672e4
6 changed files with 11 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ import SkuList from './SkuList.vue'
import { Spu } from '@/api/mall/product/spu'
// TODO @puhui999Properties 改成 Property 更合适?
interface Properties {
id: number
name: string
@@ -30,8 +31,10 @@ interface RuleConfig {
}
/**
* 商品通用函数
* 获得商品的规格列表
*
* @param spu
* @return Property 规格列表
*/
const getPropertyList = (spu: Spu): Properties[] => {
// 直接拿返回的 skus 属性逆向生成出 propertyList