edit-sylive-area_rank

This commit is contained in:
lccsw
2022-11-05 15:16:28 +08:00
committed by lccsw
parent b9aab9d9af
commit c6a2f8b4ec
9 changed files with 382 additions and 120 deletions
+25 -1
View File
@@ -408,4 +408,28 @@ class Syt extends CI_Controller
}
}
}
}
//临时更新kpi时间
public function tmp_day(){
$this->load->model('market/market_sylive_activity_kpidata_model','mdSytActivityKpiData');
$page = $this->input->get('page');
$size = $this->input->get('size');
!$page && $page = 1;
!$size && $size = 100;
$where = [
'createTime>' => 0,
'day' => '0000-00-00',
];
$total = $this->mdSytActivityKpiData->count($where);
echo '总数:'.$total.'<br>';
if($total){
$rows = $this->mdSytActivityKpiData->select($where,'id asc',$page,$size,'id,createTime');
foreach ($rows as $item) {
$update = [
'day' => date('Y-m-d',$item['createTime']),
];
$this->mdSytActivityKpiData->update($update,['id'=>$item['id']]);
}
}
echo '更新完成';
}
}
+121 -21
View File
@@ -4,6 +4,8 @@
*/
class Sylive_data_entity{
const DF_IMG = 'https://qs.haodian.cn/web/images/project/H5-ShiYu/goodslogo.jpg'; //东风图标
private $ci;
private $map_kpi_biz = [
'browse' => 'browse', 'subscribe' => 'subscribe', 'order' => 'orderTotal','watch' => 'watch'
@@ -27,7 +29,7 @@ class Sylive_data_entity{
/**
* 根据kpi排名
* @param $params ['activityId','kpi','createTime']
* @param $gtype 分组类型(biz 店铺 area 大区 gw 顾问)
* @param $gtype 分组类型(biz 店铺 gw 顾问)
* @param $page
* @param $size
* @param $biz_id
@@ -43,15 +45,10 @@ class Sylive_data_entity{
"{$t2}.activityId={$t1}.activityId",
"{$t2}.kpi='{$params['kpi']}'"
];
if($gtype=='area'){ //大区
$where["{$t1}.status"] = 0;
$j_where[] = "{$t2}.areaId={$t1}.areaId";
$fileds = "{$t1}.areaId as organizationId,count({$t2}.id) as t";
$group_by = "{$t1}.areaId";
}elseif($gtype=='gw'){//顾问
if($gtype=='gw'){//顾问
$where["{$t1}.organizationId>"] = 0;
$j_where[] = "{$t2}.cfUserId={$t1}.userId";
$fileds = "{$t1}.userId,count({$t2}.id) as t";
$fileds = "{$t1}.userId,{$t1}.bizId as organizationId,count({$t2}.id) as t";
$group_by = "{$t1}.userId";
}else{ //门店
$where["{$t1}.status"] = 0;
@@ -60,8 +57,7 @@ class Sylive_data_entity{
$group_by = "{$t1}.bizId";
}
if($params['createTime']){
$j_where[] = "{$t2}.createTime>=".strtotime($params['createTime'].' 00:00:00');
$j_where[] = "{$t2}.createTime<=".strtotime($params['createTime'].' 23:59:59');
$j_where[] = "{$t2}.day='".date('Y-m-d',strtotime($params['createTime']))."'";
}
$j_where = implode(' and ',$j_where);
if($page) {
@@ -85,19 +81,20 @@ class Sylive_data_entity{
if($userIds){
$user_rows = $this->ci->user_model->map('userId','',["userId in ($userIds)"=>null],'','','','userId,uname');
}
}else{
$biz_ids = implode(',',array_column($rows,'organizationId'));
$org_rows = [];
if($biz_ids){
$org_rows = $this->ci->market_sylive_organization_model->map('organizationId','',["organizationId in ($biz_ids)"=>null],'','','','organizationId,organizationName');
}
}
$biz_ids = implode(',',array_column($rows,'organizationId'));
$org_rows = [];
if($biz_ids){
$org_rows = $this->ci->market_sylive_organization_model->map('organizationId','',["organizationId in ($biz_ids)"=>null],'','','','organizationId,organizationName');
}
$start = $page>1 ? ($page-1)*$size : 0;
foreach ($rows as $key=>$val) {
$name = $tip = '';
if($gtype=='gw'){
$user = $user_rows[$val['userId']] ? $user_rows[$val['userId']][0] : [];
$org = $org_rows[$val['organizationId']] ? $org_rows[$val['organizationId']][0] : [];
$name = $user['uname'];
$org['organizationName'] && $name.="({$org['organizationName']})";
if($biz_id>0 && $biz_id==$val['userId']){
$tip = '本人';
}
@@ -181,7 +178,7 @@ class Sylive_data_entity{
$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');
$org_rows = $this->ci->market_sylive_organization_model->map('organizationId','organizationName',["organizationId in ($area_ids)"=>null],'','','','organizationId,organizationName');
}
$start = $page>1 ? ($page-1)*$size : 0;
foreach ($rows as $key=>$val) {
@@ -199,6 +196,54 @@ class Sylive_data_entity{
];
return $data;
}
/**
* 根据kpi排名
* @param $params ['activityId','kpi','createTime']
* @param $page
* @param $size
* @return array
*/
public function top_area_kpidata($params, $page=1, $size=20){
$lists = [];
$where = [
'activityId' => $params['activityId'],
'status' => 0,
'areaId>' => 0,
];
$select = "distinct(areaId)";
$rows = $this->ci->mdSytActivityBiz->select($where,"",$page,$size,$select);
if($rows){
$area_ids = implode(',',array_column($rows,'areaId'));
$org_rows = $this->ci->market_sylive_organization_model->map('organizationId','',["organizationId in ($area_ids)"=>null],'','','','organizationId,organizationName');
$start = $page>1 ? ($page-1)*$size : 0;
foreach ($rows as $key=>$val) {
$where = [
'areaId' => $val['areaId'],
'activityId' => $params['activityId'],
];
if($params['createTime']){
$where['day='] = date('Y-m-d',strtotime($params['createTime']));
}
$params['kpi'] = $where['kpi'] = $params['kpi'];
$total = $this->ci->mdSytActivityKpiData->count($where);
$org = $org_rows[$val['areaId']] ? $org_rows[$val['areaId']][0] : [];
$lists[] = [
'ranking' => $start+$key+1,
'name' => $org ? $org['organizationName'] : '',
'total' => $total,
'num' => $total.'人',
'tip' => '',
];
}
$edit = array_column($lists,'total');
array_multisort($edit,SORT_DESC,$lists);
}
$data = [
'total' => 0,
'lists' => $lists
];
return $data;
}
/**
* 顾问排行
@@ -219,6 +264,60 @@ class Sylive_data_entity{
'organizationId>' => 0
];
$other_where && $where = array_merge($where,$other_where);
$select = "bizId,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');
}
$biz_ids = implode(',',array_column($rows,'bizId'));
$biz_rows = [];
if($biz_ids){
$biz_rows = $this->ci->market_sylive_organization_model->map('organizationId','',["organizationId in ($biz_ids)"=>null],'','','','organizationId,organizationName');
}
$start = $page>1 ? ($page-1)*$size : 0;
foreach ($rows as $key=>$val) {
$user = $user_rows[$val['userId']] ? $user_rows[$val['userId']][0] : [];
$biz = $biz_rows[$val['bizId']] ? $biz_rows[$val['bizId']][0] : [];
$biz_name = $biz['organizationName'] ? "({$biz['organizationName']})" : '';
$lists[] = [
'ranking' => $start+$key+1,
'name' => $user['uname'].$biz_name,
'num' => $val['t'].'人',
'tip' => $userId==$val['userId'] ? '本人' : '',
'headimg' => $user['headimg']
];
}
}
$data = [
'total' => $total,
'lists' => $lists
];
return $data;
}
/**
* 顾问排行
* @param $a_id
* @param $type
* @param $page
* @param $size
* @return array
*/
public function top_team_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,
'teamId>' => 0
];
$other_where && $where = array_merge($where,$other_where);
$select = "userId,{$filed} as t";
$total = $this->ci->act_user_model->count($where);
if($total){
@@ -228,15 +327,16 @@ class Sylive_data_entity{
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] : [];
$name =$user['uname'] ? $user['uname'] : $user['nickname'];
$lists[] = [
'ranking' => $start+$key+1,
'name' => $user['uname'],
'uid' => $val['userId'],
'name' => name_asterisk($name),
'headimg' => self::DF_IMG,
'total' => $total,
'num' => $val['t'].'人',
'tip' => $userId==$val['userId'] ? '本人' : '',
'headimg' => $user['headimg']
];
}
}
+2 -56
View File
@@ -197,7 +197,8 @@ class Sylive_entity{
'cfUserId' => $params['cf_uid'],
'kpi' => $params['kpi'],
'type' => $type,
'createTime' => time()
'createTime' => time(),
'day' => date('Y-m-d')
];
$area_id && $addData['areaId'] = $area_id;
$biz_id && $addData['bizId'] = $biz_id;
@@ -451,61 +452,6 @@ class Sylive_entity{
return $data;
}
//团队用户排行数据
public function top_team_user($aid,$teamId,$uid,$type='browse',$page=1,$size=50){
if(!$teamId){
return ['total' => 0, 'lists' => []];
}
$where = [
'parentId' => $teamId
];
$orgs = $this->ci->market_sylive_team_model->select($where,'',0,0,'teamId');
$orgs && $org_arr_ids = array_column($orgs,'teamId');
$org_arr_ids[] = $teamId;
$org_ids = implode($org_arr_ids,',');
$where = [
"teamId>" => 0,
"teamId in ({$org_ids})" => null
];
$total = $this->ci->user_model->count($where);
$lists = [];
if($total){
$rows = $this->ci->user_model->select($where,'userId desc',$page,$size,'userId,uname,nickname,headimg');
$where = [
'activityId' => $aid,
'kpi' => $type,
'bizId' => $teamId,
'type' => 1,
];
$t_rows = $this->ci->mdSytActivityKpiData->select_groupby('cfUserId',$where,'total desc',$page,$size,'cfUserId,count(id) as total');
$map = [];
if($t_rows){
foreach($t_rows as $item) {
$map[$item['cf_uid']] = null !== $item['total'] ? $item['total'] : $item;
}
}
foreach ($rows as $item) {
$total = $map[$item['userId']] ? $map[$item['userId']] : '0';
$name = $item['uname'] ? $item['uname'] : $item['nickname'];
$lists[] = [
'uid' => $item['userId'],
'name' => name_asterisk($name),
'headimg' => self::DF_IMG,
'total' => $total,
'num' => "{$total}",
'tip' => $uid == $item['userId'] ? '本人' : '',
];
}
$edit = array_column($lists,'total');
array_multisort($edit,SORT_DESC,$lists);
}
$data = [
'total' => $total,
'lists' => $lists
];
return $data;
}
//用户用户观看次数排行
public function top_team_view_num($where,$page=1,$size=10){
$total = $this->ci->market_sylive_viewlog_model->count($where);
+1 -1
View File
@@ -86,7 +86,7 @@ class Login extends CI_Controller{
}
$area_id && $update['areaId'] = $area_id;
$biz_id && $update['bizId'] = $biz_id;
$this->act_user_model->update($update,['openid'=>$wx_info['openid'],'status'=>0]);
$this->act_user_model->update($update,['userId'=>$wx_info['userId'],'status'=>0,'organizationId'=>0,'teamId'=>0]);
return ['code' => 1,'msg' => '绑定成功'];
}
//获取验证码
+56 -23
View File
@@ -93,13 +93,8 @@ class Stic extends Admin{
$area_count = $this->mdSytActivityBiz->db->query($sql)->row_array();
$sql = "select count(distinct bizId) as total from lc_market_sylive_activity_biz where `activityId`={$a_id}";
$biz_count = $this->mdSytActivityBiz->db->query($sql)->row_array();
$where = [
'status' => 0,
"organizationId in (select organizationId from lc_market_sylive_organization where
parentId in (select bizId from lc_market_sylive_activity_biz where activityId={$a_id} and status=0)
)" => null
];
$gw_count = $this->user_model->count($where); //顾问
$where = ['activityId' => $a_id, 'organizationId>' => 0];
$gw_count = $this->act_user_model->count($where, 'userId');
$join = [
['title' => '参与大区', 'num' => "{$area_count['total']}"],
['title' => '参与门店', 'num' => "{$biz_count['total']}"],
@@ -244,13 +239,8 @@ class Stic extends Admin{
$area_count = $this->mdSytActivityBiz->db->query($sql)->row_array();
$sql = "select count(distinct bizId) as total from lc_market_sylive_activity_biz where `activityId`={$a_id}";
$biz_count = $this->mdSytActivityBiz->db->query($sql)->row_array();
$where = [
'status' => 0,
"organizationId in (select organizationId from lc_market_sylive_organization where
parentId in (select bizId from lc_market_sylive_activity_biz where activityId={$a_id} and status=0)
)" => null
];
$gw_count = $this->user_model->count($where); //顾问
$where = ['activityId' => $a_id, 'organizationId>' => 0];
$gw_count = $this->act_user_model->count($where, 'userId');
$join = [
['title' => '参与大区', 'num' => "{$area_count['total']}"],
['title' => '参与门店', 'num' => "{$biz_count['total']}"],
@@ -421,20 +411,24 @@ class Stic extends Admin{
$a_id = intval($info['a_id']);//活动id
$type = $params['type'] ? $params['type'] : 'browse';
if(strtotime($params['day'])){//根据日期排行
$biz_id = '';
$biz_id = '';
$where = [
'activityId' => $a_id,
'kpi' => $type,
'createTime' => $params['day'],
];
if($params['gtype']=='gw'){
$biz_id = $this->uid;
if($params['gtype']=='area'){
$data = $this->sylive_data_entity->top_area_kpidata($where,$page,$size);
}else{
if($params['gtype']=='gw'){
$biz_id = $this->uid;
}
if($params['gtype']=='biz'){
$biz_id = $this->sylive_entity->get_biz_id($this->session['org_id'],$this->group_id);
}
$gtype = $params['gtype'] ? $params['gtype'] : 'biz';
$data = $this->sylive_data_entity->top_biz_kpidata($where,$gtype,$page,$size,$biz_id);
}
if($params['gtype']=='biz'){
$biz_id = $this->sylive_entity->get_biz_id($this->session['org_id'],$this->group_id);
}
$gtype = $params['gtype'] ? $params['gtype'] : 'biz';
$data = $this->sylive_data_entity->top_biz_kpidata($where,$gtype,$page,$size,$biz_id);
}else{
if($params['gtype']=='area'){
$data = $this->sylive_data_entity->top_area_lists($a_id,$type,1,50);
@@ -522,6 +516,26 @@ class Stic extends Admin{
];
$biz_id = $this->sylive_entity->get_biz_id($this->session['org_id'],$this->group_id);
if($type==1){
$biz_b_rows = $this->sylive_data_entity->top_lists($a_id,'browse',1,10,0);
$data['biz_browse'] = [
'title' => '门店<span class="color-00a2ff">观看</span>排行',
'list' => $biz_b_rows['lists']
];
$biz_sub_rows = $this->sylive_data_entity->top_lists($a_id,'subscribe',1,10,0);
$data['biz_book'] = [
'title' => '门店<span class="color-00a2ff">订单</span>排行',
'list' => $biz_sub_rows['lists']
];
$gw_b_rows = $this->sylive_data_entity->top_gw_lists($a_id,'browse',[],1,10,$this->uid);
$data['gw_browse'] = [
'title' => '顾问<span class="color-00a2ff">浏览</span>排行',
'list' => $gw_b_rows['lists']
];
$gw_sub_rows = $this->sylive_data_entity->top_gw_lists($a_id,'subscribe',[],1,10,$this->uid);
$data['gw_book'] = [
'title' => '顾问<span class="color-00a2ff">预约</span>排行',
'list' => $gw_sub_rows['lists']
];
$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>排行',
@@ -533,6 +547,26 @@ class Stic extends Admin{
'list' => $sub_rows['lists']
];
}else{
$biz_view_rows = $this->sylive_data_entity->top_lists($a_id,'watch',1,10,0);
$data['biz_view'] = [
'title' => '门店<span class="color-00a2ff">观看</span>排行',
'list' => $biz_view_rows['lists']
];
$biz_order_rows = $this->sylive_data_entity->top_lists($a_id,'order',1,10,0);
$data['biz_order'] = [
'title' => '门店<span class="color-00a2ff">订单</span>排行',
'list' => $biz_order_rows['lists']
];
$gw_view_rows = $this->sylive_data_entity->top_gw_lists($a_id,'watch',[],1,10,$this->uid);
$data['gw_view'] = [
'title' => '顾问<span class="color-00a2ff">观看</span>排行',
'list' => $gw_view_rows['lists']
];
$gw_order_rows = $this->sylive_data_entity->top_gw_lists($a_id,'order',[],1,10,$this->uid);
$data['gw_order'] = [
'title' => '顾问<span class="color-00a2ff">订单</span>排行',
'list' => $gw_order_rows['lists']
];
$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>排行',
@@ -663,7 +697,6 @@ class Stic extends Admin{
$biz_id = $params['type_id'];
$o_where = ['bizId'=>$biz_id];
}
$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']){
+11 -5
View File
@@ -15,6 +15,7 @@ class Tstic extends Admin{
$this->load->model('live/Live_polyv_session_model', 'mdPolyvSession');
$this->load->library('market/sylive_entity');
$this->load->library('market/sylive_data_entity');
$this->teamLevel = $this->sylive_entity->get_team_level($this->session['teamId']);
$this->data['skey'] = $this->input->get('skey');
}
@@ -345,24 +346,26 @@ class Tstic extends Admin{
}else{//大团长
$teamId = 0;
}
$o_where = [];
$teamId && $o_where['bizId'] = $teamId;
if($type==1){
$b_rows = $this->sylive_entity->top_team_user($a_id,$teamId,$this->uid,'browse');
$b_rows = $this->sylive_data_entity->top_team_lists($a_id,'browse',$o_where,1,10,$this->uid);
$data['browse'] = [
'title' => '团队<span class="color-00a2ff">浏览</span>排行',
'list' => $b_rows['lists']
];
$sub_rows = $this->sylive_entity->top_team_user($a_id,$teamId,$this->uid,'subscribe');
$sub_rows = $this->sylive_data_entity->top_team_lists($a_id,'subscribe',$o_where,1,10,$this->uid);
$data['book'] = [
'title' => '团队<span class="color-00a2ff">预约</span>排行',
'list' => $sub_rows['lists']
];
}else{
$view_rows = $this->sylive_entity->top_team_user($a_id,$teamId,$this->uid,'watch');
$view_rows = $this->sylive_data_entity->top_team_lists($a_id,'watch',$o_where,1,10,$this->uid);
$data['view'] = [
'title' => '团队<span class="color-00a2ff">观看</span>排行',
'list' => $view_rows['lists']
];
$order_rows = $this->sylive_entity->top_team_user($a_id,$teamId,$this->uid,'order');
$order_rows = $this->sylive_data_entity->top_team_lists($a_id,'watch',$o_where,1,10,$this->uid);
$data['order'] = [
'title' => '团队<span class="color-00a2ff">订单</span>排行',
'list' => $order_rows['lists']
@@ -478,6 +481,8 @@ class Tstic extends Admin{
public function gw_lists(){
$params = $this->input->get();
$page = $params['page'] ? $params['page'] : 1;
$size = $params['size'] ? $params['size'] : 20;
if($this->teamLevel==2){ //团员
$t_row = $this->market_sylive_team_model->get(['teamId'=>$this->session['teamId']],'parentId');
$teamId = $t_row['parentId'];
@@ -486,7 +491,8 @@ class Tstic extends Admin{
}else{//大团长
$teamId = 0;
}
$res = $this->sylive_entity->top_team_user($params['a_id'],$teamId,$this->uid,$params['kpi']);
$teamId && $o_where['bizId'] = $teamId;
$res = $this->sylive_data_entity->top_team_lists($params['a_id'],$params['kpi'],$o_where,$page,$size,$this->uid);
$lists = [];
if($res['lists']){
foreach ($res['lists'] as $item) {
+10 -12
View File
@@ -29,12 +29,12 @@
<div>
<div class="notice-shadow"></div>
<div class="notice bg-000-op10 pl20 pr20 line-height-17 font-28 ulib-r750 z-index-1" :style="'animation-delay:'+item.delay+'s;'" v-for="(item,index) in notice1">
<span class="color-fff">{{item.name}}</span>
<span class="ml10 color-fff">{{item.tip}}</span>
<span class="color-333">{{item.name}}</span>
<span class="ml10 color-333">{{item.tip}}</span>
</div>
<div class="notice bg-000-op10 pl20 pr20 line-height-17 font-28 ulib-r750 z-index-1" :style="'animation-delay:'+item.delay+'s;'" v-for="(item,index) in notice2">
<span class="color-fff">{{item.name}}</span>
<span class="ml10 color-fff">{{item.tip}}</span>
<span class="color-333">{{item.name}}</span>
<span class="ml10 color-333">{{item.tip}}</span>
</div>
</div>
@@ -45,28 +45,26 @@
<div class="msgMain">
<div class="content">
<div class="word text-center">
<div class="font-40">企微福利官二维码</div>
<div class="mt20 font-22 line-height-15 color-666">
<div class="mt10">
<span>您的</span><div class="inline-block relative tx-shadow-e5"><span class="relative z-index-1 color-333">50积分</span></div><span>奖励即将到账</span>
看直播,好礼享不停!
</div>
<div class="mt10">添加【东风EV官方企微号】即刻领取</div>
<div class="mt10">添加【东风EV官方企微号】</div>
<div class="mt10">
<span>更有</span><div class="inline-block relative tx-shadow-e5"><span class="relative z-index-1 color-333">100%中奖</span></div><span>惊喜等着您</span>
了解更多惊喜内幕!
</div>
</div>
<div class="mt20 pt10 text-center">
<img class='inline-block imgsize-360X360' src='https://qs.haodian.cn/web/images/project/H5-ShiYu/df-code.jpg' />
<img class='inline-block imgsize-360X360' src='https://qs.haodian.cn/web/images/project/H5-ShiYu/wx-code.png' />
</div>
<div class="pt10 pb20 pl20 pr20 font-24 color-fe9538 line-height-15">
<img class="imgsize-24X24 text-middle" src="https://qs.haodian.cn/web/images/project/H5-ShiYu/df-code.jpg" alt="#" />
<span class="text-middle">长按识别二维码领福利</span>
<img class="imgsize-24X24 text-middle" src="https://qs.haodian.cn/web/images/project/H5-ShiYu/icon-finger2.png" alt="#" />
<span class="text-middle">长按识别二维码添加</span>
</div>
</div>
<!-- <div class="opt pl40 pr40">
<a class="block bg-1a1a1a pt25 pb25 text-center font-32 color-fff ulib-r750" @click="closeCode" href="javascript:" >知道了</a>
</div> -->
</div>
</div>
</div>
+1 -1
View File
@@ -7,7 +7,7 @@
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title><?=$_title?></title>
<link rel="stylesheet" href="/css/h5/market/sylive/h5.css?20221104">
<link rel="stylesheet" href="/css/h5/market/sylive/h5.css?20221105">
<link rel="stylesheet" href="https://qs.haodian.cn/web/javascript/swiper/css/swiper.min.css">
<script type="text/javascript" src="https://qs.haodian.cn/web/javascript/jquery.3.4.1.min.js"></script>
<script type="text/javascript" src="https://qs.haodian.cn/web/javascript/vue.2.6.10.min.js"></script>
+155
View File
@@ -28,7 +28,80 @@
</a>
</div>
</div>
<!--门店开始-->
<div class="mt30 bg-f9 inner40 overflowhidden ulib-r20" v-if="begin.biz_browse && begin.biz_browse.list">
<div class="pb20 fn-clear">
<b class="fn-fl font-40 text-italic" v-html="begin.biz_browse.title"></b>
</div>
<div class="font-32 color-666" v-for="(item,index) in begin.biz_browse.list">
<div class="pt20 pb20 fn-clear">
<div class="fn-fl wp70 text-nowrap">
<img class="imgsize-42X42 text-middle" v-if="index<3" :src="'https://qs.haodian.cn/web/images/project/H5-ShiYu/icon-ranking-'+(index+1)+'.png'" alt="#" />
<span class="inline-block w-50 text-center text-middle" v-else>{{index+1}}</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="pt100 pb100 text-center font-32 color-666" v-else>暂时无数据</div>
</div>
<div class="mt30 bg-f9 inner40 overflowhidden ulib-r20" v-if="begin.biz_book && begin.biz_book.list">
<div class="pb20 fn-clear">
<b class="fn-fl font-40 text-italic" v-html="begin.biz_book.title"></b>
</div>
<div class="font-32 color-666" v-for="(item,index) in begin.biz_book.list">
<div class="pt20 pb20 fn-clear">
<div class="fn-fl wp70 text-nowrap">
<img class="imgsize-42X42 text-middle" v-if="index<3" :src="'https://qs.haodian.cn/web/images/project/H5-ShiYu/icon-ranking-'+(index+1)+'.png'" alt="#" />
<span class="inline-block w-50 text-center text-middle" v-else>{{index+1}}</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="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 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="index<3" :src="'https://qs.haodian.cn/web/images/project/H5-ShiYu/icon-ranking-'+(index+1)+'.png'" alt="#" />
<span class="inline-block w-50 text-center text-middle" v-else>{{index+1}}</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="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 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="index<3" :src="'https://qs.haodian.cn/web/images/project/H5-ShiYu/icon-ranking-'+(index+1)+'.png'" alt="#" />
<span class="inline-block w-50 text-center text-middle" v-else>{{index+1}}</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="pt100 pb100 text-center font-32 color-666" v-else>暂时无数据</div>
</div>
<!--顾问结束-->
<div class="mt30 bg-f9 inner40 overflowhidden ulib-r20" v-if="begin.browse.list.length>0">
<div class="pb20 fn-clear">
<b class="fn-fl font-40 text-italic" v-html="begin.browse.title"></b>
@@ -78,6 +151,80 @@
</a>
</div>
</div>
<!--门店开始-->
<div class="mt30 bg-f9 inner40 overflowhidden ulib-r20" v-if="live.biz_view && live.biz_view.list">
<div class="pb20 fn-clear">
<b class="fn-fl font-40 text-italic" v-html="live.biz_view.title"></b>
</div>
<div class="font-32 color-666" v-for="(item,index) in live.biz_view.list">
<div class="pt20 pb20 fn-clear">
<div class="fn-fl wp70 text-nowrap">
<img class="imgsize-42X42 text-middle" v-if="index<3" :src="'https://qs.haodian.cn/web/images/project/H5-ShiYu/icon-ranking-'+(index+1)+'.png'" alt="#" />
<span class="inline-block w-50 text-center text-middle" v-else>{{index+1}}</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="pt100 pb100 text-center font-32 color-666" v-else>暂时无数据</div>
</div>
<div class="mt30 bg-f9 inner40 overflowhidden ulib-r20" v-if="live.biz_order && live.biz_order.list">
<div class="pb20 fn-clear">
<b class="fn-fl font-40 text-italic" v-html="live.biz_order.title"></b>
</div>
<div class="font-32 color-666" v-for="(item,index) in live.biz_order.list">
<div class="pt20 pb20 fn-clear">
<div class="fn-fl wp70 text-nowrap">
<img class="imgsize-42X42 text-middle" v-if="index<3" :src="'https://qs.haodian.cn/web/images/project/H5-ShiYu/icon-ranking-'+(index+1)+'.png'" alt="#" />
<span class="inline-block w-50 text-center text-middle" v-else>{{index+1}}</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="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 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="index<3" :src="'https://qs.haodian.cn/web/images/project/H5-ShiYu/icon-ranking-'+(index+1)+'.png'" alt="#" />
<span class="inline-block w-50 text-center text-middle" v-else>{{index+1}}</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="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 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="index<3" :src="'https://qs.haodian.cn/web/images/project/H5-ShiYu/icon-ranking-'+(index+1)+'.png'" alt="#" />
<span class="inline-block w-50 text-center text-middle" v-else>{{index+1}}</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="pt100 pb100 text-center font-32 color-666" v-else>暂时无数据</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>
@@ -337,9 +484,17 @@
that.dynamic.title = '实时<span class="color-00a2ff">动态</span>';
that.dynamic.list = that.dynamic.list.concat(res.data.lists);
if(that.tabid==1){ //预热
that.begin.biz_browse = res.data.biz_browse
that.begin.biz_book = res.data.biz_book
that.begin.gw_browse = res.data.gw_browse
that.begin.gw_book = res.data.gw_book
that.begin.browse = res.data.browse
that.begin.book = res.data.book
}else{ // 直播
that.live.biz_view = res.data.biz_view
that.live.biz_order = res.data.biz_order
that.live.gw_view = res.data.gw_view
that.live.gw_order = res.data.gw_order
that.live.view = res.data.view
that.live.order = res.data.order
that.live.view_num = res.data.view_num