mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 10:32:48 +08:00
完善table组件细节;开始接入城市选择器;
This commit is contained in:
31
app/admin/model/TestGoods.php
Normal file
31
app/admin/model/TestGoods.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\model;
|
||||
|
||||
use app\common\model\TimeModel;
|
||||
|
||||
class TestGoods extends TimeModel
|
||||
{
|
||||
|
||||
protected $name = "test_goods";
|
||||
|
||||
protected $deleteTime = "delete_time";
|
||||
|
||||
|
||||
public const SELECT_LIST_STATUS = ['0'=>'正常','1'=>'禁用',];
|
||||
|
||||
public const SELECT_LIST_TIME_STATUS = ['0'=>'未参加','1'=>'已开始','3'=>'已结束',];
|
||||
|
||||
public const SELECT_LIST_IS_RECOMMEND = ['0'=>'不推荐','1'=>'推荐',];
|
||||
|
||||
public const SELECT_LIST_SHOP_TYPE = ['taobao'=>'淘宝','jd'=>'京东',];
|
||||
|
||||
|
||||
|
||||
public function mallCate()
|
||||
{
|
||||
return $this->belongsTo('\app\admin\model\MallCate', 'cate_id', 'id');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user