巅峰跑分APP系统开发源代码【伍子胥:l47-l8lO-5ll3可微】:
本文使用的是react 16.8.1版,react-dom 16.8.1版,react-redux 6.0.1版,redux 4.0.1版。每个模块功能如下:
react,提供React.createContext方法;
redux,核心模块,提供createStore方法、dispatch方法、subscribe方法、getState方法、combineReducer方法;
react-redux,redux与react的嫁接,提供Provider组件和connect方法,其中Provider组件是数据生产者,connect方法是数据消费者。
pc_base::load_sys_class(‘format’,”,0);
$show_header=”;
$model_cache=getcache(‘model’,’commons’);
if(!isset($_GET[‘modelid’])){
showmessage(L(‘please_select_modelid’));
}
else{
$page=intval($_GET[‘page’]);
$modelid=intval($_GET[‘modelid’]);
$this->db->set_model($modelid);
$where=”;
if($_GET[‘catid’]){
$catid=intval($_GET[‘catid’]);
$where.=’catid=\”.$catid.”’;
}
$where.=$where?’AND status=99′:’status=99′;
if(isset($_GET[‘keywords’])){
$keywords=trim($_GET[‘keywords’]);
$field=$_GET[‘field’];
if(in_array($field,array(‘id’,’title’,’keywords’,’description’))){
if($field==’id’){
$where.=’ANDid
=\”.$keywords.”’;
}
else{
$where.=’AND'.$field.'
like\’%’.$keywords.’%”;
}
}
}
}
发表回复