<title>{$eyou.field.seo_title}</title> <meta name="description" content="{$eyou.field.seo_description}" /> <meta name="keywords" content="{$eyou.field.seo_keywords}" />
<title>{$eyou.field.seo_title}</title> <meta name="keywords" content="{$eyou.field.seo_keywords}" /> <meta name="description" content="{$eyou.field.seo_description}" />
<title>{eyou:global name='web_title' /}_{eyou:global name='web_name' /}</title> <meta name="description" content="{eyou:global name='web_description' /}" /> <meta name="keywords" content="{eyou:global name='web_keywords' /}" />
{eyou:global name='web_name' /}
<!--购物车组件start--> {eyou:sppurchase id='field' currentstyle='btn-danger'} <!--价格标签--> <div class="ey-price"><span>¥{$field.users_price}</span></div> <!--商品参数--> {eyou:volist name="$field.ReturnData" id='field2'} <div class="row"> <label class="col-sm-7">{$field2.spec_name}</label> <div class="col-sm-10"> {eyou:volist name="$field2.spec_value" id='field3'} <a href="JavaScript:void(0);" {$field3.SpecData} class="btn {$field3.SpecClass}">{$field3.spec_value}</a> {/eyou:volist} </div> </div> {/eyou:volist} <!--商品数量选择--> <div class="ey-number"> <label>数量</label> <div class="btn-input"> <button class="layui-btn" {$field.ReduceQuantity}>-</button> <input type="text" class="layui-input {$field.UpdateQuantity}> <button class="layui-btn" {$field.IncreaseQuantity}>+</button> </div> </div> <!--库存数量,后台可控制是否显示--> <span {$field.stock_show}>库存量:{$field.stock_count} 件</span> <!--购买和加入购物车按钮--> <div class="ey-buyaction"> <a class="ey-joinin" href="JavaScript:void(0);" {$field.ShopAddCart}>加入购物车</a> <a class="ey-joinbuy" href="JavaScript:void(0);" {$field.BuyNow}>立即购买</a> </div> <!--别漏掉这个--> {$field.hidden} {/eyou:sppurchase} <!--购物车组件end-->
组件样式修改路径:public/static/common/css/shopcart.css,记得先备份。
{eyou:channel type="first"} {$field.typename}<!-- 二级分类名称 --> {eyou:arclist typeid='$field.typeid' titlelen='68' row='9'} <a href="{$field.arcurl}">{$field.title}</a> {/eyou:arclist} {/eyou:channel}
<li class="{eyou:eq name='$Request.param.m' value='Index'}hover{/eyou:eq}"> <a href="{eyou:global name='web_cmsurl' /}">首页</a> </li> {eyou:channel type="top" id="field" currentstyle="active"} <li class="{$field.currentstyle}"> <a href="{$field.typeurl}">{$field.typename}</a></li> {/eyou:channel
{eyou:channel type="first"} <h2>{$field.typename}</h2> <!-- 这是二级分类名称 --> {eyou:notempty name="$field.children"} {eyou:channel name="$field.children" id="field2"} <h3>{$field2.typename}{$field2.typeid}</h3> <!-- 这是三级分类名称 --> {eyou:arclist typeid='$field2.typeid' titlelen='10' id="field3" addfields='content'} <!-- 以下是三级分类下的文章 --> <a href="{$field3.arcurl}"> <img src="{$field3.litpic}" alt="{$field3.title}">{$field3.title}</a > {/eyou:arclist} {/eyou:channel} {/eyou:notempty} {/eyou:channel}
{$eyou.field.title}
{eyou:list titlelen='30' infolen='10' pagesize='20'} <a href='{$field.arcurl}'>{$field.title}</a> <span>{$field.seo_description}</span> {/eyou:list}
titlelen='30' 标题字数
pagesize='20' 多少条为一页
infolen='10' 描述{$field.seo_description}的字数
{eyou:channel type="first" row="60" id="field" currentstyle="hover"} <li class="{$field.currentstyle}"><a href="{$field.typeurl}">{$field.typename}</a> {eyou:notempty name="$field.children"} <ul class="二级"> eyou:channel name="$field.children" row="100" id="field2"} <li><a href="{$field2.typeurl}">{$field2.typename}</a> {eyou:notempty name="$field2.children"} <ul class=" 三级"> {eyou:channel name="$field2.children" row="100" id="field3"} <li><a href="{$field2.typeurl}">{$field3.typename}</a> </li> {/eyou:channel} </ul> {/eyou:notempty} </li> {/eyou:channel} </ul> {/eyou:notempty} </li> {/eyou:channel}
{eyou:channel type="first" id="field" currentstyle="hover"} <ul class="一级"> <li class="{$field.currentstyle}"><a href="{$field.typeurl}">{$field.typename}</a> <!--一级名称 --> {eyou:notempty name="$field.children"} <ul class="二级"> eyou:channel name="$field.children" row="100" id="field2"} <li><a href="{$field2.typeurl}">{$field2.typename}</a><li> {/eyou:channel} </ul> {/eyou:notempty} </li> </ul> {/eyou:channel}
{eyou:channel id="field" currentstyle="active"} <li class="{$field.currentstyle}"> <a href="{$field.typeurl}">{$field.typename}</a></li> {/eyou:channel
<li class="{eyou:eq name='$Request.param.m' value='Index'}hover{/eyou:eq}"> <a href="{eyou:global name='web_cmsurl' /}">首页</a> </li> {eyou:channel type="top" row="60" id="field" currentstyle="hover"} <li class="{$field.currentstyle}"><a href="{$field.typeurl}">{$field.typename}</a> {eyou:notempty name="$field.children"} <ul class="subnav"> eyou:channel name="$field.children" row="100" id="field2"} <li><a href="{$field2.typeurl}">{$field2.typename}</a></li> {/eyou:channel} </ul> {/eyou:notempty} </li> {/eyou:channel}
{$eyou.field.update_time|MyDate='Y-m-d',###}
{$eyou.field.update_time|MyDate='Y-m-d H:i:s',###}
{$eyou.field.update_time|MyDate='Y-m-d',###}
{$eyou.field.add_time|MyDate='Y-m-d H:i:s',###}
{$eyou.field.add_time|MyDate='Y-m-d H:i:s',###} 效果:2018-05-20 13:14:00
{$field.update_time|MyDate='Y-m-d',###} 效果:2018-05-20
{eyou:include file="header.htm" /}
<li class="{eyou:eq name='$Request.param.m' value='Index'}hover{/eyou:eq}"> <a href="{eyou:global name='web_cmsurl' /}">首页</a></li> {eyou:channel type="top" row="60" id="field" currentstyle="hover"} <li class="{$field.currentstyle}"><a href="{$field.typeurl}">{$field.typename}</a> {eyou:notempty name="$field.children"} <ul class="subnav"> eyou:channel name="$field.children" row="100" id="field2"} <li><a href="{$field2.typeurl}">{$field2.typename}</a> {eyou:notempty name="$field2.children"} <ul class="subnav2"> {eyou:channel name="$field2.children" row="100" id="field3"} <li><a href="{$field2.typeurl}">{$field3.typename}</a> </li> {/eyou:channel} </ul> {/eyou:notempty} </li> {/eyou:channel} </ul> {/eyou:notempty} </li> {/eyou:channel}
{eyou:global name='web_basehost' /}
{eyou:pagelist listitem='index,pre,pageno,next,end,info' listsize=‘2’ /}
listsize=2 表示 [1][2][3][4][5] 这些项的长度 - 1,再除以2得出的结果值
listitem='index,pre,pageno,next,end' 表示页码样式,可以把下面的值叠加
index 首页
pre 上一页
pageno 页码
next 下一页
end 末页
info 共N页 N条
加技术微信沟通更方便