diff --git a/app/admin/logic/distribution/ApplyLogic.php b/app/admin/logic/distribution/ApplyLogic.php index 1f382c17..b52cb7cb 100755 --- a/app/admin/logic/distribution/ApplyLogic.php +++ b/app/admin/logic/distribution/ApplyLogic.php @@ -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'], diff --git a/app/admin/view/distribution/apply/detail.html b/app/admin/view/distribution/apply/detail.html index f5eb194d..b28c4250 100755 --- a/app/admin/view/distribution/apply/detail.html +++ b/app/admin/view/distribution/apply/detail.html @@ -31,11 +31,15 @@
{$detail.mobile}
- -
{$detail.id_card}
+ +
- + + +
+
+
diff --git a/app/admin/view/distribution/apply/lists.html b/app/admin/view/distribution/apply/lists.html index 18840eb6..ee29093a 100755 --- a/app/admin/view/distribution/apply/lists.html +++ b/app/admin/view/distribution/apply/lists.html @@ -55,6 +55,9 @@

会员等级:{{d.user.level.name || '未知'}}

+ + @@ -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"} ]);