$pagesize, 'offset' => $offset ); $url = env('APP_API_URL')."/bonus_list"; $res = curl_request($url,$postdata,'GET'); $data['list'] = $res['data']['list']; $data['totalpage'] = ceil($res['data']['count']/$pagesize); if(isset($_REQUEST['page_ajax']) && $_REQUEST['page_ajax']==1) { $html = ''; if($res['data']['list']) { foreach($res['data']['list'] as $k => $v) { $html .= '
'.$v['goods']['title'].'
'; $html .= '¥'.$v['goods']['price'].'
'; $html .= '删除
'; $html .= '