Commit 28e2cbe7 authored by houdong's avatar houdong

首页加分享

parent 517ad449
...@@ -939,7 +939,7 @@ class PkTopAction extends IdentityAction{ ...@@ -939,7 +939,7 @@ class PkTopAction extends IdentityAction{
public function setShare($userId,$cfrom=0) { public function setShare($userId,$cfrom=0) {
//app内的分享,参数名不能改 //app内的分享,参数名不能改
$shareTitle='您的好友邀请您参加「全民炼股」争霸赛'; $shareTitle='您的好友邀请您参加「全民炼股」争霸赛';
$shareDesc='红包周周有,万元大奖月月送,精英还可赢PK奖'; $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;
...@@ -954,6 +954,13 @@ class PkTopAction extends IdentityAction{ ...@@ -954,6 +954,13 @@ class PkTopAction extends IdentityAction{
//定义在微信分享的显示 //定义在微信分享的显示
$signPackage=D('Share')->getSignPackage(); $signPackage=D('Share')->getSignPackage();
$this->assign('signPackage',$signPackage); $this->assign('signPackage',$signPackage);
$appParam['url'] = $shareUrl;
$appParam['name'] = $shareTitle;
$appParam['introduction'] = $shareDesc;
;
$this->assign('appParam',json_encode($appParam));
return $appShareInfo; return $appShareInfo;
} }
//提现页面 //提现页面
......
...@@ -28,6 +28,14 @@ ...@@ -28,6 +28,14 @@
.layui-m-layerbtn span[yes]{color:#b40000;} .layui-m-layerbtn span[yes]{color:#b40000;}
.layui-m-layerbtn span[no]{color:#b40000;} .layui-m-layerbtn span[no]{color:#b40000;}
.layui-m-layerbtn span:first-child{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> </style>
<script type="text/javascript"> <script type="text/javascript">
AppBridge.init(); 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