|
@@ -31,7 +31,7 @@ class Customer extends Backend
|
|
|
} catch (\Exception $e) {
|
|
|
|
|
|
}
|
|
|
- $postTime = $this->rangeTime('startTime');
|
|
|
+ list($postTime,$postTimeArr) = $this->rangeTime('startTime');
|
|
|
$where = [];
|
|
|
$map = [];
|
|
|
if($postTime){
|
|
@@ -122,8 +122,8 @@ class Customer extends Backend
|
|
|
$this->assignconfig('type_column1', array_keys($payTypeList1));
|
|
|
$this->assignconfig('type_data1', array_values($payTypeList1));
|
|
|
#转化率
|
|
|
- $payCount=\app\admin\model\Orders::payed()->filterDate($postTime?explode(' - ',$postTime):null)->count();
|
|
|
- $viewCount=ViewUnique::filterDate($postTime?explode(' - ',$postTime):null,0,'date')->sum('num');
|
|
|
+ $payCount=\app\admin\model\Orders::payed()->filterDate($postTimeArr)->count();
|
|
|
+ $viewCount=ViewUnique::filterDate($postTimeArr,0,'date')->sum('num');
|
|
|
$payTransPer=$viewCount?bcmul(100,bcdiv($payCount,$viewCount)):0;
|
|
|
$this->assign('payTransPer',$payTransPer);
|
|
|
return $this->view->fetch();
|