Commit b81f41ea authored by houdong's avatar houdong

bug

parent 3d700a69
...@@ -20,6 +20,23 @@ class PkTopAction extends IdentityAction{ ...@@ -20,6 +20,23 @@ class PkTopAction extends IdentityAction{
if (in_array($this->GID, $ids)) { if (in_array($this->GID, $ids)) {
$this->assign('joinStatus', 1); $this->assign('joinStatus', 1);
} }
//设置进入交易的参数
if(in_array(ACTION_NAME,['index','choujiang','phbWeek','phbOther'])){
$groupId =$this->GID;
$groupInfo = M('Group')->field('group_id,web_id,category,name,startTime,endTime,member_quantity')->where(['group_id' => $groupId])->find();
$groupStatus = $this->getGroupStatus($groupInfo);
$share = ['groupId' => $groupId, 'groupStatus' => $groupStatus, 'viewPage' => 2, 'statusInt' => $groupStatus,
'close_tips' => '', 'userID' => $userId, 'zhuangtai' => $this->STATUS_TXT[$groupStatus]];
$groupInfo = array_merge($groupInfo, $share);
$this->assign('groupInfo', json_encode($groupInfo));
//设置分享参数
$this->setShare($userId, I('cfrom'));
}
} }
//首页 //首页
public function indexOld() { public function indexOld() {
...@@ -958,8 +975,12 @@ class PkTopAction extends IdentityAction{ ...@@ -958,8 +975,12 @@ class PkTopAction extends IdentityAction{
} }
public function setShare($userId,$cfrom=0) { public function setShare($userId,$cfrom=0) {
//app内的分享,参数名不能改 //app内的分享,参数名不能改
$shareTitle='您的好友邀请您参加「全民炼股」争霸赛'; // $shareTitle='您的好友邀请您参加「全民炼股」争霸赛';
$shareDesc='红包周周有,万元大奖月月送'; // $shareDesc='红包周周有,万元大奖月月送';
$shareTitle='您的好友邀请您参加全民炼股争霸赛-全民分赛场';
$shareDesc='每周评奖,正盈利即可瓜分奖金!!!';
$shareUrl=M_URL."/PkTop?inviterId=".$userId.'&cfrom='.$cfrom; $shareUrl=M_URL."/PkTop?inviterId=".$userId.'&cfrom='.$cfrom;
$appShareInfo['shareTitle']=$shareTitle; $appShareInfo['shareTitle']=$shareTitle;
$appShareInfo['shareContent']=$shareDesc; $appShareInfo['shareContent']=$shareDesc;
...@@ -1313,24 +1334,19 @@ class PkTopAction extends IdentityAction{ ...@@ -1313,24 +1334,19 @@ class PkTopAction extends IdentityAction{
// 'popType' => $popData['popType'], 'popPkUserName' => $popData['popPkUserName'], // 'popType' => $popData['popType'], 'popPkUserName' => $popData['popPkUserName'],
'thinks' => $thinks, 'gonggao' => $gonggao]; 'thinks' => $thinks, 'gonggao' => $gonggao];
// $return = ['msg' => $msg, 'top10' => $top10,'lastMonthInt' => $lastMonthInt, 'myAllPkCount' => $myAllPkCount];
$this->assign($firstPageData); $this->assign($firstPageData);
// $this->assign($mingrentang);
// $this->assign($rankNow);
// $this->assign($return);
//总决赛列表 //总决赛列表
$_GET['order'] = 'zongup'; $_GET['order'] = 'zongup';
$share = array('groupId' => $groupId, 'groupStatus' => $groupStatus, 'viewPage' => 2, 'statusInt' => $groupStatus, // $share = array('groupId' => $groupId, 'groupStatus' => $groupStatus, 'viewPage' => 2, 'statusInt' => $groupStatus,
'close_tips' => '', 'userID' => $userId, 'zhuangtai' => $this->STATUS_TXT[$groupStatus]); // 'close_tips' => '', 'userID' => $userId, 'zhuangtai' => $this->STATUS_TXT[$groupStatus]);
// $groupInfo = array_merge($groupInfo, $share);
$groupInfo = array_merge($groupInfo, $share); // $this->assign('groupInfo', json_encode($groupInfo));
$this->assign('groupInfo', json_encode($groupInfo));
$this->setShare($userId, I('cfrom'));
//朋友圈,微信群,好友分享,分享后自己的id,作为邀请人的id,pc扫码后没有from参数 //朋友圈,微信群,好友分享,分享后自己的id,作为邀请人的id,pc扫码后没有from参数
$inviterId = I('inviterId', ''); $inviterId = I('inviterId', '');
......
...@@ -58,58 +58,58 @@ ...@@ -58,58 +58,58 @@
<td>排名</td><td></td><td style="text-align: left">昵称</td> <td>排名</td><td></td><td style="text-align: left">昵称</td>
<td <eq name="order" value="1">style='background-color: #ffe5bb;'</eq> > <td <eq name="order" value="1">style='background-color: #ffe5bb;'</eq> >
<a href="/index/phb?order=1#anchor1" style="text-decoration: none;color:#fdf5d0" >总盈利 <a href="/index/phb?order=1#anchor1" style="text-decoration: none;color:#fdf5d0" >总盈利
<if condition='$order eq 1'> <!--<if condition='$order eq 1'>-->
<img src="__PUBLIC__/images/h5/g2020/t-down.png" alt=""> <!--<img src="__PUBLIC__/images/h5/g2020/t-down.png" alt="">-->
</if> <!--</if>-->
</a> </a>
</td> </td>
<td <eq name="order" value="2">style='background-color: #ffe5bb;'</eq> > <td <eq name="order" value="2">style='background-color: #ffe5bb;'</eq> >
<a href="/index/phb?order=2#anchor1" style="text-decoration: none;color:#fdf5d0" >总资产 <a href="/index/phb?order=2#anchor1" style="text-decoration: none;color:#fdf5d0" >总资产
<eq name="order" value="2"> <!--<eq name="order" value="2">-->
<img src="__PUBLIC__/images/h5/g2020/t-down.png" alt=""> <!--<img src="__PUBLIC__/images/h5/g2020/t-down.png" alt="">-->
</eq> <!--</eq>-->
</a> </a>
</td> </td>
<td <eq name="order" value="3">style='background-color: #ffe5bb;'</eq> > <td <eq name="order" value="3">style='background-color: #ffe5bb;'</eq> >
<a href="/index/phb?order=3#anchor1" style="text-decoration: none;color:#fdf5d0" >周奖榜单 <a href="/index/phb?order=3#anchor1" style="text-decoration: none;color:#fdf5d0" >周奖榜单
<eq name="order" value="3"> <!--<eq name="order" value="3">-->
<img src="__PUBLIC__/images/h5/g2020/t-down.png" alt=""> <!--<img src="__PUBLIC__/images/h5/g2020/t-down.png" alt="">-->
</eq> <!--</eq>-->
</a> </a>
</td> </td>
<td <if condition='empty($order) or $order eq 4'> style='background-color: #ffe5bb;'</if> > <td <if condition='empty($order) or $order eq 4'> style='background-color: #ffe5bb;'</if> >
<a href="/index/phb?order=4#anchor1" style="text-decoration: none;color:#fdf5d0" >月盈利 <a href="/index/phb?order=4#anchor1" style="text-decoration: none;color:#fdf5d0" >月盈利
<if condition='empty($order) or $order eq 4'> <!--<if condition='empty($order) or $order eq 4'>-->
<img src="__PUBLIC__/images/h5/g2020/t-down.png" alt=""> <!--<img src="__PUBLIC__/images/h5/g2020/t-down.png" alt="">-->
</if> <!--</if>-->
</a> </a>
</td> </td>
<td <eq name="order" value="5">style='background-color: #ffe5bb;'</eq> > <td <eq name="order" value="5">style='background-color: #ffe5bb;'</eq> >
<a href="/index/phb?order=5#anchor1" style="text-decoration: none;color:#fdf5d0" >成功率 <a href="/index/phb?order=5#anchor1" style="text-decoration: none;color:#fdf5d0" >成功率
<eq name="order" value="5"> <!--<eq name="order" value="5">-->
<img src="__PUBLIC__/images/h5/g2020/t-down.png" alt=""> <!--<img src="__PUBLIC__/images/h5/g2020/t-down.png" alt="">-->
</eq> <!--</eq>-->
</a> </a>
</td> </td>
<td <eq name="order" value="6">style='background-color: #ffe5bb;'</eq>> <td <eq name="order" value="6">style='background-color: #ffe5bb;'</eq>>
<a href="/index/phb?order=6#anchor1" style="text-decoration: none;color:#fdf5d0" >月周转 <a href="/index/phb?order=6#anchor1" style="text-decoration: none;color:#fdf5d0" >月周转
<eq name="order" value="6"> <!--<eq name="order" value="6">-->
<img src="__PUBLIC__/images/h5/g2020/t-down.png" alt=""> <!--<img src="__PUBLIC__/images/h5/g2020/t-down.png" alt="">-->
</eq> <!--</eq>-->
</a> </a>
</td> </td>
<td <eq name="order" value="7">style='background-color: #ffe5bb;'</eq>> <td <eq name="order" value="7">style='background-color: #ffe5bb;'</eq>>
<a href="/index/phb?order=7#anchor1" style="text-decoration: none;color:#fdf5d0" >仓位 <a href="/index/phb?order=7#anchor1" style="text-decoration: none;color:#fdf5d0" >仓位
<eq name="order" value="7"> <!--<eq name="order" value="7">-->
<img src="__PUBLIC__/images/h5/g2020/t-down.png" alt=""> <!--<img src="__PUBLIC__/images/h5/g2020/t-down.png" alt="">-->
</eq> <!--</eq>-->
</a> </a>
</td> </td>
<td <eq name="order" value="8">style='background-color: #ffe5bb;'</eq>> <td <eq name="order" value="8">style='background-color: #ffe5bb;'</eq>>
<a href="/index/phb?order=8#anchor1" style="text-decoration: none;color:#fdf5d0" >最大回撤 <a href="/index/phb?order=8#anchor1" style="text-decoration: none;color:#fdf5d0" >最大回撤
<eq name="order" value="8"> <!--<eq name="order" value="8">-->
<img src="__PUBLIC__/images/h5/g2020/t-down.png" alt=""> <!--<img src="__PUBLIC__/images/h5/g2020/t-down.png" alt="">-->
</eq> <!--</eq>-->
</a> </a>
</td> </td>
</tr> </tr>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<div class="header-h"> <div class="header-h">
<a href="javascript:;" class="header-h-a"><span class="back-btn back-btn-a"></span></a> <a href="javascript:;" class="header-h-a"><span class="back-btn back-btn-a"></span></a>
<span class="header-share"></span> <span class="header-share"></span>
<ul class="header-title"> <li class="one-li">全民炼股争霸赛-全民分赛场-排行榜</li></ul> <ul class="header-title"> <li class="one-li">全民炼股争霸赛-全民分赛场-瓜分十万</li></ul>
</div> </div>
</div> </div>
<div class="head-fit"></div> <div class="head-fit"></div>
......
...@@ -185,8 +185,6 @@ ...@@ -185,8 +185,6 @@
</body> </body>
<script type="text/javascript" src="__PUBLIC__/js/jweixin-1.0.0.js"></script> <script type="text/javascript" src="__PUBLIC__/js/jweixin-1.0.0.js"></script>
<script> <script>
//调用app分享
AppBridge.app_share('{$appParam}');
AppBridge.foot_fit(); AppBridge.foot_fit();
//进入页面的时候取userId //进入页面的时候取userId
......
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
<span class="tip-msg" >距离获得奖金只差 交易一笔</span> <span class="tip-msg" >距离获得奖金只差 交易一笔</span>
</gt> </gt>
<else/> <else/>
<span class="tip-msg" style="width: 193px" >加油,周盈利为正即可瓜分奖金</span> <span class="tip-msg" style="width: 193px;left: 3%;top: 58px;" >加油,周盈利为正即可瓜分奖金</span>
</gt> </gt>
<a href="{:M_URL}/Box#3" class="reset-btn"><img src="__PUBLIC__/images/2023/reset-img.png" alt="">重置模拟金</a> <a href="{:M_URL}/Box#3" class="reset-btn"><img src="__PUBLIC__/images/2023/reset-img.png" alt="">重置模拟金</a>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<meta name="format-detection" content="telephone=no"> <meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="email=no"> <meta name="format-detection" content="email=no">
<title>全民炼股争霸赛-全民分赛场-排行榜</title> <title>全民炼股争霸赛-全民分赛场-获奖榜</title>
<meta name="description" content="叩富简投全民炼股2023模拟炒股大赛,赢10万现金大奖。自2007年开赛以来,已累积举办200多期模拟炒股大奖赛。每周、每月都有现金大奖。软件、手机APP、网页同步参赛"> <meta name="description" content="叩富简投全民炼股2023模拟炒股大赛,赢10万现金大奖。自2007年开赛以来,已累积举办200多期模拟炒股大奖赛。每周、每月都有现金大奖。软件、手机APP、网页同步参赛">
<meta name="keywords" content="2023模拟炒股大赛,模拟炒股大赛,模拟炒股,模拟股票大赛,炒股大赛,模拟炒股有奖大赛,模拟股市大赛,股票模拟大赛,股票大赛,腾讯A股大赛,凤凰炒股大赛"> <meta name="keywords" content="2023模拟炒股大赛,模拟炒股大赛,模拟炒股,模拟股票大赛,炒股大赛,模拟炒股有奖大赛,模拟股市大赛,股票模拟大赛,股票大赛,腾讯A股大赛,凤凰炒股大赛">
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<div class="header-h"> <div class="header-h">
<a href="javascript:;" class="header-h-a"><span class="back-btn back-btn-a"></span></a> <a href="javascript:;" class="header-h-a"><span class="back-btn back-btn-a"></span></a>
<span class="header-share"></span> <span class="header-share"></span>
<ul class="header-title"> <li class="one-li">全民炼股争霸赛-全民分赛场-排行榜</li></ul> <ul class="header-title"> <li class="one-li">全民炼股争霸赛-全民分赛场-获奖榜</li></ul>
</div> </div>
</div> </div>
<div class="head-fit"></div> <div class="head-fit"></div>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<meta name="format-detection" content="telephone=no"> <meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="email=no"> <meta name="format-detection" content="email=no">
<title>全民炼股争霸赛-全民分赛场-排行榜</title> <title>全民炼股争霸赛-全民分赛场-获奖榜</title>
<meta name="description" content="叩富简投全民炼股2023模拟炒股大赛,赢10万现金大奖。自2007年开赛以来,已累积举办200多期模拟炒股大奖赛。每周、每月都有现金大奖。软件、手机APP、网页同步参赛"> <meta name="description" content="叩富简投全民炼股2023模拟炒股大赛,赢10万现金大奖。自2007年开赛以来,已累积举办200多期模拟炒股大奖赛。每周、每月都有现金大奖。软件、手机APP、网页同步参赛">
<meta name="keywords" content="2023模拟炒股大赛,模拟炒股大赛,模拟炒股,模拟股票大赛,炒股大赛,模拟炒股有奖大赛,模拟股市大赛,股票模拟大赛,股票大赛,腾讯A股大赛,凤凰炒股大赛"> <meta name="keywords" content="2023模拟炒股大赛,模拟炒股大赛,模拟炒股,模拟股票大赛,炒股大赛,模拟炒股有奖大赛,模拟股市大赛,股票模拟大赛,股票大赛,腾讯A股大赛,凤凰炒股大赛">
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<div class="header-h"> <div class="header-h">
<a href="javascript:;" class="header-h-a"><span class="back-btn back-btn-a"></span></a> <a href="javascript:;" class="header-h-a"><span class="back-btn back-btn-a"></span></a>
<span class="header-share"></span> <span class="header-share"></span>
<ul class="header-title"> <li class="one-li">全民炼股争霸赛-全民分赛场-排行榜</li></ul> <ul class="header-title"> <li class="one-li">全民炼股争霸赛-全民分赛场-获奖榜</li></ul>
</div> </div>
</div> </div>
<div class="head-fit"></div> <div class="head-fit"></div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment