diff --git a/common/libraries/market/Sylive_entity.php b/common/libraries/market/Sylive_entity.php index 19d12fc2..ee451442 100644 --- a/common/libraries/market/Sylive_entity.php +++ b/common/libraries/market/Sylive_entity.php @@ -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://qs.haodian.cn/web/images/project/H5-ShiYu/goodslogo.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' diff --git a/home/controllers/h5/market/sylive/Stic.php b/home/controllers/h5/market/sylive/Stic.php index fcc174af..2fb064df 100644 --- a/home/controllers/h5/market/sylive/Stic.php +++ b/home/controllers/h5/market/sylive/Stic.php @@ -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); diff --git a/home/controllers/h5/market/sylive/Team.php b/home/controllers/h5/market/sylive/Team.php index 56bd85cb..061f17e5 100644 --- a/home/controllers/h5/market/sylive/Team.php +++ b/home/controllers/h5/market/sylive/Team.php @@ -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; diff --git a/home/controllers/h5/market/sylive/Tstic.php b/home/controllers/h5/market/sylive/Tstic.php index 82ee79dd..a2600f0c 100644 --- a/home/controllers/h5/market/sylive/Tstic.php +++ b/home/controllers/h5/market/sylive/Tstic.php @@ -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); diff --git a/home/views/h5/market/sylive/stic/area.php b/home/views/h5/market/sylive/stic/area.php index 573e5788..6a85ddfd 100644 --- a/home/views/h5/market/sylive/stic/area.php +++ b/home/views/h5/market/sylive/stic/area.php @@ -571,7 +571,7 @@ //获取基础信息 getInfo(){ this.info = { - theme:'https://qs.haodian.cn/web/images/project/H5-ShiYu/upload/upload-1.jpg', + theme:'', tab:[ { id:'1', diff --git a/home/views/h5/market/sylive/stic/index.php b/home/views/h5/market/sylive/stic/index.php index 9b083802..ea75de8f 100644 --- a/home/views/h5/market/sylive/stic/index.php +++ b/home/views/h5/market/sylive/stic/index.php @@ -412,7 +412,7 @@ //获取基础信息 getInfo(){ this.info = { - theme:'https://qs.haodian.cn/web/images/project/H5-ShiYu/upload/upload-1.jpg', + theme:'', tab:[ { id:'1', diff --git a/home/views/h5/market/sylive/tstic/area.php b/home/views/h5/market/sylive/tstic/area.php index 927a142b..45c69a55 100644 --- a/home/views/h5/market/sylive/tstic/area.php +++ b/home/views/h5/market/sylive/tstic/area.php @@ -386,7 +386,7 @@ //获取基础信息 getInfo(){ this.info = { - theme:'https://qs.haodian.cn/web/images/project/H5-ShiYu/upload/upload-1.jpg', + theme:'', tab:[ { id:'1', diff --git a/home/views/h5/market/sylive/tstic/index.php b/home/views/h5/market/sylive/tstic/index.php index 8b2d0953..9122fa2a 100644 --- a/home/views/h5/market/sylive/tstic/index.php +++ b/home/views/h5/market/sylive/tstic/index.php @@ -265,7 +265,7 @@ //获取基础信息 getInfo(){ this.info = { - theme:'https://qs.haodian.cn/web/images/project/H5-ShiYu/upload/upload-1.jpg', + theme:'', tab:[ { id:'1',