@接口文档
接口文档
1.banner图(公共)
'地址'=>'/ajax/banner/:sign',
'参数'=>':sign',
'参数规则'=>'对应页面 index/about/products/solution/project/contact',
'请求示例'=>'/ajax/banner/index'
1.1 首页banner返回数据,使用id判断按钮位置,展示顺序按数据返回的顺序(sort)
[
{
"id": 1,
"sign": "index",
"sign_name": "首页",
"to_title": "按钮文案",
"to_url": '跳转链接',
"background": "http://1.15.177.241/upload/20211024/c573647feaaa46f0b34e15b5a2b01d85.jpg",
"is_show": 1,
"sort": 1
},
{
"id": 3,
"sign": "index",
"sign_name": "首页",
"to_title": "",
"to_url": null,
"background": "http://1.15.177.241/upload/20211024/c573647feaaa46f0b34e15b5a2b01d85.jpg",
"is_show": 1,
"sort": 2
},
{
"id": 2,
"sign": "index",
"sign_name": "首页",
"to_title": "",
"to_url": null,
"background": "http://1.15.177.241/upload/20211024/c573647feaaa46f0b34e15b5a2b01d85.jpg",
"is_show": 1,
"sort": 3
},
{
"id": 4,
"sign": "index",
"sign_name": "首页",
"to_title": "",
"to_url": "",
"background": "http://1.15.177.241/upload/20211024/c573647feaaa46f0b34e15b5a2b01d85.jpg",
"is_show": 1,
"sort": 4
},
{
"id": 5,
"sign": "index",
"sign_name": "首页",
"to_title": "",
"to_url": null,
"background": "http://1.15.177.241/upload/20211024/c573647feaaa46f0b34e15b5a2b01d85.jpg",
"is_show": 1,
"sort": 5
}
]
1.2 非首页返回数据
{
"id": 6,
"sign": "about",
"sign_name": "关于我们",
"to_title": "按钮文案",
"to_url": '跳转链接',
"background": "http://1.15.177.241/upload/20211024/c573647feaaa46f0b34e15b5a2b01d85.jpg",
"is_show": 1,
"sort": 0
}
2.页面配置信息(公共)
'地址'=>'/ajax/config',
'参数'=>'',
'参数规则'=>'',
{
"logo_image": "站点logo",
"site_name": "深圳市楚邦科技有限公司",
"site_copyright": "Copyright © 2021 All Rights Reserved. ",
"site_beian": "粤ICP备18455784"
}
3.首页数据
'地址'=>'/ajax/index',
'参数'=>'',
'参数规则'=>'',
{
//两张背景图
"background": {
"background_1": "http://cbadmin.com/upload/20211022/d84536dc44384cff0ecb6b293c43675c.png",
"background_2": "http://cbadmin.com/upload/20211022/076f9d78adeb2d30ca0815c6d527f88f.png"
},
//优势
"advantage": [
{
"id": 11,
"title": "高度集成化",
"text": "多种模块任意组合",
"logo": "",
"sort": 0
},
{
"id": 12,
"title": "性价比高",
"text": "包括整套工业物联网解决方案",
"logo": "",
"sort": 0
},
{
"id": 13,
"title": "随时随地",
"text": "设备状态、实时数据、告警信息",
"logo": "",
"sort": 0
},
{
"id": 14,
"title": "稳定安全",
"text": "实时监控数据 有效预测雷电 保障人身安全",
"logo": "",
"sort": 0
}
],
//解决方案
"solution": [
{
"id": 1,
"title": "解决方案1",
"descript": "简介",
"image": "http://cbadmin.com/upload/20211021/7b0e571dff939f5cd7d36d6643c4825e.png",
"index_background": "",
"index_order": 0,
"content": "",
"publish_time": "2021-10-21 21:57:30",
"view_num": 0
}
],
//产品中心
"products": [
{
"id": 1,
"title": "智能PDU",
"image": "http://admin.host/upload/20200512/a5ce9883379727324f5686ef61205ce2.jpg"
},
{
"id": 2,
"title": "产品2",
"image": "http://cbadmin.com/upload/20211023/cd7772b8572d78075f526a7b4be027b0.png"
}
],
//项目案例
"project": [
{
"id": 1,
"title": "项目案例",
"image": "http://cbadmin.com/upload/20211024/90c75a3c93e6e5d6503085ddb518722e.png"
}
],
//合作伙伴
"partner": [
{
"id": 1,
"image": "http://cbadmin.com/upload/20211024/cf4dadb946509e2358613f811f32d47b.png"
},
{
"id": 2,
"image": "http://cbadmin.com/upload/20211024/1cfd30deb49a82dfd2972da366ebd636.png"
}
]
}
4.关于我们
'地址'=>'/ajax/aboutUs',
'参数'=>'',
'参数规则'=>'',
{
//公司简介
"about": {
"title": "公司简介",
"title_en": "Company Profile",
"image": "http://cbadmin.com/upload/20211021/7e647fbb11689efceecf0ef3375dc330.png",
"content": "<p>深圳市楚邦科技有限公司创立于2001年,是一家集销售、研发、制造于一体,专注气象灾害预防设备提供商,主营雷电安全在线监测、气象安全监管系统、高压避雷器运行状态在线监测、智能应急柜、工业物联网云平台等。</p>\n\n<p>公司拥有一批高素质的研发队伍,自主研发产品广泛运用于易燃易爆危化场所、港口码头、智能楼宇、交通、电力系统、通讯系统、气象系统、教育、旅游景点、卫星雷达站、水利等领域,并不断的推出符合客户需求的创新性产品,研发技术达到业内顶尖水平。</p>\n\n<p>公司致力于为客户提供一流的产品服务和解决方案,用专业、专注、真诚的服务理念,和创新高效、追求卓越的价值观,为客户提供稳定、可靠、准确的产品。</p>\n\n<p>&nbsp;</p>\n"
},
//我们的优势
"advantage": {
"background": "http://cbadmin.com/upload/20211021/a0c6135f7cc5f7c9623a8eea8e7cec29.png",
"data": [
{
"id": 11,
"title": "高度集成化",
"text": "多种模块任意组合",
"logo": "",
"sort": 0
},
{
"id": 12,
"title": "性价比高",
"text": "包括整套工业物联网解决方案",
"logo": "",
"sort": 0
},
{
"id": 13,
"title": "随时随地",
"text": "设备状态、实时数据、告警信息",
"logo": "",
"sort": 0
},
{
"id": 14,
"title": "稳定安全",
"text": "实时监控数据 有效预测雷电 保障人身安全",
"logo": "",
"sort": 0
}
]
},
//服务流程
"service": [
{
"id": 3,
"title": "智能产品-模块化设计",
"image": "http://cbadmin.com/upload/20211024/c200908f4e56fbf9197aa9e19c0da1c1.png",
"text": "公司研发的各类产品,通过相关部门检测认证,已广泛运用到各种工业场所,公司将研发视为公司的核心竞争力,不断推出符合客户需求的创新性产品确保产品的稳定性可靠性数据传输的准确性等。",
"sort": 0
},
{
"id": 4,
"title": "云平台-电脑 | 手机",
"image": "http://cbadmin.com/upload/20211024/4875339bc23dd60bd0560e3bef127b62.png",
"text": "智能监测云平台是一款工业级工业云平台,用户可以使用它来创建数据监控和分析数据,平台提供了一个简单快捷的应用环境,创建好的项目可以直接在设备上访问。",
"sort": 0
},
{
"id": 1,
"title": "解决方案规划",
"image": "http://cbadmin.com/upload/20211021/5b986e42f2fbaea879d053e03839d57b.png",
"text": "我司工作人员通过调查研究,以及了解客户的需求的基础上,根据客户的情况,制定出最合适客户要的产品布局,确定出最优的产品实施的方案,以及进一步的实施工程。",
"sort": 1
},
{
"id": 2,
"title": "气象安全解决方案详细设计",
"image": "http://cbadmin.com/upload/20211021/5b986e42f2fbaea879d053e03839d57b.png\t我司工作人员通过调查研究,以及了解客户的需求的基础上,根据客户的情况,制定出最合适客户要的产品布局,确定出最优的产品实施的方案,以及进一步的实施工程。\t0",
"text": "根据制定出的方案,制作完整的、简单易懂的系统框架图,以便客户能了解产品工作的路径以及原理,直观的感受产品的防护体系。",
"sort": 2
}
],
//专利证书
"patent": {
"background": "http://cbadmin.com/upload/20211021/bb3b63dc3c35eafb8b6d6d52c14874fd.jpg",
"data": []
},
//合作伙伴
"partner": [
{
"id": 1,
"image": "http://cbadmin.com/upload/20211024/cf4dadb946509e2358613f811f32d47b.png"
},
{
"id": 2,
"image": "http://cbadmin.com/upload/20211024/1cfd30deb49a82dfd2972da366ebd636.png"
}
]
}
5.产品分类信息
'地址'=>'/ajax/productsCate',
'参数'=>'',
'参数规则'=>'',
[
{
"id": 1,
"name": "智能PDU",
"sort": 0//排序顺序
},
{
"id": 2,
"name": "雷电安全系列",
"sort": 0
}
]
6.产品列表
'地址'=>'/ajax/productsList/:cate_id/:page',
'参数'=>[':cate_id',':page'],
'参数规则'=>'分类id,分页页码',
'请求示例'=>'/ajax/productsList/1/1',
{
//数据列表
"list": [
{
"id": 1,
"title": "智能PDU",
"descript": "智能PDU简介",
"image": "http://admin.host/upload/20200512/a5ce9883379727324f5686ef61205ce2.jpg"
},
{
"id": 2,
"title": "产品2",
"descript": "智能PDU",
"image": "http://cbadmin.com/upload/20211023/cd7772b8572d78075f526a7b4be027b0.png"
}
],
"page": "1",//当前请求页码
"num": 2,//总数据量
"page_num": 1//总页数
}
7.产品详情页
'地址'=>'/ajax/productsDetail/:id',
'参数'=>':id',
'参数规则'=>'产品id',
{
//产品详细信息
"detail": {
"id": 1,
"cate_id": 1,
"title": "智能PDU",
"model": "PDU-C001",
"descript": "智能PDU简介",
"image": "http://admin.host/upload/20200512/a5ce9883379727324f5686ef61205ce2.jpg",
"image_s": [
"http://cbadmin.com/upload/20211021/5b986e42f2fbaea879d053e03839d57b.png",
"http://cbadmin.com/upload/20211021/2f917a02133c8e84f10db34eeee69930.png"
],
"content": "<p>12312312</p>\n\n<p>纷纷</p>\n",
"sort": 0
},
//关联产品
"correlation": [
{
"id": 1,
"title": "智能PDU",
"descript": "智能PDU简介",
"image": "http://admin.host/upload/20200512/a5ce9883379727324f5686ef61205ce2.jpg"
},
{
"id": 2,
"title": "产品2",
"descript": "智能PDU",
"image": "http://cbadmin.com/upload/20211023/cd7772b8572d78075f526a7b4be027b0.png"
}
]
}
8.解决方案列表
'地址'=>'/ajax/solutionList/:page',
'参数'=>[':page'],
'参数规则'=>'分页页码',
{
"list": [
{
"id": 1,
"title": "解决方案1",
"descript": "简介",
"image": "http://cbadmin.com/upload/20211021/7b0e571dff939f5cd7d36d6643c4825e.png"
}
],
"page": "1",
"num": 1,
"page_num": 1
}
9.解决方案详情页
'地址'=>'/ajax/solutionDetail/:id',
'参数'=>[':id'],
'参数规则'=>'方案id',
{
//方案详情
"detail": {
"id": 2,
"title": "解决方案2",
"descript": "解决方案2",
"image": "http://cbadmin.com/upload/20211024/ca8d5d46579497df24ef01289aab7e6c.png",
"index_background": "http://cbadmin.com/upload/20211024/823f908bcda30ec5cf7f624dd63e6d4c.png",
"index_order": 0,
"content": "",
"publish_time": "2021-10-24 00:00:00",
"view_num": 0
},
//上一个方案
"prev": {
"id": 1,
"title": "解决方案1"
},
//下一个方案
"next": {
"id": 3,
"title": "解决方案3"
}
}
10.项目案例列表
'地址'=>'/ajax/projectList/:page',
'参数'=>[':page'],
'参数规则'=>'分页页码',
{
"list": [
{
"id": 1,
"title": "项目案例",
"descript": "项目案例",
"image": "http://cbadmin.com/upload/20211024/90c75a3c93e6e5d6503085ddb518722e.png"
}
],
"page": "1",//当前页码
"num": 1,//总数据量
"page_num": 1//一共多少页
}
11.项目案例详情
'地址'=>'/ajax/projectDetail/:id',
'参数'=>[':id'],
'参数规则'=>'方案id',
{
"detail": {
"id": 2,
"title": "项目案例2",
"descript": "项目案例2",
"image": "http://cbadmin.com/upload/20211024/527ab5966914916d6d786025a2deb285.png",
"content": "<p>项目案例2</p>\n",
"publish_time": "2021-10-24 00:00:00",
"view_num": 0
},
"prev": {
"id": 1,
"title": "项目案例"
},
"next": {
"id": 3,
"title": "项目案例3"
}
}
12.联系我们
'地址'=>'/ajax/contact',
'参数'=>'',
'参数规则'=>'',
{
"address": "深圳市宝安区石岩街道塘头社区 塘头1号路8号创维创新谷",
"email": "630644350@qq.com",
"phone1": "0755-26401300",
"phone2": "26407318",
"address_image": "http://cbadmin.com/upload/20211022/169984590585b512917b378e095061a1.png"
}