Commit 45a9d8f4 by LiuJunYi

类别显示

parent 31a6eb3b
......@@ -92,7 +92,6 @@
<th>活动/商家名称</th>
<th>封面图</th>
<th>国内/国外</th>
<th>城市</th>
<th>分类</th>
<th>活动/商家信息</th>
<th>状态</th>
......@@ -113,13 +112,8 @@
</a>
</td>
<td>
{if condition="$vo.region_type==1"}
国内
{else/}
国外
{/if}
{$vo->level1['title']} / {$vo->level2['title']} / {$vo->level3['title']}
</td>
<td>{$vo.city_str.name}</td>
<td>{$vo.catalog_id_str.name}</td>
<td style="width: 500px">
{if condition="$vo.type==1"}
......
......@@ -115,4 +115,22 @@ class Project extends BaseModel
}
return config('domain_ssl') . $value;
}
//三级分类,城市
public function level1()
{
return $this->belongsTo('Region','level_1','id');
}
//三级分类,城市
public function level2()
{
return $this->belongsTo('Region','level_2','id');
}
//三级分类,城市
public function level3()
{
return $this->belongsTo('Region','level_3','id');
}
}
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