|
@@ -13,12 +13,15 @@ require_once(BASE_ROOT_PATH . '/helper/url_helper.php');
|
|
require_once(BASE_ROOT_PATH . '/helper/util_helper.php');
|
|
require_once(BASE_ROOT_PATH . '/helper/util_helper.php');
|
|
require_once (BASE_ROOT_PATH . '/helper/relation_helper.php');
|
|
require_once (BASE_ROOT_PATH . '/helper/relation_helper.php');
|
|
require_once (BASE_ROOT_PATH . '/helper/session_helper.php');
|
|
require_once (BASE_ROOT_PATH . '/helper/session_helper.php');
|
|
|
|
+require_once (BASE_ROOT_PATH . '/helper/schema_helper.php');
|
|
|
|
+
|
|
use relation\mem_relation;
|
|
use relation\mem_relation;
|
|
use Exception;
|
|
use Exception;
|
|
use url_helper;
|
|
use url_helper;
|
|
use author_url;
|
|
use author_url;
|
|
use util;
|
|
use util;
|
|
use session_helper;
|
|
use session_helper;
|
|
|
|
+use schema_helper;
|
|
|
|
|
|
class tpl_group_home
|
|
class tpl_group_home
|
|
{
|
|
{
|
|
@@ -125,23 +128,29 @@ class tpl_group_home
|
|
if(isset($this->participants[$this->cur_user])){
|
|
if(isset($this->participants[$this->cur_user])){
|
|
$isManager = $this->isManager($this->cur_user) ? 1 : 0;
|
|
$isManager = $this->isManager($this->cur_user) ? 1 : 0;
|
|
$notice = empty($this->room_info->notice()) ? 0 : 1;
|
|
$notice = empty($this->room_info->notice()) ? 0 : 1;
|
|
|
|
+
|
|
|
|
+ $share_bonus_schema = schema_helper::openurl("共享基金",BASE_SITE_URL."/mobile/index.php?act=member_talk&op=share_bonus&room_id={$this->room_id}");
|
|
|
|
+ $group_notice_schema = schema_helper::openurl("群公告" ,BASE_SITE_URL."/mobile/index.php?act=member_talk&op=message_board&type=3&isManager={$isManager}&talk_id={$this->room_id}");
|
|
|
|
+ $group_goods_schema = schema_helper::openurl("群商品" ,BASE_SITE_URL."/mobile/index.php?act=member_talk&op=room_goods&talk_id={$this->room_id}");
|
|
|
|
+ $group_sport_schema = schema_helper::openurl("群运动" ,BASE_SITE_URL."/mobile/index.php?act=member_talk&op=steps_home&talk_id={$this->room_id}");
|
|
|
|
+
|
|
$html.="<div class=\"weui-flex__item group_bonus\">
|
|
$html.="<div class=\"weui-flex__item group_bonus\">
|
|
- <a href=\"/mobile/index.php?act=member_talk&op=share_bonus&room_id={$this->room_id}\">
|
|
|
|
|
|
+ <a href=\"{$share_bonus_schema}\">
|
|
<img src=\"".RESOURCE_SITE_URL."/mobile/talk/images/group_bonus.png\" alt=\"\">
|
|
<img src=\"".RESOURCE_SITE_URL."/mobile/talk/images/group_bonus.png\" alt=\"\">
|
|
</a>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class=\"weui-flex__item group_notice\">
|
|
<div class=\"weui-flex__item group_notice\">
|
|
- <a id=\"view-group-notice\" data-has-notice={$notice} data-isManager={$isManager} href=\"javascript:void(0);\">
|
|
|
|
|
|
+ <a id=\"view-group-notice\" data-has-notice={$notice} data-isManager={$isManager} data-schema=\"{$group_notice_schema}\" href=\"javascript:void(0);\">
|
|
<img src=\"".RESOURCE_SITE_URL."/mobile/talk/images/group_notice.png\" alt=\"\">
|
|
<img src=\"".RESOURCE_SITE_URL."/mobile/talk/images/group_notice.png\" alt=\"\">
|
|
</a>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class=\"weui-flex__item group_goods\">
|
|
<div class=\"weui-flex__item group_goods\">
|
|
- <a href=\"/mobile/index.php?act=member_talk&op=room_goods&talk_id={$this->room_id}\">
|
|
|
|
|
|
+ <a href=\"{$group_goods_schema}\">
|
|
<img src=\"".RESOURCE_SITE_URL."/mobile/talk/images/group_goods.png\" alt=\"\">
|
|
<img src=\"".RESOURCE_SITE_URL."/mobile/talk/images/group_goods.png\" alt=\"\">
|
|
</a>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class=\"weui-flex__item group_sport\">
|
|
<div class=\"weui-flex__item group_sport\">
|
|
- <a href=\"/mobile/index.php?act=member_talk&op=steps_home&talk_id={$this->room_id}\">
|
|
|
|
|
|
+ <a href=\"$group_sport_schema\">
|
|
<img src=\"".RESOURCE_SITE_URL."/mobile/talk/images/group_sport.png\" alt=\"\">
|
|
<img src=\"".RESOURCE_SITE_URL."/mobile/talk/images/group_sport.png\" alt=\"\">
|
|
</a>
|
|
</a>
|
|
</div>";
|
|
</div>";
|
|
@@ -580,7 +589,7 @@ class tpl_group_home
|
|
private function room_share_btn(){
|
|
private function room_share_btn(){
|
|
$html = "<div class=\"weui-cell\" id='room_share_btn'>
|
|
$html = "<div class=\"weui-cell\" id='room_share_btn'>
|
|
<div class=\"weui-cell__bd\">
|
|
<div class=\"weui-cell__bd\">
|
|
- <p>邀请入群</p>
|
|
|
|
|
|
+ <p>邀请入群(微信、qq)</p>
|
|
</div>
|
|
</div>
|
|
</div>";
|
|
</div>";
|
|
return $html;
|
|
return $html;
|