You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
2.3 KiB
PHP
85 lines
2.3 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API\H5;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Services\ConfigService;
|
|
use Illuminate\Http\Request;
|
|
|
|
class HomeController extends Controller
|
|
{
|
|
// 获取配置更新时间
|
|
public function config_version()
|
|
{
|
|
$version = '2024-08-14 18:00:00';
|
|
return \Yz::Return(true, '获取成功', [
|
|
'version' => $version
|
|
]);
|
|
}
|
|
|
|
// 获取配置更新时间
|
|
public function config()
|
|
{
|
|
$config = [
|
|
'hospital' => [[
|
|
'id' => 1,
|
|
'name' => '秀英院区',
|
|
'latitude' => '39.867671',
|
|
'longitude' => '119.514223',
|
|
]],
|
|
'tip' => '海南现代妇女儿童医院体检中心欢迎您',
|
|
'logo' => '/assets/h5/logo.png',
|
|
'banner' => '/assets/h5/banner.png',
|
|
'order' => [[
|
|
'message' => '',
|
|
'name' => '个人体检预约',
|
|
'jump' => '/pages/main/order/order',
|
|
'icon' => '/assets/h5/gejianyuyue.png'
|
|
], [
|
|
'message' => '暂未开放',
|
|
'name' => '单位体检预约',
|
|
'jump' => '/pages/main/choose/choose?type=group',
|
|
'icon' => '/assets/h5/tuanjianyuyue.png'
|
|
]],
|
|
'check' => [[
|
|
'message' => '暂未开放',
|
|
'name' => '报告查询',
|
|
'desc' => '查体检报告',
|
|
'jump' => '/pages/main/check/check',
|
|
'icon' => '/assets/h5/baogao.png'
|
|
], [
|
|
'message' => '暂未开放',
|
|
'name' => '体检中心简介',
|
|
'desc' => '健康体检中心',
|
|
'jump' => '/pages/main/desc/desc',
|
|
'icon' => '/assets/h5/jianjie.png'
|
|
]],
|
|
'ad' => [
|
|
'title' => '6大体检套餐 5折',
|
|
'combo' => ['123', '234'],
|
|
'button' => '点击购买'
|
|
],
|
|
'more' => [[
|
|
'message' => '暂未开放',
|
|
'name' => '满意度调查',
|
|
'jump' => '/pages/main/myddc/myddc',
|
|
'icon' => '/assets/h5/manyidudiaocha.png'
|
|
], [
|
|
'message' => '暂未开放',
|
|
'name' => '体检注意事项',
|
|
'jump' => '/pages/main/zysx/zysx',
|
|
'icon' => '/assets/h5/zhuyishixiang.png'
|
|
], [
|
|
'message' => '暂未开放',
|
|
'name' => '常见问题',
|
|
'jump' => '/pages/main/cjwt/cjwt',
|
|
'icon' => '/assets/h5/changjianwenti.png'
|
|
]],
|
|
'color' => true,
|
|
];
|
|
return \Yz::Return(true, '获取成功', [
|
|
'config' => $config
|
|
]);
|
|
}
|
|
}
|