|
...
|
...
|
@@ -11,6 +11,7 @@ namespace App\Http\Logic\Bside\BTemplate; |
|
|
|
|
|
|
|
use App\Http\Logic\Bside\BaseLogic;
|
|
|
|
use App\Models\Project\PageSetting;
|
|
|
|
use App\Models\Service\Service as ServiceSettingModel;
|
|
|
|
use App\Models\Template\BTemplate;
|
|
|
|
use App\Models\Template\BTemplateCommon;
|
|
|
|
use App\Models\Template\BTemplateMain;
|
|
...
|
...
|
@@ -86,6 +87,7 @@ class VisualizationLogic extends BaseLogic |
|
|
|
//拼接数据
|
|
|
|
$html = $commonInfo['head_css'].$mainData['main_css'].$commonInfo['footer_css'].$commonInfo['other'].
|
|
|
|
$commonInfo['head_html'].$mainData['main_html'].$commonInfo['footer_html'];
|
|
|
|
$html = $this->getHeadFooter($html);
|
|
|
|
return $html;
|
|
|
|
}
|
|
|
|
}else{
|
|
...
|
...
|
@@ -99,6 +101,7 @@ class VisualizationLogic extends BaseLogic |
|
|
|
$commonInfo = $this->getCommonPage($this->param['source'],$this->param['source_id'],$settingInfo['template_id']);
|
|
|
|
$html = $commonInfo['head_css'].$TemplateInfo['main_css'].$commonInfo['footer_css'].$commonInfo['other'].
|
|
|
|
$commonInfo['head_html'].$TemplateInfo['main_html'].$commonInfo['footer_html'];
|
|
|
|
$html = $this->getHeadFooter($html);
|
|
|
|
return $html;
|
|
|
|
}else{
|
|
|
|
return $TemplateInfo['html'];
|
|
...
|
...
|
@@ -107,6 +110,29 @@ class VisualizationLogic extends BaseLogic |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :拼接获取公共头部底部
|
|
|
|
* @name :getHeadFooter
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/7/21 17:22
|
|
|
|
*/
|
|
|
|
public function getHeadFooter($html){
|
|
|
|
//获取公共主题头部底部
|
|
|
|
$serviceSettingModel = new ServiceSettingModel();
|
|
|
|
$list = $serviceSettingModel->list(['type'=>2],'created_at');
|
|
|
|
//拼接html
|
|
|
|
foreach ($list as $v){
|
|
|
|
if($v['key'] == 'head'){
|
|
|
|
$html = $v['values'].$html;
|
|
|
|
}
|
|
|
|
if($v['key'] == 'footer'){
|
|
|
|
$html = $html.$v['values'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $html;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :获取可视化装修记录
|
|
|
|
* @name :getWebTemplate
|
|
|
|
* @author :lyh
|
...
|
...
|
|