| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 3180 人关注过本帖
标题:求助,点击“加载更多”无效
只看楼主 加入收藏
webserr
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2014-9-27
结帖率:0
收藏
 问题点数:0 回复次数:0 
求助,点击“加载更多”无效
求助,点击“加载更多”无效
{if count($list)>4} 现在固定是显示5条,然后提示“加载更多”,但点“加载更多”没有反应,  
而且我想通过修改数字来默认显示更多条,但也无效,我设置了数字30,但是实际还是显示5条,但“加载更多”键就不显示了。

注:实际条数是>5条


程序代码:
{template wl_header}
<link href='{RES}css/member.css' rel='stylesheet' type='text/css' />
<div id="shop_page_contents">
<div id="cover_layer"></div>
    {template wl_menu}
     <ul id="member_nav">
        <li {if $_GPC['status']==0}class="cur"{/if}><a href="{php echo $this->createMobileUrl('wlmember',array('d'=>'list','status'=>0));}">待下单</a></li>
        <li {if $_GPC['status']==1}class="cur"{/if}><a href="{php echo $this->createMobileUrl('wlmember',array('d'=>'list','status'=>1));}">待确认</a></li>
        <li {if $_GPC['status']==2}class="cur"{/if}><a href="{php echo $this->createMobileUrl('wlmember',array('d'=>'list','status'=>2));}">已确认</a></li>
        <li {if $_GPC['status']==3}class="cur"{/if}><a href="{php echo $this->createMobileUrl('wlmember',array('d'=>'list','status'=>3));}">已完成</a></li>        
    </ul>
    {if $_GPC['d']=='list'||empty($_GPC['d'])}
    <div id="order_list">
        {loop $list $row}
        <div class="item">
            <h1>
                订单号:<a href="{php echo $this->createMobileUrl('wlmember',array('d'=>'detail','status'=>$row['status'],'orderid'=>$row['id']));}">{$row['ordersn']}</a>
                (<strong class="fc_red">¥{$row['totalprice']}</strong>)
            </h1>
            {loop $row['goods'] $row2}
            <div class="pro">
                <div class="img">
                <img src="{$row2['thumb']}"></div>
                <dl class="info">
                    <dd class="name"><a>{$row2['title']}</a></dd>
                    <dd>价格:¥{$row2['marketprice']}</dd>
                    <dd>数量:{$row2['total']}</dd>
                 </dl>
                <div class="clear"></div>
            </div>
            {/loop}
        </div>
        {/loop}
        {if count($list)>4}
         <a class="more"  href="javascript:;" readonly>加载更多</a>
        {/if}
    </div>
    <script type="text/javascript">
    
    </script>
    
    
    
    
    
    
    
    {/if}
    {if $_GPC['d']=='detail'}    
    <div id="order_detail">
            <div class="item">
            <ul>
                <li>订单号:{$order['ordersn']}</li>
                <li>订单时间: {php echo date('Y-m-d H:i:s',$order['createtime'])}</li>
                <li>订单状态: {if $order['status']==0}待确认{elseif $order['status']==1}已确认{elseif $order['status']==3}已完成{elseif $order['status']==-1}订单失效{/if}</li>
                <li>订单数量:<strong class="fc_red">{$order['totalnum']}</strong></li>
                <li>订单总价:<strong class="fc_red">¥{$order['totalprice']}</strong></li>
                <li>付款方式: {if $order['paytype']==1}余额支付{elseif $order['paytype']==2}在线支付{elseif $order['paytype']==3}现金支付{else}未知方式{/if}{if $order['ispay']==1}<strong class="fc_red">【已付款】</strong>{else}【未支付】{/if}</li>                
                <li>订单类型: {if $order['order_type']==3}自提{elseif $order['order_type']==2}店内就餐【桌号:{$order['nums']}】{else}外卖外送{/if}</li>
                {if  $order['order_type']==1}<li>配送状态: {if $order['sendstatus']==1}<strong class="fc_red">已经配送</strong>{else}未配送{/if} </li>{/if}
                 {if !empty($order['remark'])}<li>订单备注: {$order['remark']}</li>{/if}
            </ul>
        </div>
        <div class="item">
            <ul>
                <li>姓名: {$order['guest_name']}</li>
                <li>手机:{$order['tel']}</li>
                {if !empty($order['guest_address'])}<li>地址:{$order['guest_address']}</li>{/if}
            </ul>
        </div>

        <div class="item">
            {loop $row $row2}
            <div class="pro">
                <div class="img">
                <img src="{$row2['thumb']}"></div>
                <dl class="info">
                    <dd class="name"><a>{$row2['title']}</a></dd>
                    <dd>价格:¥{$row2['marketprice']}</dd>
                    <dd>数量:{$row2['total']}</dd>
                 </dl>
                <div class="clear"></div>
            </div>
            {/loop}
            <div class="total_price">产品总价:<span>¥{$order['totalprice']}</span></div>            
        </div>
        {if $status==0&&$order['paytype']!=3}<div class="payment"><a href="{php echo $this->createMobileUrl('wlorder', array('d' => payment,'OrderId'=>$order['id']));}">付款</a></div>{/if}
    </div>
    {/if}
    
</div>
<link rel="stylesheet" type="text/css" href="{RES}css/wei_canyin.css?2014-02-26-2" media="all" />
<div class="center">

 <div id="footer_menu" class="footer footer_menu">
        <ul class="clear">
            <li><a href="/mobile.php?act=channel&name=index&weid=1" ><span class="icons icons_4"></span><label>店铺首页</label></a></li>
            <li><a href="{php echo  $this->createMobileUrl('wlindex')}"><span class="icons icons_2"></span><label>开始选购</label></a></li>
            <li><a href="{php echo  $this->createMobileUrl('wlgenius')}" {if $_GPC['do']=='wlgenius'}class="onactive"{/if}><span class="icons icons_1"></span><label>掌柜推荐</label></a></li>        
            {if $_GPC['do']=='wlmember'}
            <li><a href="javascript:;" class="onactive" ><span class="icons icons_3"></span><label>我的订单</label></a></li>
            {else}
            <li><a href="{php echo  $this->createMobileUrl('wlmember')}" ><span class="icons icons_3"></span><label>我的订单</label></a></li>
            {/if}
                
            <li><a href="{php echo  $this->createMobileUrl('wlcart')}" id="my_menu"><span class="icons icons_5"><label id="num" class="num">{php echo intval($totalnum)}</label></span></a></li>
        </ul>
        </div>
        <script>
            var footer = document.getElementById("footer_menu");
            var evtObj = {
                handleEvent: function(evt){
                    if("A" == evt.target.tagName){
                        evt.target.classList.toggle("on");
                    }
                }
            }
            footer.addEventListener("touchstart", evtObj, false);
            footer.addEventListener("touchend", evtObj, false);
        </script>
    </div>
搜索更多相关主题的帖子: if div status class order 
2018-12-01 15:15
快速回复:求助,点击“加载更多”无效
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.040575 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved