public function details($id = '')
{
$pub = new Pub();
if($id == ''){
$this->error('参数错误!');
}else{
$details = $pub->getPubOneByWhere('*', 'cases', 'id = '.$id,'');
$details['pc_images'] = explode(',', $details['pc_images']);
$details['wap_images'] = explode(',', $details['wap_images']);
$details['label'] = explode(',',$details['label']);
$prev = $pub->getPubOneByWhere('id,name', 'cases', 'id > '.$id, 'id asc');//$field, $table, $where, $limit, $order
$next = $pub->getPubOneByWhere('id,name', 'cases', 'id < '.$id, 'id desc');//$field, $table, $where, $limit, $order
$prev['status'] = isset($prev['id']) ? 'ok' : 'no';
$next['status'] = isset($next['id']) ? 'ok' : 'no';
$operates = db('operate')->where('id',$details['operate_id'])->find();
// echo '<pre>';
// var_dump($operate);die;
$this->assign([