MUI下拉刷新和上拉加载

 



    
    Hello MUI
    
    
    
    
    
    
    


{include file='public/head_normal'/}

**
 * 谁看过我
 */
public function hits(Request $request){
    if($request->isAjax()){
        $map['v.uid'] = $this->uid;
        $currentPage = $_POST['page'];
        $limit=5;
        $lst = Db::name('mycard_view v')
               ->join('mycard m','m.uid = v.vid')
               ->field('v.*,m.uname,m.company')
               ->where($map)
              ->limit(($currentPage - 1)*$limit, $limit)
             ->select();
        $this->assign('lst',$lst);
        $result= $this->fetch('ajaxhits');
        exit(json_encode($result));
    }else{
        $limit = 5;
        $map['uid'] = $this->uid;
        $count = Db::name('mycard_view')->where($map)->count('id');
        $totalPage = ceil($count/$limit);
        $this->assign('totalPage',$totalPage);
        $this->assign('page_title','谁看过我');
        $this->assign('arrow','arrow');
        $this->assign('backurl','/wapp/member/personal.html');
        $this->assign('nav3','munow');
        return view();
    }
}

 

 

 

 

你可能感兴趣的:(MUI,JQ,MU下拉刷新和上拉加载I,MUI)