From 98f060b9bb84d1869df1c6563eb1db55348bd100 Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Sat, 29 Oct 2022 17:01:51 +0800 Subject: [PATCH] edit-sylive-gw_list --- common/libraries/market/Sylive_entity.php | 8 ++++---- home/views/h5/market/sylive/stic/users.php | 8 +++++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/common/libraries/market/Sylive_entity.php b/common/libraries/market/Sylive_entity.php index 6addd5e2..4e648b2b 100644 --- a/common/libraries/market/Sylive_entity.php +++ b/common/libraries/market/Sylive_entity.php @@ -256,7 +256,7 @@ class Sylive_entity{ } //门店用户排行数据 - public function top_biz_user($aid,$biz_id,$uid,$type='browse',$page=1,$size=50){ + public function top_biz_user($aid,$biz_id,$uid,$type='browse',$page=1,$size=90){ if(!$biz_id){ return ['total' => 0, 'lists' => []]; } @@ -288,13 +288,13 @@ class Sylive_entity{ } } foreach ($rows as $item) { - $total = $map[$item['userId']] ? $map[$item['userId']] : '0'; + $num = $map[$item['userId']] ? $map[$item['userId']] : '0'; $lists[] = [ 'uid' => $item['userId'], 'name' => $item['uname'] ? $item['uname'] : $item['nickname'], 'headimg' => $item['headimg'] ? $item['headimg'] : self::DEFAULT_HEAD, - 'total' => $total, - 'num' => "{$total}人", + 'total' => $num, + 'num' => "{$num}人", 'tip' => $uid == $item['userId'] ? '本人' : '', ]; } diff --git a/home/views/h5/market/sylive/stic/users.php b/home/views/h5/market/sylive/stic/users.php index 2af02bb5..30a6754f 100644 --- a/home/views/h5/market/sylive/stic/users.php +++ b/home/views/h5/market/sylive/stic/users.php @@ -21,7 +21,7 @@ - + @@ -37,7 +37,8 @@ {{item.time}} - }else{?> + + @@ -45,7 +46,7 @@ {{item.cf_uname}} {{item.time}} - }?> + 暂无数据 请稍等... @@ -72,6 +73,7 @@ size: 20, //每页取多少个数据 title:'=$title?>', list:[], + kpi:'=$params['kpi']?>' }, created(){