|
@@ -10,6 +10,7 @@ use App\Models\News\NewsCategory; |
|
@@ -10,6 +10,7 @@ use App\Models\News\NewsCategory; |
|
10
|
use App\Models\Product\Category;
|
10
|
use App\Models\Product\Category;
|
|
11
|
use App\Models\Product\Product;
|
11
|
use App\Models\Product\Product;
|
|
12
|
use App\Models\Project\PageSetting;
|
12
|
use App\Models\Project\PageSetting;
|
|
|
|
13
|
+use App\Models\Project\Project;
|
|
13
|
use App\Models\RouteMap\RouteMap;
|
14
|
use App\Models\RouteMap\RouteMap;
|
|
14
|
use App\Models\Service\Service as ServiceSettingModel;
|
15
|
use App\Models\Service\Service as ServiceSettingModel;
|
|
15
|
use App\Models\Template\BTemplateCommon;
|
16
|
use App\Models\Template\BTemplateCommon;
|
|
@@ -80,14 +81,61 @@ class BTemplateLogic extends BaseLogic |
|
@@ -80,14 +81,61 @@ class BTemplateLogic extends BaseLogic |
|
80
|
}
|
81
|
}
|
|
81
|
|
82
|
|
|
82
|
/**
|
83
|
/**
|
|
|
|
84
|
+ * @remark :获取可视化装修的html
|
|
|
|
85
|
+ * @name :getTemplateHtml
|
|
|
|
86
|
+ * @author :lyh
|
|
|
|
87
|
+ * @method :post
|
|
|
|
88
|
+ * @time :2023/12/13 10:47
|
|
|
|
89
|
+ */
|
|
|
|
90
|
+ public function getTemplateHtml(){
|
|
|
|
91
|
+ $settingTemplateInfo = $this->getSettingTemplate();//模版详情
|
|
|
|
92
|
+
|
|
|
|
93
|
+
|
|
|
|
94
|
+ }
|
|
|
|
95
|
+
|
|
|
|
96
|
+ /**
|
|
|
|
97
|
+ * @remark :查看项目是否定制
|
|
|
|
98
|
+ * @name :watchProjectIsCustomized
|
|
|
|
99
|
+ * @author :lyh
|
|
|
|
100
|
+ * @method :post
|
|
|
|
101
|
+ * @time :2023/12/13 10:55
|
|
|
|
102
|
+ */
|
|
|
|
103
|
+ public function watchProjectIsCustomized(){
|
|
|
|
104
|
+ if($this->user['is_customized'] == Project::){
|
|
|
|
105
|
+
|
|
|
|
106
|
+ }
|
|
|
|
107
|
+ $this->user['is_customized']
|
|
|
|
108
|
+ }
|
|
|
|
109
|
+
|
|
|
|
110
|
+ /**
|
|
|
|
111
|
+ * @remark :获取当前项目设置的模版
|
|
|
|
112
|
+ * @name :getSettingTemplate
|
|
|
|
113
|
+ * @author :lyh
|
|
|
|
114
|
+ * @method :post
|
|
|
|
115
|
+ * @time :2023/12/13 10:48
|
|
|
|
116
|
+ */
|
|
|
|
117
|
+ public function getSettingTemplate(){
|
|
|
|
118
|
+ $bSettingModel = new Setting();
|
|
|
|
119
|
+ $info = $bSettingModel->read(['project_id'=>$this->user['project_id']]);
|
|
|
|
120
|
+ if($info === false){
|
|
|
|
121
|
+ $this->fail('请先选择模版');
|
|
|
|
122
|
+ }
|
|
|
|
123
|
+ return $info;
|
|
|
|
124
|
+ }
|
|
|
|
125
|
+
|
|
|
|
126
|
+ /**
|
|
83
|
* @remark :查看首页是否可视化
|
127
|
* @remark :查看首页是否可视化
|
|
84
|
* @name :getTemplateHtml
|
128
|
* @name :getTemplateHtml
|
|
85
|
* @author :lyh
|
129
|
* @author :lyh
|
|
86
|
* @method :post
|
130
|
* @method :post
|
|
87
|
* @time :2023/12/13 9:50
|
131
|
* @time :2023/12/13 9:50
|
|
88
|
*/
|
132
|
*/
|
|
89
|
- public function watchHomeISVisualization(){
|
|
|
|
90
|
-
|
133
|
+ public function watchHomeISVisualization($template_id){
|
|
|
|
134
|
+ $homeTemplateInfo = $this->webTemplateInfo($template_id,1,0);
|
|
|
|
135
|
+ if($homeTemplateInfo === false){
|
|
|
|
136
|
+ return false;
|
|
|
|
137
|
+ }
|
|
|
|
138
|
+ return $this->success($homeTemplateInfo);
|
|
91
|
}
|
139
|
}
|
|
92
|
|
140
|
|
|
93
|
/**
|
141
|
/**
|