作者 王小刚
1 个管道 的构建 通过 耗费 1 秒

......

@@ -41,7 +41,6 @@ class PlatformordersController extends AdminBaseController{ @@ -41,7 +41,6 @@ class PlatformordersController extends AdminBaseController{
41 foreach ($data1['data'] as $key => $val){ 41 foreach ($data1['data'] as $key => $val){
42 $data1['data'][$key]['dizhi'] = Db::name('address') -> where('id',$val['indent_address']) -> find(); 42 $data1['data'][$key]['dizhi'] = Db::name('address') -> where('id',$val['indent_address']) -> find();
43 } 43 }
44 - dump($data1);  
45 $this -> assign('data1',$data1['data']); 44 $this -> assign('data1',$data1['data']);
46 } 45 }
47 $this -> assign('data',$data); 46 $this -> assign('data',$data);
@@ -52,8 +52,8 @@ @@ -52,8 +52,8 @@
52 <tr class="tr{$vo.id}"> 52 <tr class="tr{$vo.id}">
53 <td>{$vo.id}</td> 53 <td>{$vo.id}</td>
54 <td>{$vo.order_number}</td> 54 <td>{$vo.order_number}</td>
55 - <td>{$vo.name}</td>  
56 - <td>{$vo.phone}</td> 55 + <td>{$vo.dizhi.name}</td>
  56 + <td>{$vo.dizhi.phone}</td>
57 <td>{$vo.dizhi['region']} {$vo.dizhi['detailed']}</td> 57 <td>{$vo.dizhi['region']} {$vo.dizhi['detailed']}</td>
58 <td>{$vo.book_num}</td> 58 <td>{$vo.book_num}</td>
59 <td>{$vo.money}</td> 59 <td>{$vo.money}</td>