<title>{$eyou.field.seo_title}</title> <meta name="description" content="{$eyou.field.seo_description}" /> <meta name="keywords" content="{$eyou.field.seo_keywords}" />
<!--購物車組件start--> {eyou:sppurchase id='field' currentstyle='btn-danger'} <!--價(jià)格標(biāo)簽--> <div class="ey-price"><span>¥{$field.users_price}</span></div> <!--商品參數(shù)--> {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} <!--商品數(shù)量選擇--> <div class="ey-number"> <label>數(shù)量</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> <!--庫存數(shù)量,后臺可控制是否顯示--> <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> <!--別漏掉這個(gè)--> {$field.hidden} {/eyou:sppurchase} <!--購物車組件end-->
組件樣式修改路徑:public/static/common/css/shopcart.css,記得先備份。
{$eyou.field.title}
{$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.field.pageurl}
也就是本頁文章地址,還有一個(gè){$eyou.field.arcurl}也可以達(dá)到同樣效果。
{$eyou.field.author}
{eyou:downcount /}
{$eyou.field.downcount}也可以
{eyou:arcclick /}
{$eyou.field.seo_description}
{$eyou.field.litpic}
用法:<img src="{$eyou.field.litpic}">,非編輯器上傳圖片
{eyou:notempty name='$eyou.field.tags'} {eyou:tag getall='0'} <a href="{$field.link}" {$field.target}>{$field.tag}</a> {/eyou:tag} {/eyou:notempty}
{$eyou.field.content}
{eyou:likearticle row='4' orderby='aid' channelid='4'} <a href='{$field.arcurl}'>{$field.title}</a> {/eyou:likearticle}
需購買相關(guān)插件
channelid='' 默認(rèn)全部模型的相關(guān)文檔,可以手工指定多個(gè)模型ID,用,分開,比如:channelid='1,2,3'
mytypeid='' 手工指定要限定的欄目id,如果只指定一個(gè)欄目ID表示包括所有子級欄目,如果指定多個(gè)欄目ID用,分開,表示不包含子級欄目
limit='0,12' 調(diào)用行數(shù),默認(rèn)12條,(如:limit='2,12' 表示排除前面2條,列出后面12條)
titlelen='100' 標(biāo)題長度
infolen='160' 表示內(nèi)容簡介長度
row='100' 條數(shù)
{eyou:prenext get='pre'} <a href="{$field.arcurl}" title="{$field.title}">上一篇 : {$field.title}</a> {eyou:else /} 上一篇:沒有了 {/eyou:prenext} {eyou:prenext get='next'} <a href="{$field.arcurl}" title="{$field.title}">{$field.title}</a> {eyou:else /} 下一篇:沒有了 {/eyou:prenext}
{$eyou.field.typeurl}
{$eyou.field.typename}
可結(jié)合{$eyou.field.typeurl}鏈接
{$eyou.users.nickname}
{$eyou.field.buyurl|htmlspecialchars_decode=###}
buyurl為你的自定義字D名稱
{eyou:if condition='($eyou.field.aid == $field.aid)'}class="cur"{/eyou:if}
{eyou:memberinfos mid='$eyou.field.users_id' id='users' addfields='para_3'} <img src="{$users.head_pic}" class="userimg radius-circle" /> <p class="username text-main margin-top margin-bottom">{$users.nickname}</p> {eyou:if condition="$users.para_3 !=='0'"} <p class="usedescription text-gray height-small">{$users.para_3}</p> {/eyou:if} {$users.hidden} {/eyou:memberinfos}
addfields='自定義會員字鍛ID'
{eyou:volist name="$eyou.field.image_list"} {eq name='$i' value='$__LIST__|count=###'}{$i}{/eq} {/eyou:volist}
<meta name="keywords" content="{eyou:notempty name="$eyou.field.seo_keywords"} {$eyou.field.seo_keywords} {eyou:else /} {eyou:tag getall='0'}{$field.tag},{/eyou:tag}{/eyou:notempty} " />
{eyou:arclist row='10'} <a {eyou:if condition='($eyou.field.aid == $field.aid)'}class="active"{/eyou:if} href="{$field.arcurl}" title="{$field.title}">{$field.title}</a> {/eyou:arclist}
eyou.field.aid指當(dāng)前內(nèi)容頁的ID
{$eyou.field.aid}
{eyou:volist name="$eyou.field.image_list"} <img src="{$field.image_url}" class="img-responsive" alt="{$field.intro}"/> {/eyou:volist}
{eyou:if condition='($eyou.field.attrlist_id > 0)'} {eyou:attribute type='newattr' attrid='$eyou.field.attrlist_id'} <li>{$attr.name}:{$attr.value}</li> {/eyou:attribute} {/eyou:if}
注意:這個(gè)只在商品商城中心參數(shù)才有效。
{eyou:type typeid="$eyou.field.parent_id"} <a href="{$field.typeurl}">{$field.typename}</a> {/eyou:type}
<a href="{$eyou.field.typeid|gettoptype=###,'typeurl'}"> {$eyou.field.typeid|gettoptype=###,'typename'}</a>
{eyou:volist name="$eyou.field.image_list" row='1'} <img src="{$field.image_url}"> {/eyou:volist}
row='1',也可用limit='0,1',用limit還能控制到調(diào)用圖集第幾張。