edit-sylive-banner

This commit is contained in:
lccsw
2022-11-19 19:35:03 +08:00
parent a04518df3a
commit a316b55fbe
8 changed files with 13 additions and 6 deletions
@@ -7,6 +7,7 @@ class Sylive_entity{
const DEFAULT_HEAD = 'https://qs.haodian.cn/web/images/project/H5-ShiYu/default-head.png'; //默认头像
const DF_IMG = 'https://img.liche.cn/liche/market/202211/p_862550a2bf8e50f88ccc7b435be62db3.jpg'; //东风图标
const HD_IMG = 'https://qs.haodian.cn/web/images/project/H5-ShiYu/default-avatar.jpg'; //好店云默认头像
const DF_BANNER = 'https://qs.haodian.cn/web/images/project/H5-ShiYu/upload/upload-1.jpg'; //默认背景图
private $ci;
private $map_kpi_biz = [
'browse' => 'browse', 'subscribe' => 'subscribe', 'order' => 'orderTotal','watch' => 'watch'
@@ -30,6 +30,8 @@ class Stic extends Admin{
if(!$row){
throw new Hd_exception('参数错误',400);
}
$jsondata = json_decode($row['jsondata'],true);
$info['banner'] = $jsondata['banner'] ? build_qiniu_image_url($jsondata['banner']) : Sylive_entity::DF_BANNER;
$info['tab'] = time()>=strtotime($row['timeStart']) ? 2 : 1;
//微信分享
$wx_info = $this->share_info($row);
+4 -2
View File
@@ -20,8 +20,9 @@ class Team extends Admin{
throw new Hd_exception('权限不足',400);
}
$row = $this->market_sylive_team_model->get(['teamId'=>$this->session['teamId']]);
$team_arr = $this->sylive_entity->get_team_lists($this->session['teamId']);
$info['headimg'] = $team_arr[0]['logo'] ? build_qiniu_image_url($team_arr[0]['logo']):Sylive_entity::HD_IMG;
$info['nickname'] = $row['teamName'];
$info['headimg'] = Sylive_entity::DF_IMG;
$info['tab'] = [
['id'=>1,'title'=>'团队'],
['id'=>2,'title'=>'活动'],
@@ -43,7 +44,8 @@ class Team extends Admin{
$team_id = $this->input->get('team_id');
}
$row = $this->market_sylive_team_model->get(['teamId'=>$team_id]);
$this->data['headimg'] = Sylive_entity::DF_IMG;
$team_arr = $this->sylive_entity->get_team_lists($this->session['teamId']);
$this->data['headimg'] = $team_arr[0]['logo'] ? build_qiniu_image_url($team_arr[0]['logo']):Sylive_entity::HD_IMG;
$this->data['biz_name'] = $row['teamName'];
$this->data['team_id'] = $team_id;
$this->data['teamLevel'] = $this->teamLevel;
@@ -30,6 +30,8 @@ class Tstic extends Admin{
if(!$row){
throw new Hd_exception('参数错误',400);
}
$jsondata = json_decode($row['jsondata'],true);
$info['banner'] = $jsondata['banner'] ? build_qiniu_image_url($jsondata['banner']) : Sylive_entity::DF_BANNER;
$info['tab'] = time()>=strtotime($row['timeStart']) ? 2 : 1;
//微信分享
$wx_info = $this->share_info($row);
+1 -1
View File
@@ -571,7 +571,7 @@
//获取基础信息
getInfo(){
this.info = {
theme:'https://qs.haodian.cn/web/images/project/H5-ShiYu/upload/upload-1.jpg',
theme:'<?=$info['banner']?>',
tab:[
{
id:'1',
+1 -1
View File
@@ -412,7 +412,7 @@
//获取基础信息
getInfo(){
this.info = {
theme:'https://qs.haodian.cn/web/images/project/H5-ShiYu/upload/upload-1.jpg',
theme:'<?=$info['banner']?>',
tab:[
{
id:'1',
+1 -1
View File
@@ -386,7 +386,7 @@
//获取基础信息
getInfo(){
this.info = {
theme:'https://qs.haodian.cn/web/images/project/H5-ShiYu/upload/upload-1.jpg',
theme:'<?=$info['banner']?>',
tab:[
{
id:'1',
+1 -1
View File
@@ -265,7 +265,7 @@
//获取基础信息
getInfo(){
this.info = {
theme:'https://qs.haodian.cn/web/images/project/H5-ShiYu/upload/upload-1.jpg',
theme:'<?=$info['banner']?>',
tab:[
{
id:'1',