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.
89 lines
2.0 KiB
PHP
89 lines
2.0 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API\H5;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Services\ConfigService;
|
|
use Illuminate\Http\Request;
|
|
|
|
class ComboController extends Controller
|
|
{
|
|
public function select(Request $request)
|
|
{
|
|
$combo = [[
|
|
'label' => '类型一',
|
|
'value' => '1',
|
|
], [
|
|
'label' => '类型二',
|
|
'value' => '2',
|
|
]];
|
|
$person = [[
|
|
'label' => '类型一',
|
|
'value' => '1',
|
|
], [
|
|
'label' => '类型二',
|
|
'value' => '2',
|
|
]];
|
|
return \Yz::Return(true, '获取成功', [
|
|
'combo' => $combo,
|
|
'person' => $person
|
|
]);
|
|
}
|
|
|
|
public function list(Request $request)
|
|
{
|
|
$hospital = $request->post('hospital');
|
|
$doctor = $request->post('doctor');
|
|
$openid = $request->post('openid');
|
|
$item = [
|
|
'cover' => '/assets/h5/combo.png',
|
|
'name' => '中老年体检套餐(女)',
|
|
'sex' => 2,
|
|
'combo_type' => '1',
|
|
'person_type' => '1',
|
|
'tag' => [[
|
|
'text' => '女已婚',
|
|
'text_color' => '#47ABD8',
|
|
'color' => '#EBF5FC',
|
|
], [
|
|
'text' => '22个项目',
|
|
'text_color' => '#34C292',
|
|
'color' => '#E9F8F3',
|
|
]],
|
|
'desc' => ['血糖', '腹部超声', '心电图'],
|
|
'price' => '1229.00',
|
|
'original_price' => '2048.88',
|
|
'count' => '77'
|
|
];
|
|
$list = [];
|
|
for ($i = 0; $i < 20; $i++) {
|
|
$list[] = $item;
|
|
}
|
|
$hospital_info = [
|
|
'id' => $hospital,
|
|
'name' => '秀英院区',
|
|
'address' => '秀英院区秀英院区秀英院区地址',
|
|
'latitude' => '39.867671',
|
|
'longitude' => '119.514223',
|
|
];
|
|
|
|
$info = [
|
|
'name' => '演示用户',
|
|
'sex' => '2',
|
|
'count' => 1
|
|
];
|
|
|
|
$doctor_info = [
|
|
'id' => $doctor,
|
|
'name' => '张大夫'
|
|
];
|
|
|
|
return \Yz::Return(true, '获取成功', [
|
|
'list' => $list,
|
|
'hospital' => $hospital_info,
|
|
'doctor' => $doctor_info,
|
|
'info' => $info,
|
|
]);
|
|
}
|
|
}
|