mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-11-04 12:18:43 +08:00 
			
		
		
		
	review 秒杀活动
This commit is contained in:
		@@ -7,6 +7,7 @@ import SkuList from './SkuList.vue'
 | 
			
		||||
 | 
			
		||||
import { Spu } from '@/api/mall/product/spu'
 | 
			
		||||
 | 
			
		||||
// TODO @puhui999:Properties 改成 Property 更合适?
 | 
			
		||||
interface Properties {
 | 
			
		||||
  id: number
 | 
			
		||||
  name: string
 | 
			
		||||
@@ -30,8 +31,10 @@ interface RuleConfig {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 *  商品通用函数
 | 
			
		||||
 * 获得商品的规格列表
 | 
			
		||||
 *
 | 
			
		||||
 * @param spu
 | 
			
		||||
 * @return Property 规格列表
 | 
			
		||||
 */
 | 
			
		||||
const getPropertyList = (spu: Spu): Properties[] => {
 | 
			
		||||
  //  直接拿返回的 skus 属性逆向生成出 propertyList
 | 
			
		||||
 
 | 
			
		||||
@@ -437,6 +437,7 @@ const categoryList = ref() // 分类树
 | 
			
		||||
const categoryString = (categoryId) => {
 | 
			
		||||
  return treeToString(categoryList.value, categoryId)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * 校验所选是否为二级及以下节点
 | 
			
		||||
 */
 | 
			
		||||
@@ -446,6 +447,7 @@ const nodeClick = () => {
 | 
			
		||||
    message.warning('必须选择二级及以下节点!!')
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/** 初始化 **/
 | 
			
		||||
onMounted(async () => {
 | 
			
		||||
  await getTabsCount()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user