作者 lyh

gx

... ... @@ -10,6 +10,7 @@ use App\Models\News\NewsCategory;
use App\Models\Product\Category;
use App\Models\Product\Product;
use App\Models\Project\PageSetting;
use App\Models\Project\Project;
use App\Models\RouteMap\RouteMap;
use App\Models\Service\Service as ServiceSettingModel;
use App\Models\Template\BTemplateCommon;
... ... @@ -80,14 +81,61 @@ class BTemplateLogic extends BaseLogic
}
/**
* @remark :获取可视化装修的html
* @name :getTemplateHtml
* @author :lyh
* @method :post
* @time :2023/12/13 10:47
*/
public function getTemplateHtml(){
$settingTemplateInfo = $this->getSettingTemplate();//模版详情
}
/**
* @remark :查看项目是否定制
* @name :watchProjectIsCustomized
* @author :lyh
* @method :post
* @time :2023/12/13 10:55
*/
public function watchProjectIsCustomized(){
if($this->user['is_customized'] == Project::){
}
$this->user['is_customized']
}
/**
* @remark :获取当前项目设置的模版
* @name :getSettingTemplate
* @author :lyh
* @method :post
* @time :2023/12/13 10:48
*/
public function getSettingTemplate(){
$bSettingModel = new Setting();
$info = $bSettingModel->read(['project_id'=>$this->user['project_id']]);
if($info === false){
$this->fail('请先选择模版');
}
return $info;
}
/**
* @remark :查看首页是否可视化
* @name :getTemplateHtml
* @author :lyh
* @method :post
* @time :2023/12/13 9:50
*/
public function watchHomeISVisualization(){
public function watchHomeISVisualization($template_id){
$homeTemplateInfo = $this->webTemplateInfo($template_id,1,0);
if($homeTemplateInfo === false){
return false;
}
return $this->success($homeTemplateInfo);
}
/**
... ...
... ... @@ -16,6 +16,7 @@ class Project extends Base
const DATABASE_NAME_FIX = 'gl_data_';
const CUSTOMIZED_ONE = 1;//定制项目
const DEMO_PROJECT_ID = 1;
const STATUS_ONE = 1;//审核通过
... ...