Commit 7e1daeaf by lizhilin

更新

parent 8b105e87
......@@ -23,6 +23,7 @@ protected function grid()
{
return Grid::make(StoreAdminUsers::with(['merchant', 'store']), function (Grid $grid) {
$grid->model()->where('role_id', 2); //2: 核销员
$grid->model()->orderBy('created_at', 'DESC');
$grid->column('id')->sortable();
$grid->column('name', '姓名');
$grid->column('username', '登录账号');
......
......@@ -19,6 +19,7 @@ class UserBuycodeCheckController extends AdminController
protected function grid()
{
return Grid::make(UserBuycodeCheck::with(['user']), function (Grid $grid) {
$grid->model()->orderBy('created_at', 'DESC');
$grid->column('id')->sortable();
$grid->column('user.avatar', '用户头像')->image('', 100, 100);
$grid->column('user.name', '用户昵称');
......
......@@ -48,7 +48,7 @@ public function handle(Request $request)
$html = '';
foreach ($list as $kk => $vv) {
$html .= '<tr>';
$html .= '<td style="width:20%;text-align:left;"><img src="' . env('IMAGE_URL') . $vv->cover_img . '" width="100"></td>';
$html .= '<td style="width:20%;text-align:left;"><img src="' . togetherFilePath($vv->cover_img) . '" width="100"></td>';
$html .= '<td style="width:36%;text-align:left;">' . $vv->goods_name . '</td>';
$html .= '<td style="width:33%;">销量:' . $vv->sale . '</td>';
$html .= '</tr>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment