作者 lyh

gx

@@ -200,6 +200,38 @@ class BaseController extends Controller @@ -200,6 +200,38 @@ class BaseController extends Controller
200 } 200 }
201 201
202 /** 202 /**
  203 + * @remark :定制页面头部类型---根据source获取type类型
  204 + * @name :getType
  205 + * @author :lyh
  206 + * @method :post
  207 + * @time :2023/11/16 11:20
  208 + */
  209 + public function getCustomizedType($source,$is_list){
  210 + $type = BTemplate::TYPE_HOME;
  211 + if($source == BTemplate::SOURCE_PRODUCT){
  212 + if($is_list == BTemplate::IS_LIST){
  213 + $type = BTemplate::TYPE_PRODUCT_LIST;
  214 + }else{
  215 + $type = BTemplate::TYPE_PRODUCT_DETAIL;
  216 + }
  217 + }
  218 + if($source == BTemplate::SOURCE_BLOG){
  219 + if($is_list == BTemplate::IS_LIST){
  220 + $type = BTemplate::TYPE_BLOG_LIST;
  221 + }else{
  222 + $type = BTemplate::TYPE_BLOG_DETAIL;
  223 + }
  224 + }
  225 + if($source == BTemplate::SOURCE_NEWS){
  226 + if($is_list == BTemplate::IS_LIST){
  227 + $type = BTemplate::TYPE_NEWS_LIST;
  228 + }else{
  229 + $type = BTemplate::TYPE_NEWS_DETAIL;
  230 + }
  231 + }
  232 + return $type;
  233 + }
  234 + /**
203 * @remark :查看是否已装修 235 * @remark :查看是否已装修
204 * @name :getIsRenovation 236 * @name :getIsRenovation
205 * @author :lyh 237 * @author :lyh