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 @@ - + +
暂无数据
请稍等...
@@ -72,6 +73,7 @@ size: 20, //每页取多少个数据 title:'', list:[], + kpi:'' }, created(){