|
...
|
...
|
@@ -125,7 +125,7 @@ class BTemplateLogic extends BaseLogic |
|
|
|
$this->fail('请先装修首页');
|
|
|
|
}
|
|
|
|
$html = preg_replace('/<style id="vvvebjs-styles">(.*?)<\/style>/s', "<style id='vvvebjs-styles'></style>", $homeTemplateInfo['html']);
|
|
|
|
$html = preg_replace('/<main\b[^>]*>(.*?)<\/main>/s', "<main></main>", $html);
|
|
|
|
$html = preg_replace('/<main\b[^>]*>(.*?)<\/main>/s', "<main>{$this->getProductModule()}</main>", $html);
|
|
|
|
}else{
|
|
|
|
$homeTemplateInfo = $this->webTemplateInfo($info['template_id'],1,0);
|
|
|
|
if($homeTemplateInfo === false){
|
|
...
|
...
|
@@ -338,4 +338,18 @@ class BTemplateLogic extends BaseLogic |
|
|
|
//返回
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :默认产品模块
|
|
|
|
* @name :getProductModule
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/7/27 15:08
|
|
|
|
*/
|
|
|
|
public function getProductModule(){
|
|
|
|
//获取公共主题头部底部
|
|
|
|
$serviceSettingModel = new ServiceSettingModel();
|
|
|
|
$info = $serviceSettingModel->read(['type'=>3]);
|
|
|
|
return $this->success($info);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|