title
This commit is contained in:
xiaoyu
2023-06-09 15:44:39 +08:00
parent b3440fac6f
commit e64404286d
+4 -4
View File
@@ -133,7 +133,7 @@ class Stic extends Admin
$where['kpi'] = 'beforeOrder';
}
$order_count = $this->mdSytActivityKpiData->count($where); //下单数据
$mine[] = ['title' => '下单数', 'num' => "{$order_count}"];
$mine[] = ['title' => '留资数', 'num' => "{$order_count}"];
$sub_lists = [
['title' => '我的', 'lists' => $mine],
];
@@ -161,7 +161,7 @@ class Stic extends Admin
$biz[] = ['title' => '预约用户', 'num' => "{$biz_subscribe_count}", 'url' => "/h5/market/sylive2/stic/users?type=biz&type_id={$group_user['bizId']}&kpi=subscribe"];
$biz[] = ['title' => '预约率', 'num' => $biz_browse_count ? round($biz_subscribe_count / $biz_browse_count * 100, 2) . "%" : 0];
}
$biz[] = ['title' => '下单数', 'num' => "{$order_count}"];
$biz[] = ['title' => '留资数', 'num' => "{$order_count}"];
$sub_lists[] = ['title' => '本店', 'lists' => $biz];
}
if ($group_row['groupsId'] != $group_user['bizId']) {
@@ -201,7 +201,7 @@ class Stic extends Admin
$biz[] = ['title' => '预约用户', 'num' => "{$subscribe_count}", 'url' => $sub_url];
$biz[] = ['title' => '预约率', 'num' => $browse_count ? round($subscribe_count / $browse_count * 100, 2) . "%" : 0];
}
$biz[] = ['title' => '下单数', 'num' => "{$order_count}"];
$biz[] = ['title' => '留资数', 'num' => "{$order_count}"];
$title = $disk[$group_row['groupsLevel'] + 1] ? '所有' . $disk[$group_row['groupsLevel'] + 1] : '所有门店';
$group_row['ifBiz'] && $title = $group_row['groupsName'];
$sub_lists[] = ['title' => "{$title}", 'lists' => $biz];
@@ -263,7 +263,7 @@ class Stic extends Admin
$biz_subscribe_count = $this->mdSytActivityKpiData->count($where); //下单数据
$biz = [
['title' => '观看用户', 'num' => "{$biz_browse_count}", 'url' => "/h5/market/sylive2/stic/users?type=biz&type_id={$biz_id}&kpi=watch"],
['title' => '单数', 'num' => "{$biz_subscribe_count}", 'url' => "/h5/market/sylive2/stic/users?type=biz&type_id={$biz_id}&kpi=order"],
['title' => '单数', 'num' => "{$biz_subscribe_count}", 'url' => "/h5/market/sylive2/stic/users?type=biz&type_id={$biz_id}&kpi=order"],
['title' => '转化率', 'num' => $biz_browse_count ? round($biz_subscribe_count / $biz_browse_count * 100, 2) . "%" : 0],
];
$sub_lists[] = ['title' => '本店', 'lists' => $biz];