Merge branch 'feature/admin_optimize' into release

master
zhengchanglong 5 years ago
commit 4269f0787b

@ -318,7 +318,9 @@ class MemberController extends ThinkController
$this->assign('_page', $page); $this->assign('_page', $page);
} }
$this->assign('list_data', $data); $this->assign('list_data', $data);
$this->assign("is_admin",is_administrator()); //$this->assign("is_admin",is_administrator());
$show_data_power = (is_administrator()|| session('user_auth')['show_data']);
$this->assign('show_data_power', $show_data_power);
$this->display(); $this->display();
} }
@ -841,6 +843,8 @@ class MemberController extends ThinkController
$this->m_title = '玩家列表'; $this->m_title = '玩家列表';
$this->assign("is_admin",is_administrator()); $this->assign("is_admin",is_administrator());
$show_data_power = (is_administrator()|| session('user_auth')['show_data']);
$this->assign('show_data_power', $show_data_power);
$this->assign('commonset', M('Kuaijieicon')->where(['url' => 'Member/user_info', 'status' => 1])->find()); $this->assign('commonset', M('Kuaijieicon')->where(['url' => 'Member/user_info', 'status' => 1])->find());
$this->display(); $this->display();
} }

@ -112,7 +112,7 @@
<if condition="$data['real_name'] eq null"> <if condition="$data['real_name'] eq null">
<input type="text" class="txt" value="" readonly> <input type="text" class="txt" value="" readonly>
<else/> <else/>
<if condition="$is_admin eq true "> <if condition="$show_data_power eq true ">
<input type="text" class="txt" value="{$data['real_name']}" readonly> <input type="text" class="txt" value="{$data['real_name']}" readonly>
<else /> <else />
<input type="text" class="txt" value="{$data['real_name']|encryptRealName}" readonly> <input type="text" class="txt" value="{$data['real_name']|encryptRealName}" readonly>
@ -124,7 +124,7 @@
<tr> <tr>
<td class="l">身份证号</td> <td class="l">身份证号</td>
<td class="r"> <td class="r">
<if condition="$is_admin eq true "> <if condition="$show_data_power eq true ">
<input type="text" class="txt" value="{$data['idcard']}" readonly> <input type="text" class="txt" value="{$data['idcard']}" readonly>
<else /> <else />
<input type="text" class="txt" value="{$data['idcard']|encryptIdCard}" readonly> <input type="text" class="txt" value="{$data['idcard']|encryptIdCard}" readonly>
@ -145,7 +145,7 @@
<tr> <tr>
<td class="l noticeinfo">手机号码</td> <td class="l noticeinfo">手机号码</td>
<td class="r pr"> <td class="r pr">
<if condition="$is_admin eq true "> <if condition="$show_data_power eq true ">
<input type="text" class="txt " value="{$data['phone']}" placeholder="暂无手机号码" readonly> <input type="text" class="txt " value="{$data['phone']}" placeholder="暂无手机号码" readonly>
<else /> <else />
<input type="text" class="txt " value="{$data['phone']|encryptStr}" placeholder="暂无手机号码" readonly> <input type="text" class="txt " value="{$data['phone']|encryptStr}" placeholder="暂无手机号码" readonly>

@ -249,17 +249,17 @@
{$data.account} {$data.account}
<else /> <else />
{$data.account|encryptStr} {$data.account|encryptStr}
</if>--> </if>
{$data.account} <!--{$data.account}-->
</td> </td>
<else/> <else/>
<td > <td >
<!-- <if condition="$is_admin eq true "> <if condition="$show_data_power eq true ">
{$data.account} {$data.account}
<else /> <else />
{$data.account|encryptStr} {$data.account|encryptStr}
</if>--> </if>
{$data.account} <!--{$data.account}-->
</td> </td>
</if> </if>
<td > <td >
@ -267,12 +267,12 @@
官方渠道 官方渠道
<else/> <else/>
<empty name='data["promote_account"]'>---<else/> <empty name='data["promote_account"]'>---<else/>
<!-- <if condition="$is_admin eq true "> <if condition="$show_data_power eq true ">
{$data.promote_account} {$data.promote_account}
<else /> <else />
{$data.promote_account|encryptStr} {$data.promote_account|encryptStr}
</if>--> </if>
{$data.promote_account} <!--{$data.promote_account}-->
</empty> </empty>
</if> </if>
</td> </td>
@ -307,12 +307,12 @@
</if> </if>
</td> </td>
<td > <td >
<!-- <if condition="$is_admin eq true "> <if condition="$show_data_power eq true ">
{$data.device_number} {$data.device_number}
<else /> <else />
{$data.device_number|encryptStr} {$data.device_number|encryptStr}
</if>--> </if>
{$data.device_number} <!--{$data.device_number}-->
</td> </td>
<td > <td >
<if condition="get_info_status($data['lock_status'],4) eq 锁定"> <if condition="get_info_status($data['lock_status'],4) eq 锁定">

Loading…
Cancel
Save