获取主题设置
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\ConfigurationModel::themeList |
| 所属业务 | 公共接口 |
| 来源模块/系统 | 用户模型 |
功能说明
获取主题设置
调用示例
$result = (new \app\common\model\ConfigurationModel())->themeList();参数
该函数/方法无需传入参数。
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
admin_theme | string | 后台主题 |
clientarea_theme | string | 会员中心主题 |
web_switch | int | 官网开关0关闭1开启 |
web_theme | string | 官网主题 |
admin_theme_list | array | 后台主题列表 |
first_navigation | string | 一级导航名称 |
second_navigation | string | 二级导航名称 |
admin_theme_list[].name | string | 名称 |
admin_theme_list[].img | string | 图片 |
clientarea_theme_list | array | 会员中心主题列表 |
clientarea_theme_list[].name | string | 名称 |
clientarea_theme_list[].img | string | 图片 |
web_theme_list | array | 官网主题列表 |
web_theme_list[].name | string | 名称 |
web_theme_list[].img | string | 图片 |
cart_theme_list[].name | string | 名称 |
cart_theme_list[].img | string | 图片 |
home_theme | string | 首页PC主题 |
home_theme_mobile | string | 首页手机主题 |
home_theme_list | array | 首页PC主题列表 |
home_theme_list[].name | string | 名称 |
home_theme_list[].img | string | 图片 |
home_theme_mobile_list | array | 首页手机主题列表 |
home_theme_mobile_list[].name | string | 名称 |
home_theme_mobile_list[].img | string | 图片 |
home_host_theme | array | 会员中心产品详情PC主题,键值对,键是模块标识,值是主题 |
home_host_theme_mobile | array | 会员中心产品详情手机主题,键值对,键是模块标识,值是主题 |
module_list | array | 模块列表 |
module_list[].name | string | 模块标识 |
module_list[].display_name | string | 模块名称 |
module_list[].theme_list[].name | string | PC主题名称 |
module_list[].theme_list[].img | string | 图片 |
module_list[].theme_mobile_list[].name | string | 手机主题名称 |
module_list[].theme_mobile_list[].img | string | 图片 |
正常返回
{
"admin_theme": "string",
"clientarea_theme": "string",
"web_switch": 1,
"web_theme": "string",
"admin_theme_list": [
{
"name": "示例名称",
"img": "string"
}
],
"first_navigation": "string",
"second_navigation": "string",
"clientarea_theme_list": [
{
"name": "示例名称",
"img": "string"
}
],
"web_theme_list": [
{
"name": "示例名称",
"img": "string"
}
],
"cart_theme_list": [
{
"name": "示例名称",
"img": "string"
}
],
"home_theme": "string",
"home_theme_mobile": "13800138000",
"home_theme_list": [
{
"name": "示例名称",
"img": "string"
}
],
"home_theme_mobile_list": [
{
"name": "13800138000",
"img": "13800138000"
}
],
"home_host_theme": [
"string"
],
"home_host_theme_mobile": [
"13800138000"
],
"module_list": [
{
"name": "示例名称",
"display_name": "示例名称",
"theme_list": [
{
"name": "示例名称",
"img": "string"
}
],
"theme_mobile_list": [
{
"name": "13800138000",
"img": "13800138000"
}
]
}
]
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |