main
yanzai 10 months ago
parent 7055a86004
commit 083da77a35

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

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

Loading…
Cancel
Save