edit-sylive-gw_list

This commit is contained in:
lccsw
2022-10-29 17:01:51 +08:00
parent 6f8357ecba
commit 98f060b9bb
2 changed files with 9 additions and 7 deletions
+4 -4
View File
@@ -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'] ? '本人' : '',
];
}
+5 -3
View File
@@ -21,7 +21,7 @@
<template v-else>
<div class="pt10 pb20 text-center"><b class="font-40 text-italic" v-html="title"></b></div>
</template>
<?if($params['kpi']=='order'){?>
<template v-if="kpi=='order' && tabid==1">
<div v-for="(item,index) in list">
<div class="pt30 pb20 fn-flex font-28 color-666" >
<div class="fn-flex-item text-nowrap" flexsize="3">
@@ -37,7 +37,8 @@
<div class="fn-flex-item text-right" flexsize="3">{{item.time}}</div>
</div>
</div>
<?}else{?>
</template>
<template v-else>
<div class="pt30 pb20 fn-flex font-28 color-666" v-for="(item,index) in list">
<div class="fn-flex-item text-nowrap" flexsize="3">
<img class="imgsize-32X32 text-middle ulib-r750 bds-1-eee" :src="item.headimg" alt="#" />
@@ -45,7 +46,7 @@
</div>
<div class="fn-flex-item text-right" flexsize="5">{{item.cf_uname}} {{item.time}}</div>
</div>
<?}?>
</template>
<mugen-scroll :handler="fetchData" :should-handle="!loading" scroll-container="app">
<div class="pt100 pb100 text-center color-ccc" v-if="isNoData"></i><span class="text-middle font-22">暂无数据</span></div>
<div class="pt20 pb20 text-center color-ccc" v-else-if="loading"><i class="iconfont icon-jiazai text-middle"></i><span class="text-middle font-22">请稍等...</span></div>
@@ -72,6 +73,7 @@
size: 20, //每页取多少个数据
title:'<?=$title?>',
list:[],
kpi:'<?=$params['kpi']?>'
},
created(){