wesley 6 年 前
コミット
456a96dccb

+ 3 - 0
app/Http/Controllers/Api/V1/FurnitureController.php

xqd
@@ -935,6 +935,9 @@ class FurnitureController extends Controller
         }
         $data['user_id'] = $user->id;
 
+
+        $user->phone = $data['customer_phone'];
+        $user->save();
         $res = AlbumOrderModel::create($data);
         if ($res) {
             $this->getQrcode(request('store_id'), $res->id);

+ 1 - 1
resources/views/admin/album/order/index.blade.php

xqd
@@ -118,7 +118,7 @@
                                             @endif
                                             @if(role('Album/Order/destroy'))
                                               <a class="btn btn-danger" href="{{ U('Album/Order/destroy',['id'=>$item->id])}}"
-                                                       onclick="return confirm('你确定执行删除操作?');">删除</a>
+                                                       onclick="return confirm('你确定关闭该订单?');">关闭订单</a>
                                             @endif
                                         </td>
                                     </tr>

+ 2 - 0
resources/views/admin/album/user/index.blade.php

xqd xqd
@@ -35,6 +35,7 @@
                                 <th class="sorting" data-sort="id">ID</th>
                                 <th class="sorting" data-sort="username"> 名称</th>
                                 <th class="sorting" data-sort="avatar"> 用户头像</th>
+                                <th class="sorting" data-sort="phone"> 电话</th>
                                 <th class="sorting" data-sort="is_dealer"> 用户类型</th>
                                 <th class="sorting" data-sort="created_at"> 加入时间</th>
                                 <th class="sorting" data-sort="role">角色</th>
@@ -49,6 +50,7 @@
                                         <td>{{ $item->id }}</td>
                                         <td>{{ $item->username }}</td>
                                         <td><img src="{{ $item->avatar }}"/></td>
+                                        <td>{{ $item->phone }}</td>
                                         @if($item['is_dealer'] == 1)
                                             <td>经销商</td>
                                         @else