html($params); break; default : $ret = ''; } return $ret; } else { return ''; } } } /** * 视图 * @author Devil * @blog http://gong.gg/ * @version 1.0.0 * @datetime 2019-02-06T16:16:34+0800 * @param [array] $params [输入参数] */ public function html($params = []) { // 当前模块/控制器/方法 $module_name = strtolower(request()->module()); $controller_name = strtolower(request()->controller()); $action_name = strtolower(request()->action()); // 获取应用数据 $ret = PluginsService::PluginsData('commononlineservice', ['images']); // html拼接 $html = '
点击这里给我发消息 '; $online_service_li_count++; } } } // 电话 $tel_html = ''; if(!empty($ret['data']['tel'])) { $tel_html .= '
  • 电话:'.$ret['data']['tel'].'
  • '; $online_service_li_count++; } // 背景色 $bg_color = empty($ret['data']['bg_color']) ? '' : 'background:'.$ret['data']['bg_color'].';'; // 内容css $content_css = $bg_color; if($online_service_li_count <= 2) { $content_css .= 'border-radius:0;'; } // 组装 $content = '
    展开 收缩

    '.$ret['data']['title'].'

      '.$online_service_html.$tel_html.'
    '; } else { $content = $ret['msg']; } $html .= '>'; $html .= $content; $html .= '
    '; return $html; } } ?>