6
0
Fork 0

调整商城等级文字

release
vine_liutk 2022-02-25 16:33:06 +08:00
parent d706b14456
commit b8fdcde922
6 changed files with 184 additions and 176 deletions

View File

@ -52,7 +52,7 @@ class AfterSaleController extends AdminController
$grid->column('tags', '标签')->display(function ($tags) { $grid->column('tags', '标签')->display(function ($tags) {
$array = []; $array = [];
foreach ($this->tags as $key => $tag) { foreach ($this->tags as $key => $tag) {
$array[] = $tag->name; $array[] = $tag->name;
} }
return $array; return $array;
})->label(); })->label();
@ -136,56 +136,66 @@ class AfterSaleController extends AdminController
protected function detail($id) protected function detail($id)
{ {
return function (Row $row) use ($id) { return function (Row $row) use ($id) {
$row->column(4, function ($column) use ($id) { $row->column(5, function ($column) use ($id) {
$builder = AfterSale::with(['user', 'user.userInfo', 'order', 'orderProduct', 'tags']); $builder = AfterSale::with(['user', 'user.userInfo', 'order', 'orderProduct', 'tags']);
$column->row(Show::make($id, $builder, function (Show $show) { $column->row(Show::make($id, $builder, function (Show $show) {
$show->field('id'); // $show->field('id');
$show->field('sn'); $type = $show->model()->type;
$show->field('order.sn', '售后订单')->unescape()->as(function ($value) { $show->row(function (Show\Row $show) use ($type) {
if (Admin::user()->can('dcat.admin.orders.show')) { $show->width(6)->field('sn');
return '<a href="'.admin_route('orders.show', ['order'=>$this->order]).'" target="_blank">'.$value.'</a>'; $show->field('order.sn', '关联订单编号')->unescape()->as(function ($value) {
} if (Admin::user()->can('dcat.admin.orders.show')) {
return $value; return '<a href="'.admin_route('orders.show', ['order'=>$this->order]).'" target="_blank">'.$value.'</a>';
}); }
$show->field('order_product.name', '售后商品')->as(function ($value) { return $value;
return $value.'*'. $this->num;
});
// $show->field('num');
if (in_array($show->model()->type, [AfterSaleModel::TYPE_REFUND_AND_RETURN, AfterSaleModel::TYPE_REFUND])) {
$show->field('amount', '售后金额')->as(function ($amount) {
return '¥'.bcdiv($amount, 100, 2);
}); });
} $show->field('order_product.name', '售后商品')->as(function ($value) {
$show->field('type')->using([ return $value.'*'. $this->num;
AfterSaleModel::TYPE_REFUND_AND_RETURN => '退款退货', });
AfterSaleModel::TYPE_REFUND => '退款', // $show->field('num');
AfterSaleModel::TYPE_CHANGE => '换货', if (in_array($type, [AfterSaleModel::TYPE_REFUND_AND_RETURN, AfterSaleModel::TYPE_REFUND])) {
AfterSaleModel::TYPE_FILL => '漏发', $show->field('amount', '售后金额')->as(function ($amount) {
])->label(); return '¥'.bcdiv($amount, 100, 2);
$show->field('state')->using(AfterSaleModel::$stateText)->dot([ });
AfterSaleModel::STATE_APPLY=>'warning', }
AfterSaleModel::STATE_VERIFY=>'danger', $show->width(6)->field('user.user_info.nickname', '下单用户');
AfterSaleModel::STATE_AGREE=>'warning', $show->field('user.phone');
AfterSaleModel::STATE_SHIPPING=>'primary', $show->field('type')->using([
AfterSaleModel::STATE_FINANCE=>'primary', AfterSaleModel::TYPE_REFUND_AND_RETURN => '退款退货',
AfterSaleModel::STATE_FINISH=>'success', AfterSaleModel::TYPE_REFUND => '退款',
AfterSaleModel::STATE_CANCEL=>'#b3b9bf', AfterSaleModel::TYPE_CHANGE => '换货',
]); AfterSaleModel::TYPE_FILL => '漏发',
$show->field('user.user_info.nickname', '下单用户'); ])->label();
$show->field('user.phone'); if (in_array($type, [AfterSaleModel::TYPE_REFUND_AND_RETURN, AfterSaleModel::TYPE_REFUND, AfterSaleModel::TYPE_CHANGE])) {
if (in_array($show->model()->type, [AfterSaleModel::TYPE_REFUND_AND_RETURN, AfterSaleModel::TYPE_CHANGE])) { $show->field('sales_value', '销售值');
$show->field('tracking_number'); }
} });
$status = $stae = $show->model()->state;
$show->row(function (Show\Row $show) use ($type, $status) {
$show->width(6)->field('state')->using(AfterSaleModel::$stateText)->dot([
AfterSaleModel::STATE_APPLY=>'warning',
AfterSaleModel::STATE_VERIFY=>'danger',
AfterSaleModel::STATE_AGREE=>'warning',
AfterSaleModel::STATE_SHIPPING=>'primary',
AfterSaleModel::STATE_FINANCE=>'primary',
AfterSaleModel::STATE_FINISH=>'success',
AfterSaleModel::STATE_CANCEL=>'#b3b9bf',
]);
if (in_array($type, [AfterSaleModel::TYPE_REFUND_AND_RETURN, AfterSaleModel::TYPE_CHANGE]) && in_array($status, [
AfterSaleModel::STATE_SHIPPING, AfterSaleModel::STATE_FINANCE, AfterSaleModel::STATE_FINISH,
])) {
$show->field('tracking_number');
}
});
$show->row(function (Show\Row $show) use ($type, $status) {
$show->width(12)->field('tags')->width(10, 1)->as(function () {
return $this->tags->pluck('name');
})->label();
$show->width(6)->field('created_at');
$show->field('updated_at');
});
$show->field('tags')->as(function () {
return $this->tags->pluck('name');
})->label();
if (in_array($show->model()->type, [AfterSaleModel::TYPE_REFUND_AND_RETURN, AfterSaleModel::TYPE_REFUND, AfterSaleModel::TYPE_CHANGE])) {
$show->field('sales_value', '销售值');
}
// $show->field('order_product.cover')->image(); // $show->field('order_product.cover')->image();
$show->field('created_at');
$show->field('updated_at');
$show->panel() $show->panel()
->tools(function (Show\Tools $tools) use ($show) { ->tools(function (Show\Tools $tools) use ($show) {
$tools->disableEdit(); $tools->disableEdit();
@ -214,7 +224,7 @@ class AfterSaleController extends AdminController
}); });
})); }));
}); });
$row->column(8, function ($column) use ($id) { $row->column(7, function ($column) use ($id) {
$afterSale = AfterSaleModel::findOrFail($id); $afterSale = AfterSaleModel::findOrFail($id);
$builder = AfterSaleModel::with('orderProduct')->where('order_product_id', $afterSale?->order_product_id)->where('id', '<>', $id); $builder = AfterSaleModel::with('orderProduct')->where('order_product_id', $afterSale?->order_product_id)->where('id', '<>', $id);
$column->row(Box::make('相关售后', Grid::make($builder, function (Grid $grid) { $column->row(Box::make('相关售后', Grid::make($builder, function (Grid $grid) {

View File

@ -154,92 +154,85 @@ class OrderController extends AdminController
$builder = OrderModel::with(['user', 'userCoupon', 'tags'])->withCount('afterSales'); $builder = OrderModel::with(['user', 'userCoupon', 'tags'])->withCount('afterSales');
$column->row(Show::make($id, $builder, function (Show $show) { $column->row(Show::make($id, $builder, function (Show $show) {
// $show->field('id'); // $show->field('id');
$show->field('sn'); $show->row(function (Show\Row $show) {
$show->field('order_status')->as(function ($v) { $show->width(6)->field('sn');
return $this->order_status; $show->field('order_status')->as(function ($v) {
})->using([ return $this->order_status;
0=>'待付款', })->using([
1=>'待发货', 0=>'待付款',
2=>'发货中', 1=>'待发货',
3=>'已发货', 2=>'发货中',
9=>'已完成', 3=>'已发货',
10=>'已取消', 9=>'已完成',
])->dot([ 10=>'已取消',
0=>'primary', ])->dot([
1=>'warning', 0=>'primary',
2=>'danger', 1=>'warning',
3=>'success', 2=>'danger',
9=>'success', 3=>'success',
10=>'#b3b9bf', 9=>'success',
]); 10=>'#b3b9bf',
$show->field('total_amount')->as(function ($v) { ]);
return bcdiv($v, 100, 2);
})->prepend('¥');
$show->field('created_at');
$show->html(function () {
$content = '';
if ($this->pay_way) { $show->field('created_at');
$content = '<i class="fa fa-circle" style="font-size: 13px;color: '.$this->pay_way->color().'"></i>&nbsp;&nbsp;'.$this->pay_way->getMallOrderText(); $show->width(6)->field('tags')->as(function () {
} return $this->tags->pluck('name');
})->label();
$show->field('pay_at');
$show->field('pay_way')->unescape()->as(function () {
$content = '';
return <<<HTML if ($this->pay_way) {
<div class="show-field form-group row"> $content = '<i class="fa fa-circle" style="font-size: 13px;color: '.$this->pay_way->color().'"></i>&nbsp;&nbsp;'.$this->pay_way->getMallOrderText();
<div class="col-sm-2 control-label"> }
<span>支付方式</span>
</div>
<div class="col-sm-8"> return $content;
<div class="box box-solid box-default no-margin box-show"> });
<div class="box-body">{$content}&nbsp;</div>
</div>
</div>
</div>
HTML;
}); });
$show->field('pay_at'); $show->row(function (Show\Row $show) {
$show->field('tags')->as(function () { $show->width(6)->field('consignee_name');
return $this->tags->pluck('name'); $show->field('consignee_telephone');
})->label(); $show->width(12)->field('consignee')->width(10, 1)->as(function () {
$show->divider(); return $this->consignee_zone . ' '. $this->consignee_address;
$show->field('consignee_name'); });
$show->field('consignee_telephone');
$show->field('consignee')->as(function () {
return $this->consignee_zone . ' '. $this->consignee_address;
}); });
// $show->field('user.phone'); $userCouponId = $show->model()->user_coupon_id;
$show->divider(); $show->row(function (Show\Row $show) use ($userCouponId) {
$show->field('products_total_amount')->as(function ($v) { $show->width(6)->field('products_total_amount')->as(function ($v) {
return bcdiv($v, 100, 2); return bcdiv($v, 100, 2);
})->prepend('¥'); })->prepend('¥');
$show->field('vip_discount_amount')->as(function ($v) { $show->field('vip_discount_amount')->as(function ($v) {
return bcdiv($v, 100, 2);
})->prepend('- ¥');
if ($show->model()->user_coupon_id) {
$show->field('user_coupon.coupon_name', '优惠券')->label();
$show->field('coupon_discount_amount')->as(function ($v) {
return bcdiv($v, 100, 2); return bcdiv($v, 100, 2);
})->prepend('- ¥'); })->prepend('- ¥');
} if ($userCouponId) {
$show->field('shipping_fee')->as(function ($v) { $show->field('user_coupon.coupon_name', '优惠券')->label();
return bcdiv($v, 100, 2); $show->field('coupon_discount_amount')->as(function ($v) {
})->prepend('+ ¥'); return bcdiv($v, 100, 2);
$show->field('reduced_amount')->as(function ($v) { })->prepend('- ¥');
return bcdiv($v, 100, 2); }
})->prepend('- ¥'); $show->field('shipping_fee')->as(function ($v) {
$show->divider(); return bcdiv($v, 100, 2);
$show->field('sales_value', '总销售值'); })->prepend('+ ¥');
$show->field('is_settle', '是否结算')->using([ $show->field('reduced_amount')->as(function ($v) {
0=>'未结算', return bcdiv($v, 100, 2);
1=>'已结算', })->prepend('- ¥');
])->dot([ $show->field('total_amount')->as(function ($v) {
0=>'danger', return bcdiv($v, 100, 2);
1=>'success', })->prepend('¥');
]); });
$show->field('completed_at', '完成时间'); $show->row(function (Show\Row $show) use ($userCouponId) {
$show->divider(); $show->width(6)->field('sales_value', '总销售值');
$show->field('note'); $show->field('is_settle', '是否结算')->using([
$show->field('remark'); 0=>'未结算',
1=>'已结算',
])->dot([
0=>'danger',
1=>'success',
]);
$show->field('completed_at', '完成时间');
$show->width(12)->field('note')->width(10, 1);
$show->width(12)->field('remark')->width(10, 1);
});
$show->panel() $show->panel()
->tools(function (Show\Tools $tools) use ($show) { ->tools(function (Show\Tools $tools) use ($show) {

View File

@ -60,7 +60,7 @@ class UserController extends AdminController
$grid->column('userInfo.code')->copyable(); $grid->column('userInfo.code')->copyable();
$grid->column('userInfo.agent_level')->display(function ($value) { $grid->column('userInfo.agent_level')->display(function ($value) {
return $this->userInfo?->agent_level_name??'未知'; return $this->userInfo?->agent_level_name ?? '未知';
})->label(); })->label();
$grid->column('userInfo.inviterInfo.user.phone')->copyable(); $grid->column('userInfo.inviterInfo.user.phone')->copyable();
@ -71,18 +71,18 @@ class UserController extends AdminController
Grid\Column\Filter\Between::make() Grid\Column\Filter\Between::make()
); );
$grid->column('wallet.balance')->display(function ($value) { $grid->column('wallet.balance')->display(function ($value) {
$value = bcdiv($value, 100, 2); $value = bcdiv($value, 100, 2);
if ($this->wallet?->is_frozen) { if ($this->wallet?->is_frozen) {
$value.= " &nbsp;<span class='label' style='background:#b3b9bf'>冻结</span>"; $value .= " &nbsp;<span class='label' style='background:#b3b9bf'>冻结</span>";
} }
return $value; return $value;
})->prepend('¥')->filter( })->prepend('¥')->filter(
PriceBetween::make() PriceBetween::make()
); );
$grid->column('balance.balance')->display(function ($value) { $grid->column('balance.balance')->display(function ($value) {
$value = bcdiv($value, 100, 2); $value = bcdiv($value, 100, 2);
if ($this->balance?->is_frozen) { if ($this->balance?->is_frozen) {
$value.= " &nbsp;<span class='label' style='background:#b3b9bf'>冻结</span>"; $value .= " &nbsp;<span class='label' style='background:#b3b9bf'>冻结</span>";
} }
return $value; return $value;
})->prepend('¥')->filter( })->prepend('¥')->filter(
@ -170,34 +170,39 @@ class UserController extends AdminController
$row->column(5, function ($column) use ($id) { $row->column(5, function ($column) use ($id) {
$builder = User::with(['userInfo', 'wallet', 'balance', 'userInfo.inviterInfo.user']); $builder = User::with(['userInfo', 'wallet', 'balance', 'userInfo.inviterInfo.user']);
$column->row(Show::make($id, $builder, function (Show $show) { $column->row(Show::make($id, $builder, function (Show $show) {
$show->field('id'); $show->row(function (Show\Row $show) {
$show->field('phone'); $show->width(12)->field('id')->width(10, 1);
$show->field('user_info.nickname'); $show->width(6)->field('phone');
$show->field('user_info.gender')->using(UserInfo::$genderTexts)->label(); $show->field('user_info.inviter_info.user.phone');
$show->field('user_info.birthday'); $show->field('user_info.nickname');
$show->field('user_info.agent_level')->as(function ($value) { $show->field('user_info.gender')->using(UserInfo::$genderTexts)->label();
return $this->userInfo?->agent_level_name??'未知'; $show->field('user_info.birthday');
})->label(); $show->field('user_info.agent_level')->as(function ($value) {
$show->field('user_info.inviter_info.user.phone'); return $this->userInfo?->agent_level_name ?? '未知';
$show->field('user_info.growth_value'); })->label();
$show->field('user_info.group_sales_value');
$show->field('wallet.balance')->as(function ($value) { $show->field('user_info.growth_value');
$value = bcdiv($value, 100, 2); $show->field('user_info.group_sales_value');
return $value;
})->prepend('¥'); $show->field('wallet.balance')->as(function ($value) {
$show->field('balance.balance')->as(function ($value) { $value = bcdiv($value, 100, 2);
$value = bcdiv($value, 100, 2); return $value;
return $value; })->prepend('¥');
})->prepend('¥'); $show->field('balance.balance')->as(function ($value) {
$show->field('user_info.quota_v2'); $value = bcdiv($value, 100, 2);
$show->field('user_info.quota_v1'); return $value;
$show->field('user_info.points'); })->prepend('¥');
$show->field('user_info.quota_v2');
$show->field('user_info.quota_v1');
$show->field('user_info.points');
});
$show->row(function (Show\Row $show) {
$show->width(6)->field('last_login_ip');
$show->field('last_login_at');
$show->field('register_ip');
$show->field('created_at');
});
$show->field('last_login_ip');
$show->field('last_login_at');
$show->field('register_ip');
$show->field('created_at');
$show->panel() $show->panel()
->tools(function ($tools) use ($show) { ->tools(function ($tools) use ($show) {
$tools->disableEdit(); $tools->disableEdit();

View File

@ -140,7 +140,7 @@ class Users extends Donut
<div class="chart-info d-flex justify-content-between mb-1"> <div class="chart-info d-flex justify-content-between mb-1">
<div class="series-info d-flex align-items-center"> <div class="series-info d-flex align-items-center">
<i class="fa fa-circle-o text-bold-700 text-warning"></i> <i class="fa fa-circle-o text-bold-700 text-warning"></i>
<span class="text-bold-600 ml-50">店铺</span> <span class="text-bold-600 ml-50">会员</span>
</div> </div>
<div class="product-result"> <div class="product-result">
<span>{$vip}</span> <span>{$vip}</span>
@ -149,7 +149,7 @@ class Users extends Donut
<div class="chart-info d-flex justify-content-between mb-1"> <div class="chart-info d-flex justify-content-between mb-1">
<div class="series-info d-flex align-items-center"> <div class="series-info d-flex align-items-center">
<i class="fa fa-circle-o text-bold-700 text-danger"></i> <i class="fa fa-circle-o text-bold-700 text-danger"></i>
<span class="text-bold-600 ml-50">社区</span> <span class="text-bold-600 ml-50">铁牌会员</span>
</div> </div>
<div class="product-result"> <div class="product-result">
<span>{$community}</span> <span>{$community}</span>
@ -158,7 +158,7 @@ class Users extends Donut
<div class="chart-info d-flex justify-content-between mb-1" > <div class="chart-info d-flex justify-content-between mb-1" >
<div class="series-info d-flex align-items-center"> <div class="series-info d-flex align-items-center">
<i class="fa fa-circle-o text-bold-700 text-info"></i> <i class="fa fa-circle-o text-bold-700 text-info"></i>
<span class="text-bold-600 ml-50">区级</span> <span class="text-bold-600 ml-50">铜牌会员</span>
</div> </div>
<div class="product-result"> <div class="product-result">
<span>{$district}</span> <span>{$district}</span>
@ -168,7 +168,7 @@ class Users extends Donut
<div class="chart-info d-flex justify-content-between mb-1"> <div class="chart-info d-flex justify-content-between mb-1">
<div class="series-info d-flex align-items-center"> <div class="series-info d-flex align-items-center">
<i class="fa fa-circle-o text-bold-700 text-primary"></i> <i class="fa fa-circle-o text-bold-700 text-primary"></i>
<span class="text-bold-600 ml-50">市级</span> <span class="text-bold-600 ml-50">银牌会员</span>
</div> </div>
<div class="product-result"> <div class="product-result">
<span>{$city}</span> <span>{$city}</span>
@ -178,7 +178,7 @@ class Users extends Donut
<div class="chart-info d-flex justify-content-between mb-1"> <div class="chart-info d-flex justify-content-between mb-1">
<div class="series-info d-flex align-items-center"> <div class="series-info d-flex align-items-center">
<i class="fa fa-circle-o text-bold-700 text-warning"></i> <i class="fa fa-circle-o text-bold-700 text-warning"></i>
<span class="text-bold-600 ml-50">省级</span> <span class="text-bold-600 ml-50">金牌会员</span>
</div> </div>
<div class="product-result"> <div class="product-result">
<span>{$province}</span> <span>{$province}</span>
@ -187,7 +187,7 @@ class Users extends Donut
<div class="chart-info d-flex justify-content-between mb-1"> <div class="chart-info d-flex justify-content-between mb-1">
<div class="series-info d-flex align-items-center"> <div class="series-info d-flex align-items-center">
<i class="fa fa-circle-o text-bold-700 text-danger"></i> <i class="fa fa-circle-o text-bold-700 text-danger"></i>
<span class="text-bold-600 ml-50">分公司</span> <span class="text-bold-600 ml-50">钻石会员</span>
</div> </div>
<div class="product-result"> <div class="product-result">
<span>{$branch}</span> <span>{$branch}</span>
@ -196,7 +196,7 @@ class Users extends Donut
<div class="chart-info d-flex justify-content-between mb-1"> <div class="chart-info d-flex justify-content-between mb-1">
<div class="series-info d-flex align-items-center"> <div class="series-info d-flex align-items-center">
<i class="fa fa-circle-o text-bold-700 text-info"></i> <i class="fa fa-circle-o text-bold-700 text-info"></i>
<span class="text-bold-600 ml-50">董事</span> <span class="text-bold-600 ml-50">默认用户</span>
</div> </div>
<div class="product-result"> <div class="product-result">
<span>{$director}</span> <span>{$director}</span>

View File

@ -34,7 +34,7 @@ class AgentController extends Controller
], ],
// 代理 // 代理
'agents_count' => [ 'agents_count' => [
'label' => '店铺', 'label' => '会员',
'current_agents_count' => $userInfo->getVipAgentsCount(), 'current_agents_count' => $userInfo->getVipAgentsCount(),
'upgrade_agents_count' => $rules['community']['vips_agents_count'], 'upgrade_agents_count' => $rules['community']['vips_agents_count'],
], ],
@ -50,7 +50,7 @@ class AgentController extends Controller
'upgrade_team_sales_value' => (string) $rules['district']['team_sales_value'], 'upgrade_team_sales_value' => (string) $rules['district']['team_sales_value'],
], ],
'agents_count' => [ 'agents_count' => [
'label' => '店铺', 'label' => '会员',
'current_agents_count' => $userInfo->getVipAgentsCount(), 'current_agents_count' => $userInfo->getVipAgentsCount(),
'upgrade_agents_count' => $rules['district']['vips_agents_count'], 'upgrade_agents_count' => $rules['district']['vips_agents_count'],
], ],
@ -66,7 +66,7 @@ class AgentController extends Controller
'upgrade_team_sales_value' => (string) $rules['city']['team_sales_value'], 'upgrade_team_sales_value' => (string) $rules['city']['team_sales_value'],
], ],
'agents_count' => [ 'agents_count' => [
'label' => '区代', 'label' => '铜牌会员',
'current_agents_count' => $userInfo->getDistrictAgentsCountOnDifferentLines(), 'current_agents_count' => $userInfo->getDistrictAgentsCountOnDifferentLines(),
'upgrade_agents_count' => $rules['city']['district_agents_count'], 'upgrade_agents_count' => $rules['city']['district_agents_count'],
], ],
@ -82,7 +82,7 @@ class AgentController extends Controller
'upgrade_team_sales_value' => (string) $rules['province']['team_sales_value'], 'upgrade_team_sales_value' => (string) $rules['province']['team_sales_value'],
], ],
'agents_count' => [ 'agents_count' => [
'label' => '市代', 'label' => '银牌会员',
'current_agents_count' => $userInfo->getCityAgentsCountOnDifferentLines(), 'current_agents_count' => $userInfo->getCityAgentsCountOnDifferentLines(),
'upgrade_agents_count' => $rules['province']['city_agents_count'], 'upgrade_agents_count' => $rules['province']['city_agents_count'],
], ],
@ -98,7 +98,7 @@ class AgentController extends Controller
'upgrade_team_sales_value' => (string) $rules['branch']['team_sales_value'], 'upgrade_team_sales_value' => (string) $rules['branch']['team_sales_value'],
], ],
'agents_count' => [ 'agents_count' => [
'label' => '省代', 'label' => '金牌会员',
'current_agents_count' => $userInfo->getProvinceAgentsCountOnDifferentLines(), 'current_agents_count' => $userInfo->getProvinceAgentsCountOnDifferentLines(),
'upgrade_agents_count' => $rules['branch']['province_agents_count'], 'upgrade_agents_count' => $rules['branch']['province_agents_count'],
], ],

View File

@ -116,13 +116,13 @@ class UserInfo extends Model
*/ */
public static $agentLevelTexts = [ public static $agentLevelTexts = [
self::AGENT_LEVEL_CIVILIAN => '粉丝', self::AGENT_LEVEL_CIVILIAN => '粉丝',
self::AGENT_LEVEL_VIP => '店铺', self::AGENT_LEVEL_VIP => '会员',
self::AGENT_LEVEL_COMMUNITY => '社区', self::AGENT_LEVEL_COMMUNITY => '铁牌会员',
self::AGENT_LEVEL_DISTRICT => '区级', self::AGENT_LEVEL_DISTRICT => '铜牌会员',
self::AGENT_LEVEL_CITY => '市级', self::AGENT_LEVEL_CITY => '银牌会员',
self::AGENT_LEVEL_PROVINCE => '省级', self::AGENT_LEVEL_PROVINCE => '金牌会员',
self::AGENT_LEVEL_BRANCH => '分公司', self::AGENT_LEVEL_BRANCH => '钻石会员',
self::AGENT_LEVEL_DIRECTOR => '董事', self::AGENT_LEVEL_DIRECTOR => '默认用户',
]; ];
/** /**