Commit 28e2cbe7 authored by houdong's avatar houdong

首页加分享

parent 517ad449
......@@ -939,7 +939,7 @@ class PkTopAction extends IdentityAction{
public function setShare($userId,$cfrom=0) {
//app内的分享,参数名不能改
$shareTitle='您的好友邀请您参加「全民炼股」争霸赛';
$shareDesc='红包周周有,万元大奖月月送,精英还可赢PK奖';
$shareDesc='红包周周有,万元大奖月月送';
$shareUrl=M_URL."/PkTop?inviterId=".$userId.'&cfrom='.$cfrom;
$appShareInfo['shareTitle']=$shareTitle;
$appShareInfo['shareContent']=$shareDesc;
......@@ -954,6 +954,13 @@ class PkTopAction extends IdentityAction{
//定义在微信分享的显示
$signPackage=D('Share')->getSignPackage();
$this->assign('signPackage',$signPackage);
$appParam['url'] = $shareUrl;
$appParam['name'] = $shareTitle;
$appParam['introduction'] = $shareDesc;
;
$this->assign('appParam',json_encode($appParam));
return $appShareInfo;
}
//提现页面
......
......@@ -28,6 +28,14 @@
.layui-m-layerbtn span[yes]{color:#b40000;}
.layui-m-layerbtn span[no]{color:#b40000;}
.layui-m-layerbtn span:first-child{color:#b40000;}
.header-share{
width: 40px;height: 48px;
display: block;
background: url('__PUBLIC__/Home/images/group/header-shareG.png') no-repeat ;
background-size: 20px 20px;background-position: 0px 14px;
line-height: 100%;position: absolute;right: 0px;top: 0px;
margin-right: -8px;
}
</style>
<script type="text/javascript">
AppBridge.init();
......
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