Browse Source

会员部分修改

shensong 5 years ago
parent
commit
a52688b79f

+ 1 - 2
app/Http/Controllers/Admin/CustomerDepositController.php

@@ -420,8 +420,6 @@ class CustomerDepositController extends Controller
420 420
             //销售人员
421 421
             $item['admin_name'] = $admin->realname;
422 422
 
423
-            $item['phone'] = is_numeric($item['phone']) ? substr_replace($item['phone'], '****', 3, 4) : $item['phone'];
424
-
425 423
             if($item['payment_type'] == 1){
426 424
                 $item['payment'] = '微信支付';
427 425
             } else if($item['payment_type'] == 3){
@@ -803,6 +801,7 @@ class CustomerDepositController extends Controller
803 801
         $phone = $request->input('phone');
804 802
 
805 803
         $couponList = CustomerCoupons::getCustomerCouponsLog($phone);
804
+
806 805
         $couponList = array_map(function($value){
807 806
             $item = $value;
808 807
             if($value['is_use'] == 1){

+ 1 - 1
resources/views/customer/vipCustomerList.blade.php

@@ -54,7 +54,7 @@
54 54
             @foreach($result as $a)
55 55
             <tr class="text-c">
56 56
                 <td class="text-c">{{$a['name']}}</td>
57
-                <td class="text-c">{{$a['phone']}}</td>
57
+                <td class="text-c">{{is_numeric($a['phone']) ? substr_replace($a['phone'], '****', 3, 4) : $a['phone']}}</td>
58 58
                 <td class="text-c">{{$a['vip_end_time']}}</td>
59 59
                 <td class="text-c">{{date("m-d",strtotime($a['birthday']))}}</td>
60 60
                 <td class="text-c">{{$a['admin_name']}}</td>