码迷,mamicode.com
首页 > 其他好文 > 详细

价格判断

时间:2016-08-21 18:17:17      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:

<div class="d-p-cont" id="xllDetailPrice">
    @if( !empty($aDetail[‘aPrice‘]) && is_array($aDetail[‘aPrice‘]) )
    <?php $i=0; ?>
        @foreach( $aDetail[‘aPrice‘] as $key => $price )
            <p class="p-cont">
                <span>{{ $key }}</span>
                @if( 0 == $i )
                    @if(!empty($price))
                        @if(isset($price[‘price‘]))
                        <span style="margin-right:5px;"><span class="spe" style="margin-left:0;margin-right:0;">{{ $price[‘price‘] }}</span>元/平</span>
                            @if(isset($price[‘tprice‘]))
                            <span>{{ $price[‘tprice‘] }}万/套起</span>
                            @endif
                        @else
                            @if(isset($price[‘tprice‘]))
                            <span><span class="spe" style="margin-left:0;margin-right:0;">{{ $price[‘tprice‘] }}</span>万/套起</span>
                            @endif
                        @endif
                    @else
                    <span class="spe">售价待定</span>
                    @endif
                <a class="listrend" id="detailPriceUrl" target="_blank" style="display:none !important" href="{{$aPublicLoupanInfo[‘aNav‘][‘price‘][‘sUrl‘]}}"><em class="addr-icon" title="价格走势"></em></a>
                @else
                    @if(!empty($price))
                        @if(isset($price[‘price‘]))
                        <span style="margin-right:5px;">{{ $price[‘price‘] }}元/平</span>
                        @endif
                        @if(isset($price[‘tprice‘]))
                        <span>{{ $price[‘tprice‘] }}万/套起</span>
                        @endif
                    @else
                        <em style="margin-right:5px;">售价待定</em>
                    @endif
                @endif
            </p>
            <?php $i++; ?>
        @endforeach
    @else
        <p class="p-cont"><span class="spe xllWaitPrice">售价待定</span></p>
    @endif
</div>

 

价格判断

标签:

原文地址:http://www.cnblogs.com/camille666/p/php_template_engine_blade_case1.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!