| | |
| | | public function getCustomizePopup() |
| | | { |
| | | $LogicBanner = new LogicBanner(); |
| | | $list = $LogicBanner->getList(21); |
| | | $list = $LogicBanner->getList('20,21'); |
| | | if(!$list||$list['customizePop']==null||count($list['customizePop'])==0) |
| | | { |
| | | $this->success('获取成功',[]); |
| | |
| | | $user = $this->auth->getUser(); |
| | | $actInfo=new ActInfo(); |
| | | foreach ($list['customizePop'] as $vaule) { |
| | | $paraJson=json_encode($vaule->parameter_json); |
| | | $popupType=$paraJson['cmark']; |
| | | $paraJson=json_decode($vaule->note); |
| | | $isPop=false; |
| | | switch($popupType) |
| | | switch($paraJson->poptype) |
| | | { |
| | | case 'freebuy'://0元购弹窗 |
| | | $isPop=$actInfo->popupcus_freebuy($user); |
| | |
| | | } |
| | | if($isPop) |
| | | { |
| | | $this->success('获取成功',$vaule); |
| | | $this->success('获取成功',['haspop'=>true,'info'=>$vaule]); |
| | | break; |
| | | } |
| | | } |
| | | $this->success('获取成功',['haspop'=>false]); |
| | | } |
| | | |
| | | |