49 lines
1.3 KiB
PHP
49 lines
1.3 KiB
PHP
<?php
|
||
// +------------------------------------------------+
|
||
// |http://www.cjango.com |
|
||
// +------------------------------------------------+
|
||
// | 修复BUG不是一朝一夕的事情,等我喝醉了再说吧! |
|
||
// +------------------------------------------------+
|
||
// | Author: 小陈叔叔 <Jason.Chen> |
|
||
// +------------------------------------------------+
|
||
namespace app\common\model;
|
||
|
||
class Withdrawal extends _Init
|
||
{
|
||
|
||
protected function user()
|
||
{
|
||
return $this->hasOne('Member', 'id', 'uid');
|
||
}
|
||
|
||
public function userinfo()
|
||
{
|
||
return $this->hasOne('MemberInfo', 'uid', 'uid');
|
||
}
|
||
|
||
protected function getStatusTextAttr($value, $data)
|
||
{
|
||
switch ($data['status']) {
|
||
case 1:
|
||
return '<span style="color:orangered">待审核</span>';
|
||
break;
|
||
case 2:
|
||
return '<span style="color:darkgreen">通过</span>';
|
||
break;
|
||
case 3:
|
||
return '<span style="color:red">驳回</span>';
|
||
break;
|
||
default:
|
||
return '状态错误';
|
||
break;
|
||
}
|
||
}
|
||
|
||
//审核操作人
|
||
public function inguser()
|
||
{
|
||
return $this->hasOne('Member', 'id', 'audit');
|
||
}
|
||
|
||
}
|