|
@@ -330,7 +330,7 @@ class TemplateController extends Controller
|
330
|
330
|
|
331
|
331
|
//点击率
|
332
|
332
|
$v['click_rate'] = $v['pv_count']>0 && $v['long_count']>0 ? round( $v['long_count'] / $v['pv_count'], 4 ) * 100 . '%' : '';
|
333
|
|
- $v['change_rate'] = $v['long_count']>0 && $v['fan_add']>0 ? round( $v['fan_add'] / $v['long_count'], 4 ) * 100 . '%' : '';
|
|
333
|
+ $v['change_rate'] = $v['pv_count']>0 && $v['fan_add']>0 ? round( $v['fan_add'] / $v['pv_count'], 4 ) * 100 . '%' : '';
|
334
|
334
|
}
|
335
|
335
|
|
336
|
336
|
$teamList = DB::table('teams')->select('id', 'name')->get();
|
|
@@ -393,7 +393,7 @@ class TemplateController extends Controller
|
393
|
393
|
|
394
|
394
|
//点击率
|
395
|
395
|
$v['click_rate'] = $v['pv_count']>0 && $v['long_count']>0 ? round( $v['long_count'] / $v['pv_count'], 4 ) * 100 . '%' : '';
|
396
|
|
- $v['change_rate'] = $v['long_count']>0 && $v['fan_add']>0 ? round( $v['fan_add'] / $v['long_count'], 4 ) * 100 . '%' : '';
|
|
396
|
+ $v['change_rate'] = $v['pv_count']>0 && $v['fan_add']>0 ? round( $v['fan_add'] / $v['pv_count'], 4 ) * 100 . '%' : '';
|
397
|
397
|
}
|
398
|
398
|
|
399
|
399
|
$indexKey = ['day','admin_name','pv_count','long_count','fan_add','click_rate','change_rate','new_reply','new_consult','old_consult'];
|
|
@@ -664,7 +664,7 @@ class TemplateController extends Controller
|
664
|
664
|
|
665
|
665
|
//点击率
|
666
|
666
|
//$v['click_rate'] = $v['pv_count']>0 && $v['long_count']>0 ? round( $v['long_count'] / $v['pv_count'], 4 ) * 100 . '%' : '';
|
667
|
|
- $v['change_rate'] = $v['long_count']>0 && $v['fan_add']>0 ? round( $v['fan_add'] / $v['long_count'], 4 ) * 100 . '%' : '';
|
|
667
|
+ $v['change_rate'] = $v['pv_count']>0 && $v['fan_add']>0 ? round( $v['fan_add'] / $v['pv_count'], 4 ) * 100 . '%' : '';
|
668
|
668
|
|
669
|
669
|
//1.获取当月新粉
|
670
|
670
|
$phones = DB::table('customers')->whereRaw('left(fanTime,7)="'.$v['month'].'"')->lists('phone');
|
|
@@ -753,7 +753,7 @@ class TemplateController extends Controller
|
753
|
753
|
|
754
|
754
|
//点击率
|
755
|
755
|
//$v['click_rate'] = $v['pv_count']>0 && $v['long_count']>0 ? round( $v['long_count'] / $v['pv_count'], 4 ) * 100 . '%' : '';
|
756
|
|
- $v['change_rate'] = $v['long_count']>0 && $v['fan_add']>0 ? round( $v['fan_add'] / $v['long_count'], 4 ) * 100 . '%' : '';
|
|
756
|
+ $v['change_rate'] = $v['pv_count']>0 && $v['fan_add']>0 ? round( $v['fan_add'] / $v['pv_count'], 4 ) * 100 . '%' : '';
|
757
|
757
|
|
758
|
758
|
//1.获取当月新粉
|
759
|
759
|
$phones = DB::table('customers')->whereRaw('left(fanTime,7)="'.$v['month'].'"')->lists('phone');
|