📄 action_shop_tag.ftl
字号:
<#--
商品列表
参数说明:
id: 栏目id。
count:每页显示数量。(默认10)。
firstCount:从第几条数据开始。(默认0)。
length:标题长度。(默认20)。
picBorder:边框类别。【0:无边框;1:1px实线边框】(默认0)。
picBorderColor:边框颜色。(默认CCCCCC)。
picSize:图片大小。【1:列表尺寸;2:推荐尺寸;3:最小尺寸;4:详细图尺寸】(默认1)。
picWidth:人为控制图片宽度,像素为单位。(默认-1;不人为控制图片宽度)。
picHeight:人为控制图片高度,像素为单位。(默认-1;不人为控制图片高度)。
picFrameWidth:图片框占位宽度,像素为单位。(默认-1;不人为控制图片框宽度)。
picFrameHeight:图片框占位高度,像素为单位。(默认-1;不人为控制图片框高度)。
width:按百分比显示商品宽度。(默认25)(即每个图片占总宽度的25%,每行可放四张图片)。
height:商品的高度。(默认200)。
target:链接打开方式【0:在当前页打开;1:在新页面打开】(默认1)。
isCheckBox:是否有复选框【0:没有;1:有】(默认0)。
pageStyle:分页样式。【0:不分页;1:常规分页】(默认0)。
custom:自定义。主要用于片段模板自定义(默认0)。
listStyle*:文章显示样式(默认显示文章标题列表;1:标题列表;2:图文列表)。
topicId:专题id。(如果isTopic为true,则topicId为类别ID)。
isTopic:是否专题。【0:不是专题;1:是专题】。
orderBy:排列方式【0:按ID降序(后添加先显示);1:按更新时间降序(最新上市);2:按销量从高到低(热销);3:按价格从低到高;4:按价格从高到低;5:按上货时间从新到旧;6:按上货时间从旧到新】(默认0)。
searchKey:搜索内容,包括商品名、商品编号、商品型号、关键字、材质。(默认空)。
isRecommend:是否推荐【空:全部、0:否、1:是】(默认空)。
isSpecial:是否特价【空:全部、0:否、1:是】(默认空)。
isNewProduct:是否新品【空:全部、0:否、1:是】(默认空)。
priceStart:最小价格(默认空;不限制)。
priceEnd:最大价格(默认空;不限制)。
dayLimit:多少天内发布的商品(默认空;不限制)。
//attribute:商品性质【0:所有;1:推荐;2:特价;】(默认0)。
//bottomLine:标题底部是否有线条【0:无线条,1:有线条】。
//dateStyle:文章时间显示样式(默认显示完整时间;0:不显示日期时间;1:按"yy-MM-dd"样式显示日期,2:按"HH:mm:ss"样式显示时间,3:按"MM-dd"样式显示日期)。
-->
<#macro ProductList id=chnlId isTopic=0 pageNo=pageNo count=10 length=20 firstCount=0
picBorder=0 picBorderColor='CCCCCC' picSize=1 picWidth=-1 picHeight=-1 picFrameWidth=-1 picFrameHeight=-1
width=25 height=200 target=1 isCheckBox=0 pageStyle=0 custom=0
topicId=topicId searchKey=searchKey orderBy=orderBy
isRecommend=isRecommend isSpecial=isSpecial isNewProduct=isNewProduct
priceStart=priceStart priceEnd=priceEnd dayLimit=dayLimit
>
<@s.action name="ProductList" namespace="/tag/shop" executeResult="true"
chnlId=id isTopic=isTopic pageNo=pageNo countPerPage=count length=length firstCount=firstCount
picBorder=picBorder picBorderColor=picBorderColor picSize=picSize picWidth=picWidth picHeight=picHeight picFrameWidth=picFrameWidth picFrameHeight=picFrameHeight
width=width height=height target=target isCheckBox=isCheckBox pageStyle=pageStyle orderBy=orderBy custom=custom
topicId=topicId searchKey=searchKey orderBy=orderBy
isRecommend=isRecommend isSpecial=isSpecial isNewProduct=isNewProduct
priceStart=priceStart priceEnd=priceEnd dayLimit=dayLimit
/>
</#macro>
<#--
商城用户登录条
-->
<#macro ShopGuestLoginBar>
<@s.action name="UserLoginBar" namespace="/tag/shop" executeResult="true" />
</#macro>
<#--
商城用户登录框
-->
<#macro ShopGuestLoginFrame custom=0>
<@s.action name="UserLoginFrame" namespace="/tag/shop" executeResult="true" custom=custom/>
</#macro>
<#--
浏览过的商品
-->
<#macro ProductViewedListInner count=6>
<@s.action name="ProductViewedInner" namespace="/tag/shop" executeResult="false" countPerPage=count/>
<#list n_list as product>
<#nested product/>
</#list>
</#macro>
<#--
商品评论
-->
<#macro ShopCommentInner productId=product.id orderBy='1' isPage="0" pageNo=pageNo count=10 isLoop="1" >
<@s.action name="ShopCommentInner" namespace="/tag/shop" executeResult="false"
productId=productId orderBy=orderBy isPage=isPage pageNo=pageNo countPerPage=count/>
<#if isLoop=="1">
<#list n_pagination.list as comment>
<#nested comment/>
</#list>
<#else>
<#nested n_pagination/>
</#if>
</#macro>
<#--
相关商品
isNext:向前还是向后寻找。【0:向前;1:向后】(默认1)。
isSameCtg:是否在相同类别中寻找。【0:所有商品;1:同类商品】(默认1)。
-->
<#macro ProductRelativeInner productId=product.id isSameCtg=1 isNext=1 count=4>
<@s.action name="ProductRelativeInner" namespace="/tag/shop" executeResult="false"
productId=productId isSameCtg=isSameCtg isNext=isNext count=count/>
<#list n_list as product>
<#nested product/>
</#list>
</#macro>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -