改进 不需要实名也可以获得佣金
This commit is contained in:
parent
2c04c3144b
commit
793a278e13
@ -55,9 +55,9 @@ public function addRevenue(string $revenue): void
|
|||||||
{
|
{
|
||||||
$this->load('user');
|
$this->load('user');
|
||||||
|
|
||||||
if (! $this->user->isRealNamed()) {
|
// if (! $this->user->isRealNamed()) {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
$this->load('affiliate.user');
|
$this->load('affiliate.user');
|
||||||
|
|
||||||
|
@ -6,13 +6,13 @@
|
|||||||
|
|
||||||
<h3>加入推介计划</h3>
|
<h3>加入推介计划</h3>
|
||||||
<p>
|
<p>
|
||||||
让更多人用上我们的产品,您将从他们实人认证成功之后的每笔充值中获取 {{ config('settings.billing.commission_referral') * 100 . '%' }}
|
让更多人用上我们的产品,您将从他们每笔充值中获取 {{ config('settings.billing.commission_referral') * 100 . '%' }}
|
||||||
的佣金。</p>
|
的佣金。</p>
|
||||||
|
|
||||||
{{-- @php($amount = 1)--}}
|
{{-- @php($amount = 1)--}}
|
||||||
|
|
||||||
{{-- <p>比如,下属用户在实人认证成功后充值了 {{$amount}}--}}
|
{{-- <p>比如,下属用户在实人认证成功后充值了 {{$amount}}--}}
|
||||||
{{-- 元,您将获得 {{ $amount / (config('settings.billing.commission_referral') * 100) }} 元的佣金。</p>--}}
|
{{-- 元,您将获得 {{ $amount / (config('settings.billing.commission_referral') * 100) }} 元的佣金。</p>--}}
|
||||||
|
|
||||||
@if ($user->affiliate_id)
|
@if ($user->affiliate_id)
|
||||||
<span>您被 {{ $user->affiliateUser->affiliate->user->name }}#{{ $user->affiliateUser->affiliate->user_id }} 引荐。</span>
|
<span>您被 {{ $user->affiliateUser->affiliate->user->name }}#{{ $user->affiliateUser->affiliate->user_id }} 引荐。</span>
|
||||||
|
@ -22,25 +22,27 @@
|
|||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
<th scope="col">ID</th>
|
||||||
<th scope="col">用户名</th>
|
<th scope="col">用户名</th>
|
||||||
<th scope="col">盈利</th>
|
<th scope="col">盈利</th>
|
||||||
<th scope="col">实人状态</th>
|
{{-- <th scope="col">实人状态</th>--}}
|
||||||
<th scope="col">注册时间</th>
|
<th scope="col">注册时间</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($affiliateUsers as $user)
|
@foreach($affiliateUsers as $user)
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>{{ $user->id }}</td>
|
||||||
<td>{{ $user->user->name }}</td>
|
<td>{{ $user->user->name }}</td>
|
||||||
<td>{{ $user->revenue }} 元</td>
|
<td>{{ $user->revenue }} 元</td>
|
||||||
|
|
||||||
<td>
|
{{-- <td>--}}
|
||||||
@if ($user->real_name_verified_at)
|
{{-- @if ($user->real_name_verified_at)--}}
|
||||||
完成
|
{{-- 完成--}}
|
||||||
@else
|
{{-- @else--}}
|
||||||
<span class="text-danger">未完成</span>
|
{{-- <span class="text-danger">未完成</span>--}}
|
||||||
@endif
|
{{-- @endif--}}
|
||||||
</td>
|
{{-- </td>--}}
|
||||||
|
|
||||||
<td>{{ $user->created_at }}</td>
|
<td>{{ $user->created_at }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -55,7 +57,7 @@
|
|||||||
|
|
||||||
<h4>金额到账时间</h4>
|
<h4>金额到账时间</h4>
|
||||||
<p>
|
<p>
|
||||||
当您的下属用户完成实人认证后并充值,之后的充值所获得的佣金将会立即到您的余额。
|
下属用户充值所获得的佣金将会立即到您的余额。
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h4>佣金计算方式</h4>
|
<h4>佣金计算方式</h4>
|
||||||
|
Loading…
Reference in New Issue
Block a user