获取产品分类详情指令

指令介绍

 

productCategoryInfo,根据分类uuid,获取产品分类详情。

 

方法参数

 

参数名称 参数说明 参数类型 是否必须
uuid 文章uuid String

 

使用方法

 

在页面里面,使用如下

<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>

  
  <@productCategoryInfo uuid='分类uuid'>
  	
  	<p>分类名称:</p>
  	<p>${productCategory.name}</p>
  	<p>子分类:</p>
    <#list productCategory.children as cate>
  		<p>  ${cate.name}</p>
  	</#list>
  
  </@productCategoryInfo>
</body>
</html>

 

分类名称:

${productCategory.name}

分类uuid

${productCategory.uuid}

2019-06-27 16:07:42
0