1.分销审核信息优化

This commit is contained in:
xucong 2024-08-15 11:11:30 +08:00
parent ae80346463
commit 3aa1cda472
3 changed files with 31 additions and 5 deletions

@ -53,7 +53,18 @@ class ApplyLogic extends Logic
foreach ($lists['data'] as &$item) {
if ($item['user']) {
$item['user']['avatar'] = UrlServer::getFileUrl($item['user']['avatar']);
$first_leader = Db::name("user")
->where("id", $item['user']['first_leader'])
->where("disable",0)
->where("del",0)
->find();
if($first_leader != null){
$item['user']['first_leader_real_name'] = $first_leader['real_name'];
}else{
$item['user']['first_leader_real_name'] = "";
}
}
$item['region'] = AreaServer::getAddress([
$item['province'],
$item['city'],

@ -31,11 +31,15 @@
<div class="layui-input-block">{$detail.mobile}</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">身份证号码:</label>
<div class="layui-input-block">{$detail.id_card}</div>
<label class="layui-form-label">身份证正面:</label>
<img src="{$detail.front_id_card}" style="width: 120px;height: 120px" alt="">
</div>
<div class="layui-form-item">
<label class="layui-form-label">手持身份证照片:</label>
<label class="layui-form-label">身份证反面:</label>
<img src="{$detail.back_id_card}" style="width: 120px;height: 120px" alt="">
</div>
<div class="layui-form-item">
<label class="layui-form-label">自拍照:</label>
<img src="{$detail.hand_id_card}" style="width: 120px;height: 120px" alt="">
</div>
<div class="layui-form-item">

@ -55,6 +55,9 @@
<p>会员等级:{{d.user.level.name || '未知'}}</p>
</div>
</script>
<script type="text/html" id="first_leader_real_name">
<p>{{d.user.first_leader_real_name}}</p>
</script>
<script type="text/html" id="table-operation">
<a class="layui-btn layui-btn-primary layui-btn-sm" lay-event="detail">申请详情</a>
{{# if(d.status === 0){ }}
@ -65,6 +68,12 @@
</div>
<!--会员信息-->
<script type="text/html" id="front_id_card">
<img src="{{d.front_id_card}}" style="height:80px;width: 80px" class="image-show">
</script>
<script type="text/html" id="back_id_card">
<img src="{{d.back_id_card}}" style="height:80px;width: 80px" class="image-show">
</script>
<script type="text/html" id="handIdCard">
<img src="{{d.hand_id_card}}" style="height:80px;width: 80px" class="image-show">
</script>
@ -85,8 +94,10 @@
,{field:"real_name", width:100, align:"center", title:"真实姓名"}
,{field:"mobile", width:120, align:"center",title:"联系手机"}
,{field:"region", width:150, align:"center", title:"现住区域"}
,{field:"id_card", width:150, align:"center", title:"身份证号"}
,{field:"hand_id_card", width:150, align:"center", title:"手持身份证照片", templet:'#handIdCard'}
,{field:"first_leader_real_name", width:150, align:"center", title:"上级推广人",templet:'#first_leader_real_name'}
,{field:"front_id_card", width:150, align:"center", title:"身份证正面",templet:'#front_id_card'}
,{field:"back_id_card", width:150, align:"center", title:"身份证反面", templet:'#back_id_card'}
,{field:"hand_id_card", width:150, align:"center", title:"自拍照", templet:'#hand_id_card'}
,{field:"reason", width:150, align:"center", title:"申请原因"}
,{title:"操作", width:230, align:"center", fixed:"right", toolbar:"#table-operation"}
]);