edit-sylive-rank
This commit is contained in:
@@ -25,9 +25,12 @@ class Sylive_data_entity{
|
||||
}
|
||||
|
||||
/**
|
||||
* 更具kpi排名
|
||||
* @param $where
|
||||
* @return void
|
||||
* 根据kpi排名
|
||||
* @param $params
|
||||
* @param $page
|
||||
* @param $size
|
||||
* @param $biz_id
|
||||
* @return array
|
||||
*/
|
||||
public function top_biz_kpidata($params, $page=1, $size=10, $biz_id=0){
|
||||
$t1 = 'lc_market_sylive_activity_biz';
|
||||
@@ -84,7 +87,7 @@ class Sylive_data_entity{
|
||||
return $data;
|
||||
}
|
||||
|
||||
//排行数据
|
||||
//门店排行数据
|
||||
public function top_lists($aid,$type='browse',$page=1,$size=10,$biz_id=0){
|
||||
$lists = [];
|
||||
$where = [
|
||||
@@ -117,6 +120,96 @@ class Sylive_data_entity{
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 大区数据排行
|
||||
* @param $params
|
||||
* @param $page
|
||||
* @param $size
|
||||
* @param $area_id
|
||||
* @return array
|
||||
*/
|
||||
public function top_area_lists($a_id,$type='', $page=1, $size=20){
|
||||
$lists = [];
|
||||
$filed = $this->map_kpi_biz[$type];
|
||||
if(!$filed){
|
||||
return ['lists' => $lists,'total' => 0];
|
||||
}
|
||||
$where = [
|
||||
'activityId' => $a_id,
|
||||
'areaId>' => 0
|
||||
];
|
||||
$select = "areaId,sum({$filed}) as t";
|
||||
$rows = $this->ci->act_user_model->select_groupby("areaId",$where,"t desc",$page,$size,$select);
|
||||
if($rows){
|
||||
$area_ids = implode(',',array_column($rows,'areaId'));
|
||||
$org_rows = [];
|
||||
if($area_ids){
|
||||
$org_rows = $this->ci->market_sylive_organization_model->map('organizationId','organizationName',["organizationId in ($area_ids)"],'','','','organizationId,organizationName');
|
||||
}
|
||||
$start = $page>1 ? ($page-1)*$size : 0;
|
||||
foreach ($rows as $key=>$val) {
|
||||
$lists[] = [
|
||||
'ranking' => $start+$key+1,
|
||||
'name' => $org_rows[$val['areaId']] ? $org_rows[$val['areaId']] : '',
|
||||
'num' => $val['t'].'人',
|
||||
'tip' => '',
|
||||
];
|
||||
}
|
||||
}
|
||||
$data = [
|
||||
'total' => 0,
|
||||
'lists' => $lists
|
||||
];
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 顾问排行
|
||||
* @param $a_id
|
||||
* @param $type
|
||||
* @param $page
|
||||
* @param $size
|
||||
* @return array
|
||||
*/
|
||||
public function top_gw_lists($a_id,$type='',$other_where=[], $page=1, $size=20,$userId=0){
|
||||
$lists = [];
|
||||
$filed = $this->map_kpi_biz[$type];
|
||||
if(!$filed){
|
||||
return ['lists' => $lists,'total' => 0];
|
||||
}
|
||||
$where = [
|
||||
'activityId' => $a_id,
|
||||
'organizationId>' => 0
|
||||
];
|
||||
$other_where && $where = array_merge($where,$other_where);
|
||||
$select = "userId,{$filed} as t";
|
||||
$total = $this->ci->act_user_model->count($where);
|
||||
if($total){
|
||||
$rows = $this->ci->act_user_model->select($where,"t desc",$page,$size,$select);
|
||||
$user_ids = implode(',',array_column($rows,'userId'));
|
||||
$user_rows = [];
|
||||
if($user_ids){
|
||||
$user_rows = $this->ci->user_model->map('userId','',["userId in ($user_ids)"],'','','','userId,uname,nickname,headimg');
|
||||
}
|
||||
$start = $page>1 ? ($page-1)*$size : 0;
|
||||
foreach ($rows as $key=>$val) {
|
||||
$user = $user_rows[$val['userId']] ? $user_rows[$val['userId']][0] : [];
|
||||
$lists[] = [
|
||||
'ranking' => $start+$key+1,
|
||||
'name' => $user['uname'],
|
||||
'num' => $val['t'].'人',
|
||||
'tip' => $userId==$val['userId'] ? '本人' : '',
|
||||
'headimg' => $user['headimg']
|
||||
];
|
||||
}
|
||||
}
|
||||
$data = [
|
||||
'total' => $total,
|
||||
'lists' => $lists
|
||||
];
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function __get($name)
|
||||
{
|
||||
if ('_model' === substr($name, -6)) {
|
||||
|
||||
@@ -84,8 +84,7 @@ class Stic extends Admin{
|
||||
if(!$row && $this->group_id>=3){
|
||||
$this->show_json([],200);
|
||||
}
|
||||
$area_name = '';
|
||||
$all = $area = $biz = $join = [];
|
||||
$area_book = $area_browse = $all = $area = $biz = $join = [];
|
||||
if($this->group_id<2){ //所有大区
|
||||
$biz_id = $this->input->get('biz_id');
|
||||
$area_id = $this->input->get('area_id');
|
||||
@@ -138,6 +137,19 @@ class Stic extends Admin{
|
||||
['title' => '预约率', 'num' => $a_browse_count ? round($a_subscribe_count/$a_browse_count*100,2)."%" : 0],
|
||||
];
|
||||
}
|
||||
//战区排行
|
||||
$area_browse_lists = $this->sylive_data_entity->top_area_lists($a_id,'browse',1,50);
|
||||
$area_browse = [
|
||||
'title' => '战区<span class="color-00a2ff">浏览</span>排行',
|
||||
'url' => '',
|
||||
'list' => $area_browse_lists['lists']
|
||||
];
|
||||
$area_book_lists = $this->sylive_data_entity->top_area_lists($a_id,'subscribe',1,50);
|
||||
$area_book = [
|
||||
'title' => '战区<span class="color-00a2ff">预约</span>排行',
|
||||
'url' => '',
|
||||
'list' => $area_book_lists['lists']
|
||||
];
|
||||
}else{ //门店
|
||||
$biz_id = $this->session['org_id'];
|
||||
}
|
||||
@@ -184,6 +196,19 @@ class Stic extends Admin{
|
||||
'url' => '/h5/market/sylive/stic/rank?type=subscribe&skey='.$skey,
|
||||
'list' => $book_lists['lists']
|
||||
];
|
||||
//顾问数据排行
|
||||
$gw_browse_lists = $this->sylive_data_entity->top_gw_lists($a_id,'browse',[],1,10,$this->uid);
|
||||
$gw_browse = [
|
||||
'title' => '顾问<span class="color-00a2ff">浏览</span>排行',
|
||||
'url' => "/h5/market/sylive/stic/rank?type=browse&skey={$skey}&c=gw",
|
||||
'list' => $gw_browse_lists['lists']
|
||||
];
|
||||
$gw_book_list = $this->sylive_data_entity->top_gw_lists($a_id,'subscribe',[],1,10,$this->uid);
|
||||
$gw_book = [
|
||||
'title' => '顾问<span class="color-00a2ff">预约</span>排行',
|
||||
'url' => "/h5/market/sylive/stic/rank?type=subscribe&skey={$skey}&c=gw",
|
||||
'list' => $gw_book_list['lists']
|
||||
];
|
||||
$data = [
|
||||
'mine' => $mine,
|
||||
'biz' => $biz,
|
||||
@@ -192,7 +217,10 @@ class Stic extends Admin{
|
||||
'join' => $join,
|
||||
'browse' => $browse,
|
||||
'book' => $book,
|
||||
'area_name' => $area_name,
|
||||
'area_browse' => $area_browse,
|
||||
'area_book' => $area_book,
|
||||
'gw_browse' => $gw_browse,
|
||||
'gw_book' => $gw_book
|
||||
];
|
||||
$this->show_json($data,200);
|
||||
}
|
||||
@@ -207,7 +235,7 @@ class Stic extends Admin{
|
||||
$this->show_json([],200);
|
||||
}
|
||||
$area_name = '';
|
||||
$all = $area = $biz = $join = $view_num = $view_time = [];
|
||||
$area_view = $area_order = $all = $area = $biz = $join = $view_num = $view_time = [];
|
||||
if($this->group_id<2){ //所有大区
|
||||
$biz_id = $this->input->get('biz_id');
|
||||
$area_id = $this->input->get('area_id');
|
||||
@@ -260,6 +288,19 @@ class Stic extends Admin{
|
||||
['title' => '转化率', 'num' => $a_view_count ? round($a_order_count/$a_view_count*100,2)."%" : 0],
|
||||
];
|
||||
}
|
||||
//战区排行
|
||||
$area_view_lists = $this->sylive_data_entity->top_area_lists($a_id,'watch',1,50);
|
||||
$area_view = [
|
||||
'title' => '战区<span class="color-00a2ff">观看</span>排行',
|
||||
'url' => '',
|
||||
'list' => $area_view_lists['lists']
|
||||
];
|
||||
$area_order_lists = $this->sylive_data_entity->top_area_lists($a_id,'order',1,50);
|
||||
$area_order = [
|
||||
'title' => '战区<span class="color-00a2ff">订单</span>排行',
|
||||
'url' => '',
|
||||
'list' => $area_order_lists['lists']
|
||||
];
|
||||
}else{ //门店
|
||||
$biz_id = $this->session['org_id'];
|
||||
// $view_num_lists = $this->sylive_entity->top_view_num($row['channelId'],1,10);
|
||||
@@ -331,6 +372,19 @@ class Stic extends Admin{
|
||||
'url' => '/h5/market/sylive/stic/rank?type=order&skey='.$skey,
|
||||
'list' => $order_lists['lists']
|
||||
];
|
||||
//顾问数据排行
|
||||
$gw_view_lists = $this->sylive_data_entity->top_gw_lists($a_id,'watch',[],1,10,$this->uid);
|
||||
$gw_view = [
|
||||
'title' => '顾问<span class="color-00a2ff">观看</span>排行',
|
||||
'url' => "/h5/market/sylive/stic/rank?type=watch&skey={$skey}&c=gw",
|
||||
'list' => $gw_view_lists['lists']
|
||||
];
|
||||
$gw_order_list = $this->sylive_data_entity->top_gw_lists($a_id,'order',[],1,10,$this->uid);
|
||||
$gw_order = [
|
||||
'title' => '顾问<span class="color-00a2ff">订单</span>排行',
|
||||
'url' => "/h5/market/sylive/stic/rank?type=order&skey={$skey}&c=gw",
|
||||
'list' => $gw_order_list['lists']
|
||||
];
|
||||
$data = [
|
||||
'mine' => $mine,
|
||||
'biz' => $biz,
|
||||
@@ -343,32 +397,43 @@ class Stic extends Admin{
|
||||
'view_num' => $view_num,
|
||||
'view_time' => $view_time,
|
||||
'area_name' => $area_name,
|
||||
'area_view' => $area_view,
|
||||
'area_order' => $area_order,
|
||||
'gw_view' => $gw_view,
|
||||
'gw_order' => $gw_order
|
||||
];
|
||||
$this->show_json($data,200);
|
||||
}
|
||||
public function ajax_rank(){
|
||||
$c = $this->input->get('c');
|
||||
$title = $c=='gw' ? '顾问' : '门店';
|
||||
$title_arr = [
|
||||
'browse' => '门店<span class="color-00a2ff">浏览</span>排行',
|
||||
'subscribe' => '门店<span class="color-00a2ff">预约</span>排行',
|
||||
'watch' => '门店<span class="color-00a2ff">观看</span>排行',
|
||||
'order' => '门店<span class="color-00a2ff">订单</span>排行'
|
||||
'browse' => $title.'<span class="color-00a2ff">浏览</span>排行',
|
||||
'subscribe' => $title.'<span class="color-00a2ff">预约</span>排行',
|
||||
'watch' => $title.'<span class="color-00a2ff">观看</span>排行',
|
||||
'order' => $title.'<span class="color-00a2ff">订单</span>排行'
|
||||
];
|
||||
|
||||
$params = $this->input->get();
|
||||
$page = $params['page'] ? intval($params['page']) : 1;
|
||||
$size = $params['size'] ? intval($params['size']) : 20;
|
||||
$info = $this->myencryption->base64url_decode($params['skey']);
|
||||
$a_id = intval($info['a_id']);//活动id
|
||||
$biz_id = $this->sylive_entity->get_biz_id($this->session['org_id'],$this->group_id);
|
||||
$type = $params['type'] ? $params['type'] : 'browse';
|
||||
if(strtotime($params['day'])){ //根据日期排行
|
||||
$where = [
|
||||
'activityId' => $a_id,
|
||||
'kpi' => $type,
|
||||
'createTime' => $params['day'],
|
||||
];
|
||||
$data = $this->sylive_data_entity->top_biz_kpidata($where,$page,$size,$biz_id);
|
||||
if($c=='gw'){
|
||||
$data = $this->sylive_data_entity->top_gw_lists($a_id,$type,[],$page,$size,$this->uid);
|
||||
}else{
|
||||
$data = $this->sylive_data_entity->top_lists($a_id,$type,$page,$size,$biz_id);
|
||||
$biz_id = $this->sylive_entity->get_biz_id($this->session['org_id'],$this->group_id);
|
||||
if(strtotime($params['day'])){ //根据日期排行
|
||||
$where = [
|
||||
'activityId' => $a_id,
|
||||
'kpi' => $type,
|
||||
'createTime' => $params['day'],
|
||||
];
|
||||
$data = $this->sylive_data_entity->top_biz_kpidata($where,$page,$size,$biz_id);
|
||||
}else{
|
||||
$data = $this->sylive_data_entity->top_lists($a_id,$type,$page,$size,$biz_id);
|
||||
}
|
||||
}
|
||||
$data['title'] = $title_arr[$type];
|
||||
$data['url'] = "/h5/market/sylive/stic/rank?type={$type}&skey={$params['skey']}&day={$params['day']}";
|
||||
@@ -439,23 +504,23 @@ class Stic extends Admin{
|
||||
];
|
||||
$biz_id = $this->sylive_entity->get_biz_id($this->session['org_id'],$this->group_id);
|
||||
if($type==1){
|
||||
$b_rows = $this->sylive_entity->top_biz_user($a_id,$biz_id,$this->uid,'browse');
|
||||
$b_rows = $this->sylive_data_entity->top_gw_lists($a_id,'browse',['bizId'=>$biz_id],1,30,$this->uid);
|
||||
$data['browse'] = [
|
||||
'title' => '本店<span class="color-00a2ff">浏览</span>排行',
|
||||
'list' => $b_rows['lists']
|
||||
];
|
||||
$sub_rows = $this->sylive_entity->top_biz_user($a_id,$biz_id,$this->uid,'subscribe');
|
||||
$sub_rows = $this->sylive_data_entity->top_gw_lists($a_id,'subscribe',['bizId'=>$biz_id],1,30,$this->uid);
|
||||
$data['book'] = [
|
||||
'title' => '本店<span class="color-00a2ff">预约</span>排行',
|
||||
'list' => $sub_rows['lists']
|
||||
];
|
||||
}else{
|
||||
$view_rows = $this->sylive_entity->top_biz_user($a_id,$biz_id,$this->uid,'watch');
|
||||
$view_rows = $this->sylive_data_entity->top_gw_lists($a_id,'watch',['bizId'=>$biz_id],1,30,$this->uid);
|
||||
$data['view'] = [
|
||||
'title' => '本店<span class="color-00a2ff">观看</span>排行',
|
||||
'list' => $view_rows['lists']
|
||||
];
|
||||
$order_rows = $this->sylive_entity->top_biz_user($a_id,$biz_id,$this->uid,'order');
|
||||
$order_rows = $this->sylive_data_entity->top_gw_lists($a_id,'order',['bizId'=>$biz_id],1,30,$this->uid);
|
||||
$data['order'] = [
|
||||
'title' => '本店<span class="color-00a2ff">订单</span>排行',
|
||||
'list' => $order_rows['lists']
|
||||
@@ -574,12 +639,14 @@ class Stic extends Admin{
|
||||
|
||||
public function gw_lists(){
|
||||
$params = $this->input->get();
|
||||
$page = $params['page'] ? $params['page'] : 1;
|
||||
$size = $params['size'] ? $params['size'] : 20;
|
||||
if($params['type']=='biz'&&$params['type_id']){
|
||||
$biz_id = $params['type_id'];
|
||||
}else{
|
||||
$biz_id = $this->session['org_id'];
|
||||
$o_where = ['bizId'=>$biz_id];
|
||||
}
|
||||
$res = $this->sylive_entity->top_biz_user($params['a_id'],$biz_id,$this->uid,$params['kpi']);
|
||||
$o_where = [];
|
||||
$res = $this->sylive_data_entity->top_gw_lists($params['a_id'],$params['kpi'],$o_where,$page,$size,$this->uid);
|
||||
$lists = [];
|
||||
if($res['lists']){
|
||||
foreach ($res['lists'] as $item) {
|
||||
|
||||
@@ -73,6 +73,44 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt30 bg-f9 inner40 overflowhidden ulib-r20" v-if="begin.area_browse && begin.area_browse.list">
|
||||
<div class="pb20 fn-clear">
|
||||
<b class="fn-fl font-40 text-italic" v-html="begin.area_browse.title"></b>
|
||||
</div>
|
||||
<div v-if="begin.browse && begin.browse.list">
|
||||
<div class="font-32 color-666" v-for="(item,index) in begin.area_browse.list">
|
||||
<div class="pt20 pb20 fn-clear">
|
||||
<div class="fn-fl wp70 text-nowrap">
|
||||
<img class="imgsize-42X42 text-middle" v-if="item.ranking<4" :src="'https://qs.haodian.cn/web/images/project/H5-ShiYu/icon-ranking-'+item.ranking+'.png'" alt="#" />
|
||||
<span class="inline-block w-50 text-center text-middle" v-else>{{item.ranking}}</span>
|
||||
<span class="text-middle">{{item.name}}</span>
|
||||
<span class="inline-block pl10 pr10 line-height-15 text-middle bg-fe9538 font-22 color-fff ulib-r750" v-if="item.tip">{{item.tip}}</span>
|
||||
</div>
|
||||
<div class="fn-fr">{{item.num}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt30 bg-f9 inner40 overflowhidden ulib-r20" v-if="begin.area_book && begin.area_book.list">
|
||||
<div class="pb20 fn-clear">
|
||||
<b class="fn-fl font-40 text-italic" v-html="begin.area_book.title"></b>
|
||||
</div>
|
||||
<div v-if="begin.browse && begin.browse.list">
|
||||
<div class="font-32 color-666" v-for="(item,index) in begin.area_book.list">
|
||||
<div class="pt20 pb20 fn-clear">
|
||||
<div class="fn-fl wp70 text-nowrap">
|
||||
<img class="imgsize-42X42 text-middle" v-if="item.ranking<4" :src="'https://qs.haodian.cn/web/images/project/H5-ShiYu/icon-ranking-'+item.ranking+'.png'" alt="#" />
|
||||
<span class="inline-block w-50 text-center text-middle" v-else>{{item.ranking}}</span>
|
||||
<span class="text-middle">{{item.name}}</span>
|
||||
<span class="inline-block pl10 pr10 line-height-15 text-middle bg-fe9538 font-22 color-fff ulib-r750" v-if="item.tip">{{item.tip}}</span>
|
||||
</div>
|
||||
<div class="fn-fr">{{item.num}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt30 bg-f9 inner40 overflowhidden ulib-r20">
|
||||
<div class="pb20 fn-clear">
|
||||
<b class="fn-fl font-40 text-italic" v-html="begin.browse.title"></b>
|
||||
@@ -123,6 +161,52 @@
|
||||
<div class="pt100 pb100 text-center font-32 color-666" v-else>暂时无数据</div>
|
||||
</div>
|
||||
|
||||
<div class="mt30 bg-f9 inner40 overflowhidden ulib-r20" v-if="begin.gw_browse && begin.gw_browse.list">
|
||||
<div class="pb20 fn-clear">
|
||||
<b class="fn-fl font-40 text-italic" v-html="begin.gw_browse.title"></b>
|
||||
</div>
|
||||
<div v-if="begin.book && begin.book.list">
|
||||
<div class="font-32 color-666" v-for="(item,index) in begin.gw_browse.list">
|
||||
<div class="pt20 pb20 fn-clear">
|
||||
<div class="fn-fl wp70 text-nowrap">
|
||||
<img class="imgsize-42X42 text-middle" v-if="item.ranking<4" :src="'https://qs.haodian.cn/web/images/project/H5-ShiYu/icon-ranking-'+item.ranking+'.png'" alt="#" />
|
||||
<span class="inline-block w-50 text-center text-middle" v-else>{{item.ranking}}</span>
|
||||
<span class="text-middle">{{item.name}}</span>
|
||||
<span class="inline-block pl10 pr10 line-height-15 text-middle bg-fe9538 font-22 color-fff ulib-r750" v-if="item.tip">{{item.tip}}</span>
|
||||
</div>
|
||||
<div class="fn-fr">{{item.num}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt10 text-center" v-if="begin.gw_browse.url">
|
||||
<a class="mt5 font-28" :href="begin.gw_browse.url">查看更多<i class="iconfont icon-gengduo"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pt100 pb100 text-center font-32 color-666" v-else>暂时无数据</div>
|
||||
</div>
|
||||
|
||||
<div class="mt30 bg-f9 inner40 overflowhidden ulib-r20" v-if="begin.gw_book && begin.gw_book.list">
|
||||
<div class="pb20 fn-clear">
|
||||
<b class="fn-fl font-40 text-italic" v-html="begin.gw_book.title"></b>
|
||||
</div>
|
||||
<div v-if="begin.book && begin.book.list">
|
||||
<div class="font-32 color-666" v-for="(item,index) in begin.gw_book.list">
|
||||
<div class="pt20 pb20 fn-clear">
|
||||
<div class="fn-fl wp70 text-nowrap">
|
||||
<img class="imgsize-42X42 text-middle" v-if="item.ranking<4" :src="'https://qs.haodian.cn/web/images/project/H5-ShiYu/icon-ranking-'+item.ranking+'.png'" alt="#" />
|
||||
<span class="inline-block w-50 text-center text-middle" v-else>{{item.ranking}}</span>
|
||||
<span class="text-middle">{{item.name}}</span>
|
||||
<span class="inline-block pl10 pr10 line-height-15 text-middle bg-fe9538 font-22 color-fff ulib-r750" v-if="item.tip">{{item.tip}}</span>
|
||||
</div>
|
||||
<div class="fn-fr">{{item.num}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt10 text-center" v-if="begin.gw_book.url">
|
||||
<a class="mt5 font-28" :href="begin.gw_book.url">查看更多<i class="iconfont icon-gengduo"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pt100 pb100 text-center font-32 color-666" v-else>暂时无数据</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- end 预热阶段-->
|
||||
<!--直播阶段-->
|
||||
@@ -183,6 +267,44 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt30 bg-f9 inner40 overflowhidden ulib-r20" v-if="live.area_view && live.area_view.list">
|
||||
<div class="pb20 fn-clear">
|
||||
<b class="fn-fl font-40 text-italic" v-html="live.area_view.title"></b>
|
||||
</div>
|
||||
<div v-if="begin.browse && begin.browse.list">
|
||||
<div class="font-32 color-666" v-for="(item,index) in live.area_view.list">
|
||||
<div class="pt20 pb20 fn-clear">
|
||||
<div class="fn-fl wp70 text-nowrap">
|
||||
<img class="imgsize-42X42 text-middle" v-if="item.ranking<4" :src="'https://qs.haodian.cn/web/images/project/H5-ShiYu/icon-ranking-'+item.ranking+'.png'" alt="#" />
|
||||
<span class="inline-block w-50 text-center text-middle" v-else>{{item.ranking}}</span>
|
||||
<span class="text-middle">{{item.name}}</span>
|
||||
<span class="inline-block pl10 pr10 line-height-15 text-middle bg-fe9538 font-22 color-fff ulib-r750" v-if="item.tip">{{item.tip}}</span>
|
||||
</div>
|
||||
<div class="fn-fr">{{item.num}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt30 bg-f9 inner40 overflowhidden ulib-r20" v-if="live.area_order && live.area_order.list">
|
||||
<div class="pb20 fn-clear">
|
||||
<b class="fn-fl font-40 text-italic" v-html="live.area_order.title"></b>
|
||||
</div>
|
||||
<div v-if="begin.browse && begin.browse.list">
|
||||
<div class="font-32 color-666" v-for="(item,index) in live.area_order.list">
|
||||
<div class="pt20 pb20 fn-clear">
|
||||
<div class="fn-fl wp70 text-nowrap">
|
||||
<img class="imgsize-42X42 text-middle" v-if="item.ranking<4" :src="'https://qs.haodian.cn/web/images/project/H5-ShiYu/icon-ranking-'+item.ranking+'.png'" alt="#" />
|
||||
<span class="inline-block w-50 text-center text-middle" v-else>{{item.ranking}}</span>
|
||||
<span class="text-middle">{{item.name}}</span>
|
||||
<span class="inline-block pl10 pr10 line-height-15 text-middle bg-fe9538 font-22 color-fff ulib-r750" v-if="item.tip">{{item.tip}}</span>
|
||||
</div>
|
||||
<div class="fn-fr">{{item.num}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt30 bg-f9 inner40 overflowhidden ulib-r20">
|
||||
<div class="pb20 fn-clear">
|
||||
<b class="fn-fl font-40 text-italic" v-html="live.view.title"></b>
|
||||
@@ -271,6 +393,54 @@
|
||||
</div>
|
||||
<div class="pt100 pb100 text-center font-32 color-666" v-else>暂时无数据</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mt30 bg-f9 inner40 overflowhidden ulib-r20" v-if="live.gw_view && live.gw_view.list">
|
||||
<div class="pb20 fn-clear">
|
||||
<b class="fn-fl font-40 text-italic" v-html="live.gw_view.title"></b>
|
||||
</div>
|
||||
<div v-if="begin.book && begin.book.list">
|
||||
<div class="font-32 color-666" v-for="(item,index) in live.gw_view.list">
|
||||
<div class="pt20 pb20 fn-clear">
|
||||
<div class="fn-fl wp70 text-nowrap">
|
||||
<img class="imgsize-42X42 text-middle" v-if="item.ranking<4" :src="'https://qs.haodian.cn/web/images/project/H5-ShiYu/icon-ranking-'+item.ranking+'.png'" alt="#" />
|
||||
<span class="inline-block w-50 text-center text-middle" v-else>{{item.ranking}}</span>
|
||||
<span class="text-middle">{{item.name}}</span>
|
||||
<span class="inline-block pl10 pr10 line-height-15 text-middle bg-fe9538 font-22 color-fff ulib-r750" v-if="item.tip">{{item.tip}}</span>
|
||||
</div>
|
||||
<div class="fn-fr">{{item.num}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt10 text-center" v-if="live.gw_view.url">
|
||||
<a class="mt5 font-28" :href="live.gw_view.url">查看更多<i class="iconfont icon-gengduo"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pt100 pb100 text-center font-32 color-666" v-else>暂时无数据</div>
|
||||
</div>
|
||||
|
||||
<div class="mt30 bg-f9 inner40 overflowhidden ulib-r20" v-if="live.gw_order && live.gw_order.list">
|
||||
<div class="pb20 fn-clear">
|
||||
<b class="fn-fl font-40 text-italic" v-html="live.gw_order.title"></b>
|
||||
</div>
|
||||
<div v-if="begin.book && begin.book.list">
|
||||
<div class="font-32 color-666" v-for="(item,index) in live.gw_order.list">
|
||||
<div class="pt20 pb20 fn-clear">
|
||||
<div class="fn-fl wp70 text-nowrap">
|
||||
<img class="imgsize-42X42 text-middle" v-if="item.ranking<4" :src="'https://qs.haodian.cn/web/images/project/H5-ShiYu/icon-ranking-'+item.ranking+'.png'" alt="#" />
|
||||
<span class="inline-block w-50 text-center text-middle" v-else>{{item.ranking}}</span>
|
||||
<span class="text-middle">{{item.name}}</span>
|
||||
<span class="inline-block pl10 pr10 line-height-15 text-middle bg-fe9538 font-22 color-fff ulib-r750" v-if="item.tip">{{item.tip}}</span>
|
||||
</div>
|
||||
<div class="fn-fr">{{item.num}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt10 text-center" v-if="live.gw_order.url">
|
||||
<a class="mt5 font-28" :href="live.gw_order.url">查看更多<i class="iconfont icon-gengduo"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pt100 pb100 text-center font-32 color-666" v-else>暂时无数据</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- end 直播阶段-->
|
||||
</div>
|
||||
@@ -307,6 +477,16 @@
|
||||
title:'',
|
||||
url:'',
|
||||
list:[],
|
||||
},
|
||||
area_browse:{
|
||||
title:'',
|
||||
url:'',
|
||||
list:[],
|
||||
},
|
||||
area_book:{
|
||||
title:'',
|
||||
url:'',
|
||||
list:[],
|
||||
}
|
||||
},
|
||||
live:{
|
||||
|
||||
@@ -62,8 +62,15 @@
|
||||
let that=this;
|
||||
if (!that.isNoData && !that.isDataEnd && !that.loading) {
|
||||
that.loading = true;
|
||||
var params = {
|
||||
'skey':'<?=$params['skey']?>',
|
||||
'type':'<?=$params['type']?>',
|
||||
'day':'<?=$params['day']?>',
|
||||
'c':'<?=$params['c']?>',
|
||||
'page':that.page
|
||||
}
|
||||
//请求接口
|
||||
$.get('/h5/market/sylive/stic/ajax_rank',{'skey':'<?=$params['skey']?>','type':'<?=$params['type']?>','day':'<?=$params['day']?>','page':that.page},function (res){
|
||||
$.get('/h5/market/sylive/stic/ajax_rank',params,function (res){
|
||||
that.loading = false;
|
||||
that.page = that.page + 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user