main
yanzai 10 months ago
parent 7055a86004
commit 083da77a35

@ -11,11 +11,18 @@ class CheckUpTypeController extends Controller
//H5获取体检类型名称和logo //H5获取体检类型名称和logo
public function GetList() public function GetList()
{ {
$openid = request('openid');
$user=DB::table('web_users')->where(['openid'=>$openid])->first();
$ids = [7,1,4]; $ids = [7,1,4];
$sortedIds = implode(',', array_map('intval', $ids)); $sortedIds = implode(',', array_map('intval', $ids));
$list=DB::table('checkup_type')->where(['status'=>1,'is_del'=>0]) $list=DB::table('checkup_type')->where(['status'=>1,'is_del'=>0])
->orderByRaw("FIELD(id, {$sortedIds})") ->orderByRaw("FIELD(id, {$sortedIds})");
->get();
if($user->dev===1){ //开发人员开启婚检
$list=$list->orWhere('id',4);
}
$list=$list->get();
foreach($list as $k=>$v){ foreach($list as $k=>$v){
if($v->name=='健康体检'){ if($v->name=='健康体检'){
$v->name='预约体检'; $v->name='预约体检';

@ -151,7 +151,7 @@
selectedTime.value = orderInfo.value.appointment_time selectedTime.value = orderInfo.value.appointment_time
selectedDate.value = orderInfo.value.appointment_date selectedDate.value = orderInfo.value.appointment_date
GetDayPlanListFunc()
tj_date.value = response.data.today tj_date.value = response.data.today
@ -165,6 +165,8 @@
amount.value=orderInfo.value.true_price amount.value=orderInfo.value.true_price
person_name.value=orderInfo.value.name person_name.value=orderInfo.value.name
combo_name.value=orderInfo.value.title combo_name.value=orderInfo.value.title
GetDayPlanListFunc()
}); });
} }

Loading…
Cancel
Save