Commit 897f47b75691cac663c73e5fa93a522e98a83bc3

Authored by teemitop
1 parent 08168752

bug修复

@@ -313,7 +313,7 @@ class Seller extends Common @@ -313,7 +313,7 @@ class Seller extends Common
313 foreach($array['data'][0]['data'] as $key=>$value){ 313 foreach($array['data'][0]['data'] as $key=>$value){
314 if(!empty($value['activity'])){ 314 if(!empty($value['activity'])){
315 foreach ($value['activity'] as $k => $v) { 315 foreach ($value['activity'] as $k => $v) {
316 - $str[$key][] = $v['id'].'、'.$v['title']; 316 + $str[$key][] = ($k+1).'、'.$v['title'];
317 } 317 }
318 $array['data'][0]['data'][$key]['activity'] = implode('<br/>', $str[$key]); 318 $array['data'][0]['data'][$key]['activity'] = implode('<br/>', $str[$key]);
319 //$array['data'][0]['data'][$key]['activity'] = implode('<br/>', array_column($value['activity'], 'title')); 319 //$array['data'][0]['data'][$key]['activity'] = implode('<br/>', array_column($value['activity'], 'title'));
@@ -15,9 +15,9 @@ @@ -15,9 +15,9 @@
15 </tr> 15 </tr>
16 </thead> 16 </thead>
17 {if $seller_activity} 17 {if $seller_activity}
18 - {foreach $seller_activity as $vo} 18 + {foreach $seller_activity as $key=>$vo}
19 <tr> 19 <tr>
20 - <th>{$vo.id}</th> 20 + <th>{$key+1}</th>
21 <th>{$vo.sid}</th> 21 <th>{$vo.sid}</th>
22 <th>{$vo.title}</th> 22 <th>{$vo.title}</th>
23 <th>{$vo.desc}</th> 23 <th>{$vo.desc}</th>