edit-sylive-hidden_share

This commit is contained in:
lccsw
2022-10-24 12:39:47 +08:00
parent 9da5ec2c84
commit 0250423cdf
7 changed files with 22 additions and 16 deletions
+2 -2
View File
@@ -183,10 +183,10 @@ class Sylive_entity{
if($biz_ids){
$org_rows = $this->ci->market_sylive_organization_model->map('organizationId','organizationName',["organizationId in ($biz_ids)"],'','','','organizationId,organizationName');
}
$start = $page>1 ? ($page-1)*$size : 0;
foreach ($rows as $key=>$val) {
$rank = $page>1 ? $key : ($page-1)*$size;
$lists[] = [
'ranking' => $rank+1,
'ranking' => $start+$key+1,
'name' => $org_rows[$val['bizId']] ? $org_rows[$val['bizId']] : '',
'num' => $val[$this->map_kpi_biz[$type]].'人',
'tip' => $biz_id==$val['bizId'] ? '本店' : '',
+8 -3
View File
@@ -166,7 +166,7 @@ class Biz extends Admin {
$total = $this->market_sylive_organization_model->count($where);
$lists = [];
if($total){
$rows = $this->market_sylive_organization_model->select($where,'sortNumber asc',$page,$size,'organizationId,parentId,organizationName');
$rows = $this->market_sylive_organization_model->select($where,'sortNumber asc,organizationId desc',$page,$size,'organizationId,parentId,organizationName');
foreach ($rows as $val) {
$where = [
'status' => 0,
@@ -205,16 +205,21 @@ class Biz extends Admin {
$total = $this->market_sylive_organization_model->count($where);
$lists = [];
if($total){
$rows = $this->market_sylive_organization_model->select($where,'sortNumber asc',$page,$size,'organizationId,parentId,organizationName');
$rows = $this->market_sylive_organization_model->select($where,'sortNumber asc,organizationId desc',$page,$size,'organizationId,parentId,organizationName');
foreach ($rows as $val) {
$where = [
'status' => 0,
"activityId in (select activityId from lc_market_sylive_activity_biz where bizId={$val['organizationId']})" => null
];
$activitynum = $this->market_sylive_activity_model->count($where);
$where = [
'status' => 0,
"organizationId in (select organizationId from lc_market_sylive_organization where parentId={$val['organizationId']})" => null
];
$storenum = $this->user_model->count($where);//顾问
$temp = [
'title' => $val['organizationName'],
'storenum' => $this->user_model->count(['organizationId'=>$val['organizationId'],'status'=>0]), //顾问
'storenum' => $storenum,
'activitynum' => $activitynum,
'url' => '/h5/market/sylive/biz?biz_id='.$val['organizationId'].'&area_id='.$area_id,
'state' => [],
+7 -6
View File
@@ -2,14 +2,14 @@
<script type="text/javascript" src="//player.polyv.net/livesdk/polyv-live.min.js"></script>
<body class="bg-fff">
<div id="app" ref="app">
<div class="container relative bg-no-repeat bg-size-fullwidth bg-pos-top">
<img class="block wp100" :src="info.bg" alt="#">
<div class="container relative bg-no-repeat bg-size-fullwidth bg-pos-top" :style="'background-image:url('+info.bg+')'">
<div class="absolute top-0 right-0 mt15 mr10 ulib-r750 fn-flex overflowhidden line-height-20 space-nowrap">
<a class="fn-flex-item bg-000-op50 pl20 pr20 font-22 color-fff" v-if="info.shareurl" :href="info.shareurl">
<i class="iconfont icon-fenxiang text-middle"></i><span class="text-middle ml10">分享</span></a>
<a class="fn-flex-item bg-000-op50 ml1 pl20 pr20 font-22 color-fff" v-if="info.statisticsurl" :href="info.statisticsurl">
<i class="iconfont icon-shuju text-middle"></i><span class="text-middle ml10">数据</span></a>
</div>
<div class="height-1200"></div>
<div class="fixed left-0 bottom-0 right-0 inner30 bg-fff z-index-4" >
<template v-if="info.live_status<2">
<a class="block bg-1a1a1a pt20 pb20 text-center font-36 color-fff ulib-r10" v-if="info.live_status==1" @click="goLive" href="javascript:;">进入直播间</a>
@@ -27,13 +27,14 @@
<!--直播字幕-->
<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-1a1a1a">{{item.name}}</span>
<span class="ml10 color-666">{{item.tip}}</span>
<span class="color-fff">{{item.name}}</span>
<span class="ml10 color-fff">{{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-1a1a1a">{{item.name}}</span>
<span class="ml10 color-666">{{item.tip}}</span>
<span class="color-fff">{{item.name}}</span>
<span class="ml10 color-fff">{{item.tip}}</span>
</div>
</div>
+2 -2
View File
@@ -17,7 +17,7 @@
<div class="swiper-pagination ulib-rl750"></div>
</div>
</div>
<!--
<div class="bts-1-eee inner30">
<div class="text-center">分享文案</div>
<div class="mt30 relative bds-1-eee inner30 pr200 ulib-r20 font-28" v-for="(item,index) in shareTx">
@@ -25,7 +25,7 @@
<a class="absolute right-0 box-middle mr30 inline-block pl30 pr30 line-height-17 bg-eee ulib-r750 J_copy" :data-clipboard-text="item">复制</a>
</div>
</div>
-->
<div @click="showPoster">
<div style="height:70px;"></div>
<div class="fixed left-0 bottom-0 right-0 bg-000-op80 pt20 pb20 pl30 pr30 text-center z-index-4">
+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?2022102017">
<link rel="stylesheet" href="/css/h5/market/sylive/h5.css?20221024">
<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>
+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?2022102017">
<link rel="stylesheet" href="/css/h5/market/sylive/h5.css?20221024">
<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>
File diff suppressed because one or more lines are too long