作者 王智

daima

... ... @@ -82,12 +82,12 @@ class Renwu extends Backend
$id = input('id');
$Arr = Db::name('renwu')->where('id', $id)->find();
if (empty($Arr['xi_id'])) {
$data['xi'] = '';
$data['xi'] = '未分配洗车工';
} else {
$data['xi'] = Db::name('user')->where('id', $Arr['xi_id'])->value('nickname');
}
if (empty($Arr['zhao_id'])) {
$data['zhao'] = '';
$data['zhao'] = '未分配找车工';
} else {
$data['zhao'] = Db::name('user')->where('id', $Arr['zhao_id'])->value('nickname');
}
... ...
... ... @@ -2,8 +2,8 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<div>{$data.xi}</div>
<div>洗车工:{$data.xi}</div>
<div>找车工:{$data.zhao}</div>
</head>
<body>
... ...