You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

476 lines
20 KiB

  1. <?php
  2. header("Content-type:text/html; charset=utf-8");
  3. require_once '../Common/Config.php';
  4. require_once '../Common/Function.php';
  5. require_once "jssdk.php";
  6. $pdo = new PDO("sqlsrv:Server=".HOST.";Database=".DB, USER, PASSWORD);//5.6版本pdo连接sqlsrv
  7. if ($_POST){
  8. $openid= htmlspecialchars($_POST['openid']);
  9. $fromOpenid=htmlspecialchars($_POST['fromOpenid']);
  10. $tel=htmlspecialchars($_POST['tel']);
  11. // $openid="oCVcbv1udkL4iZm-t1h8YMrMDSyU21";
  12. // $tel="13025822222";
  13. // $fromOpenid='';
  14. $sql="SELECT id FROM lottery_user WHERE openId='".$openid."'";
  15. $result=$pdo->query($sql);
  16. $rowset = $result->fetchAll(PDO::FETCH_ASSOC);
  17. $errinfo=$pdo->errorInfo();
  18. if ($errinfo[0] =="00000" && empty($rowset)){
  19. $sql="SELECT TOP 1 id,lotteryCode FROM lottery_code";
  20. $result=$pdo->query($sql);
  21. $rowset = $result->fetchAll(PDO::FETCH_ASSOC);
  22. $errinfo=$pdo->errorInfo();
  23. if ($errinfo[0] =="00000" && !empty($rowset)){
  24. $lotteryCode=$rowset[0]['lotteryCode'];
  25. $id=$rowset[0]['id'];
  26. try {
  27. $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  28. $pdo->beginTransaction();
  29. $sqla="INSERT INTO lottery_user(openId,tel,createtime) VALUES('".$openid."','".$tel."','".date("Y-m-d H:i:s",time())."')";
  30. $resulta=$pdo->exec($sqla);
  31. $sqlb="INSERT INTO lottery_friends(openId,friendsOpenId,lotteryCode,createtime) VALUES('".$openid."','".$fromOpenid."',".$lotteryCode.",'".date("Y-m-d H:i:s",time())."')";
  32. $resultb=$pdo->exec($sqlb);
  33. $sqlc="DELETE FROM lottery_code WHERE id=".$id;
  34. $resultc=$pdo->exec($sqlc);
  35. $pdo->exec($sql);
  36. $pdo->exec();
  37. $pdo->commit();
  38. if ($resultb && $resultc !==false){
  39. echo json_encode(array("errorcode"=>0,"errorinfo"=>"报名成功"));
  40. if ($fromOpenid !=''){
  41. $fsql="SELECT id FROM lottery_user WHERE openId='".$fromOpenid."'";
  42. $fresult=$pdo->query($fsql);
  43. $frowset = $fresult->fetchAll(PDO::FETCH_ASSOC);
  44. $errinfo=$pdo->errorInfo();
  45. if ($frowset){
  46. $icodesql="SELECT TOP 1 id,lotteryCode FROM lottery_code";
  47. $icoderesult=$pdo->query($icodesql);
  48. $icoderowset = $icoderesult->fetchAll(PDO::FETCH_ASSOC);
  49. //$icodeerrinfo=$pdo->errorInfo();
  50. if ($icoderowset){
  51. $iid=$icoderowset[0]['id'];
  52. $icode=$icoderowset[0]['lotteryCode'];
  53. try {
  54. $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  55. $pdo->beginTransaction();
  56. $isql="INSERT INTO lottery_friends(openId,lotteryCode,createtime) VALUES('".$fromOpenid."',".$icode.",'".date("Y-m-d H:i:s",time())."')";
  57. $iresult=$pdo->exec($isql);
  58. $dsql="DELETE FROM lottery_code WHERE id=".$iid;
  59. $iresult=$pdo->exec($dsql);
  60. $pdo->commit();
  61. } catch (Exception $e) {
  62. $pdo->rollBack();
  63. //echo "Failed: " . $e->getMessage();
  64. }
  65. }
  66. }
  67. }
  68. exit;
  69. }
  70. } catch (Exception $e) {
  71. $pdo->rollBack();
  72. echo json_encode(array("errorcode"=>1,"errorinfo"=>"报名失败"));exit;
  73. }
  74. }else{
  75. echo json_encode(array("errorcode"=>2,"errorinfo"=>"抽奖码已发完"));exit;
  76. }
  77. }else{
  78. echo json_encode(array("errorcode"=>3,"errorinfo"=>"微信号已经报名"));exit;
  79. }
  80. }
  81. if (isset($_GET['openId'])){
  82. $openId=$_GET['openId'];
  83. //$openId="oCVcbv1udkL4iZm-t1h8YMrMDSyU";
  84. $sql="SELECT id,tel,sharTimeLine,lotteryCode FROM lottery_user WHERE openId='{$openId}'";
  85. //$pdo=new PDO("mysql:host=".HOST.";dbname=".DB,USER,PASSWORD); //7.0版本pdo连接mysql
  86. $result=$pdo->query($sql);
  87. $rowset = $result->fetchAll(PDO::FETCH_ASSOC);
  88. $errinfo=$pdo->errorInfo();
  89. if($rowset){
  90. $htmlTel=$rowset[0]['tel'];
  91. $codeSql="SELECT lotteryCode FROM lottery_friends WHERE openId='{$openId}'";
  92. //$pdo=new PDO("mysql:host=".HOST.";dbname=".DB,USER,PASSWORD); //7.0版本pdo连接mysql
  93. $codeResult=$pdo->query($codeSql);
  94. $codeRowset = $codeResult->fetchAll(PDO::FETCH_ASSOC);
  95. if ($codeRowset){
  96. $htmlCode="";
  97. foreach ($codeRowset as $v){
  98. $htmlCode.=$v['lotteryCode'].",";
  99. }
  100. $htmlCode=rtrim($htmlCode,",");
  101. }
  102. //$htmlCode=$rowset[0]['lotteryCode'];
  103. $sharTimeLine=$rowset[0]['sharTimeLine'];
  104. $updateId=$rowset[0]['id'];
  105. $jssdk = new JSSDK(APPID, APPSECRET);
  106. $signPackage = $jssdk->GetSignPackage();
  107. $news = array(
  108. "Title" =>"巴士自由行100位免费送",
  109. "Description"=>"『蜘蛛出行』全部20条线路任选,关注蜘蛛出行微信号选择奖品。",
  110. "PicUrl" =>'http://xmwx.zhizhuchuxing.cn/wechat/Public/images/lottery-title-page.png',
  111. "Url" =>'http://xmwx.zhizhuchuxing.cn/wechat/jssdk/activity.php');
  112. $sharfriendArr=array("url"=>'http://xmwx.zhizhuchuxing.cn/wechat/jssdk/activity.php?fromOpenId='.$openId);
  113. }else {
  114. $infoUrl="http://".$_SERVER['HTTP_HOST']."/wechat/jssdk/activity.php?openId=".$openId;
  115. Header("Location: $infoUrl");
  116. exit();
  117. }
  118. }else if(!isset($_GET['code'])){
  119. $selfUrl=urlencode("http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
  120. $getCodeUrl="https://open.weixin.qq.com/connect/oauth2/authorize?appid=".APPID."&redirect_uri=".$selfUrl."&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect";
  121. Header("Location: $getCodeUrl");
  122. exit();
  123. }else{
  124. $code=$_GET['code'];
  125. $getOpenidUrl="https://api.weixin.qq.com/sns/oauth2/access_token?appid=".APPID."&secret=".APPSECRET."&code=".$code."&grant_type=authorization_code";
  126. $response=http_request($getOpenidUrl);
  127. $openIdObj=json_decode($response);
  128. $openId=$openIdObj->openid;
  129. $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."&openId=".$openId;
  130. Header("Location: $url");
  131. exit;
  132. }
  133. ?>
  134. <!DOCTYPE html>
  135. <html>
  136. <head>
  137. <meta charset="UTF-8">
  138. <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
  139. <title>蜘蛛出行免单活动</title>
  140. <style>
  141. *{margin:0px;padding: 0px;font-family: "黑体";}
  142. .tishi2{width:100%;text-align: center;font-size:18px;line-height: 30px;margin-bottom:20px;}
  143. .page2moblie,.page2choujiang{width:100%;text-align: center;}
  144. .page2moblie span,.page2choujiang span{font-size: 16px;}
  145. .kjtime{width:100%;text-align: center;font-size: 18px;margin-top:20px;}
  146. .kjtime2{width:100%;text-align: center;font-size: 18px;margin-top:5px;margin-bottom: 10px;}
  147. .anniu2{margin-left:14px;margin-right:14px;text-align: center;height: 45px;line-height: 45px;font-size: 20px;color: #FFFFFF;background: #33d6b0;margin-bottom: 10px;margin-top:30px;border-radius:5px}
  148. .tishi3{margin-left:5%;font-weight: bold;text-align: left;margin-top:17px;}
  149. .tishi4{width:90%;margin:auto;font-size: 14px;margin-top:10px;line-height: 22px;}
  150. .zhizhulogo{width:100%;height: 136px;}
  151. .black{position: absolute;top:0;left: 0;background: #000000;opacity: 0.4;width:100%;}
  152. .tishi5{position: absolute;top:120px;left: 0;right: 0;margin:auto;background: #FFFFFF;width:66%;border-radius:5px;/*padding: 10px;padding-top:30px;padding-bottom:30px;*/font-size:15px;display: none;}
  153. .x{position: absolute;top:5px;right:5px; height: 20px;width:20px;text-align: center;line-height: 21px;font-size: 21px;border-radius:2px;}
  154. .erweima{width:180px;margin-top:10px;}
  155. </style>
  156. </head>
  157. <body id="body">
  158. <div style="position: relative;">
  159. <div class="page2" id="page2">
  160. <div class="tishi2">
  161. <div style="margin-bottom:35px;width:100%;margin:0;padding-top:30px;">
  162. <label style="color: #FF8124; font-size: 22px;font-weight:bold;">
  163. 您已成功参与蜘蛛出行免单活动!
  164. </label>
  165. </div>
  166. </div>
  167. <div style="width:372;margin:0px 14px 0px 14px; border: 1px solid #DBDBDB; border-radius: 5px">
  168. <div class="page2moblie">
  169. <div style="height: 10px;line-height:10px;"></div>
  170. <span><label style="color: #595959;font-size: 16px;line-height: 18px;font-weight:bold;">您的手机号:</label></span>
  171. <div style="height: 10px;line-height:10px;"></div>
  172. <span id="moblienum2" style="width:90%;margin-left:5%;padding-right:5%;color: #595959;font-size: 16px;line-height: 20px;"><?php echo $htmlTel; ?></span>
  173. </div>
  174. <div id="cjm">
  175. <div class="page2choujiang">
  176. <div style="height: 35px;line-height:35px;"></div>
  177. <span><label style="padding-bottom:10px;color: #595959;font-size: 16px;line-height: 18px;font-weight:bold;">您的抽奖码:</label></span>
  178. <div style="height: 10px;line-height:10px;"></div>
  179. <div id="choujiangma" style="width:90%;margin-left:5%;padding-right:5%; word-wrap: break-word; word-break: break-all;color: #595959;font-size: 16px;line-height: 20px;"><?php echo $htmlCode;?></div>
  180. <div style="height: 10px;line-height:10px;"></div>
  181. </div>
  182. <?php
  183. /* foreach ($codeRowset as $v){
  184. echo "<div class='page2choujiang'><span>抽奖码:</span><span>".$v['lotteryCode']."</span></div>";
  185. } */
  186. ?>
  187. </div>
  188. </div>
  189. <div class="anniu2" id="anniu2">多要一个抽奖码</div>
  190. <!--<div class="anniu2" id="anniu3">再拿一个大红包</div>-->
  191. <!-- <div class="tishi3" style="margin-top:30px;">开奖时间:</div>
  192. <div class="tishi4" >2016年5月23日 周一 18:00</div>
  193. <div class="tishi3">温馨提示:</div>
  194. <div class="tishi4" >长按下方二维码关注我们,获取中奖提醒,及下期活动推送;若开奖时未关注蜘蛛出行,中奖视为无效。</div> -->
  195. <!-- <div class="tishi4" >2.点击上方[再拿一个大红包],成功邀请2位好友参与,奖励一个大红包!红包数量有限,先到先得哦!</div>-->
  196. <!-- <div style="margin:0 auto;text-align: center;">
  197. <img class="erweima" src="../Public/images/erweima.jpg" alt="" />
  198. <img class="zhizhulogo" style="width:300px;" src="../Public/images/zhizhulogo.png" alt="" />
  199. </div> -->
  200. <img src="../Public/images/名片_1.png" style="width:100%; margin:0 auto; display:block">
  201. <div style="width:372;margin:0px 14px 0px 14px; border: 1px solid #DBDBDB; border-radius: 5px; padding:14px">
  202. <p style="color: #00cc90; margin-bottom:30px;font-size:16px;line-height: 23px;height: 18px;font-weight:bold;">开奖时间</p>
  203. <p style="color: #595959; margin-bottom:2px;font-size:14px;line-height: 23px;height: 20px;">活动截止:2016年6月9日(周四)15:00</p>
  204. <p style="color: #595959; padding-bottom:14px; font-size:14px;line-height: 23px;height: 16px;border-bottom: 1px solid #DBDBDB;">获奖公布:2016年6月9日(周四)18:00</p>
  205. <p style="color: #00cc90; padding-top:14px;margin-bottom:30px;font-size:16px;line-height: 23px;height: 18px;font-weight:bold;">抽奖规则</p>
  206. <p style="color: #595959; padding-bottom:14px; font-size:14px;border-bottom: 1px solid #DBDBDB;line-height: 23px;">抽奖码后两位与活动截止当日收盘上证指数小数点后2位相同即中奖。
  207. <span style="color: #595959; font-size:14px;font-weight:bold;height: 16px;">多一个抽奖码,多一份机会。</span>
  208. </p>
  209. <p style="color: #00cc90; padding-top:14px;margin-bottom:30px;font-size:16px;line-height: 23px;height: 18px;font-weight:bold;">活动奖品</p>
  210. <p style="padding-bottom:14px;border-bottom: 1px solid #DBDBDB;line-height: 23px;">
  211. <span style="color: #595959; font-size:14px;font-weight:bold;">『蜘蛛出行微信号』</span>
  212. <span style="color: #595959; font-size:14px;line-height: 16px;height: 16px;">内所有巴士自由行线路任选一条</span>
  213. <span style="color: #595959; font-size:14px;line-height: 16px;font-weight:bold;height: 16px;">免费</span>
  214. <span style="color: #595959; font-size:14px;line-height: 16px;height: 16px;">。一共100位。</span>
  215. </p>
  216. <p style="color: #00cc90;padding-top:14px;margin-bottom:30px; font-size:16px;line-height: 18px;height: 18px;font-weight:bold;line-height: 23px;">温馨提示</p>
  217. <p style="color: #595959;padding-bottom:2px; font-size:14px;line-height: 23px;">长按下方二维码
  218. <span style="color: #595959; font-size:14px;line-height: 16px;font-weight:bold;height: 16px;">关注我们</span>
  219. <span style="color: #595959; font-size:14px;line-height: 16px;height: 16px;">,查看奖品列表、获取中奖通知及获得下期免单活动推送。</span>
  220. </p>
  221. <p style="color: #595959; font-size:14px;line-height: 23px;">若开奖时未关注蜘蛛出行,中奖
  222. <span style="color: #595959; font-size:14px;line-height: 16px;font-weight:bold;height: 16px;">视为无效</span>
  223. <span style="color: #595959; font-size:14px;line-height: 16px;height: 16px;">。</span>
  224. </p>
  225. <img src="../Public/images/名片_2.png" style="width:100%; margin:0 auto; display:block">
  226. </div>
  227. </div>
  228. <div class="black" id="black"></div>
  229. <div class="tishi5" id="tishi5">
  230. <div class="x" id="x"></div>
  231. <div id="content"></div>
  232. </div>
  233. </div>
  234. </body>
  235. <script>
  236. var anniu3=document.getElementById("anniu3");
  237. var anniu2=document.getElementById("anniu2");
  238. var tishi5=document.getElementById("tishi5");
  239. var black=document.getElementById("black");
  240. var body=document.getElementById("body");
  241. var x=document.getElementById("x");
  242. //var content=document.getElementById("content");
  243. var H=document.documentElement.clientHeight;
  244. black.style.height=H+"px";
  245. black.style.display="none";
  246. var banmove=function(ev){ev.preventDefault();}
  247. anniu2.onclick=function(){
  248. window.scrollTo(0,0);
  249. body.addEventListener("touchmove",banmove);
  250. body.style.height=H+'px';
  251. body.style.overflow="hidden";
  252. //black.style.display="block";
  253. //tishi5.style.display="block";
  254. content.innerHTML='<img src="../Public/images/提示.png" style="width:100%; margin:0 auto; display:block">'
  255. fadeIn(black, 4, 40);
  256. fadeIn(tishi5, 10, 100);
  257. fadeIn(content, 10, 100);
  258. fadeIn(x, 10, 100);
  259. }
  260. /* anniu3.onclick=function(){
  261. body.style.overflow="hidden";
  262. black.style.display="block";
  263. tishi5.style.display="block";
  264. content.innerHTML="点击右上角【···】,选择【发送给朋友】邀请两位好友报名成功,您即可领取红包!共190份红包,先到先得!"
  265. } */
  266. x.onclick=function(){
  267. body.removeEventListener("touchmove",banmove);
  268. tishi5.style.display="none";
  269. black.style.display="none";
  270. body.style.overflow="scroll";
  271. fadeOut(black, 4, 0);
  272. fadeOut(tishi5, 10, 0);
  273. fadeOut(content, 10, 0);
  274. fadeOut(x, 10, 0);
  275. }
  276. //淡入效果(含淡入到指定透明度)
  277. function fadeIn(elem, speed, opacity){
  278. /*
  279. * 参数说明
  280. * elem==>需要淡入的元素
  281. * speed==>淡入速度,正整数(可选)
  282. * opacity==>淡入到指定的透明度,0~100(可选)
  283. */
  284. speed = speed || 20;
  285. opacity = opacity || 100;
  286. //显示元素,并将元素值为0透明度(不可见)
  287. elem.style.display = 'block';
  288. setOpacity(elem, 0);
  289. //初始化透明度变化值为0
  290. var val = 0;
  291. //循环将透明值以5递增,即淡入效果
  292. (function(){
  293. setOpacity(elem, val);
  294. val += 5;
  295. if (val <= opacity) {
  296. setTimeout(arguments.callee, speed)
  297. }
  298. })();
  299. }
  300. //淡出效果(含淡出到指定透明度)
  301. function fadeOut(elem, speed, opacity){
  302. /*
  303. * 参数说明
  304. * elem==>需要淡入的元素
  305. * speed==>淡入速度,正整数(可选)
  306. * opacity==>淡入到指定的透明度,0~100(可选)
  307. */
  308. speed = speed || 20;
  309. opacity = opacity || 0;
  310. //初始化透明度变化值为0
  311. var val = 100;
  312. //循环将透明值以5递减,即淡出效果
  313. (function(){
  314. setOpacity(elem, val);
  315. val -= 5;
  316. if (val >= opacity) {
  317. setTimeout(arguments.callee, speed);
  318. }else if (val < 0) {
  319. //元素透明度为0后隐藏元素
  320. elem.style.display = 'none';
  321. }
  322. })();
  323. }
  324. function setOpacity(ele, opacity) {
  325. if (document.all) {
  326. ///兼容ie
  327. ele.style.filter = "alpha(opacity=" + opacity + ")";
  328. } else {
  329. ///兼容FF和GG
  330. ele.style.opacity = opacity / 100;
  331. }
  332. }
  333. </script>
  334. <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  335. <script src="../Public/js/jquery-1.12.3.min.js"></script>
  336. <script>
  337. /*
  338. * 注意:
  339. * 1. 所有的JS接口只能在公众号绑定的域名下调用,公众号开发者需要先登录微信公众平台进入“公众号设置”的“功能设置”里填写“JS接口安全域名”。
  340. * 2. 如果发现在 Android 不能分享自定义内容,请到官网下载最新的包覆盖安装,Android 自定义分享接口需升级至 6.0.2.58 版本及以上。
  341. * 3. 常见问题及完整 JS-SDK 文档地址:http://mp.weixin.qq.com/wiki/7/aaa137b55fb2e0456bf8dd9148dd613f.html
  342. *
  343. * 开发中遇到问题详见文档“附录5-常见错误及解决办法”解决,如仍未能解决可通过以下渠道反馈:
  344. * 邮箱地址:weixin-open@qq.com
  345. * 邮件主题:【微信JS-SDK反馈】具体问题
  346. * 邮件内容说明:用简明的语言描述问题所在,并交代清楚遇到该问题的场景,可附上截屏图片,微信团队会尽快处理你的反馈。
  347. */
  348. wx.config({
  349. debug: false,
  350. appId: '<?php echo $signPackage["appId"];?>',
  351. timestamp: <?php echo $signPackage["timestamp"];?>,
  352. nonceStr: '<?php echo $signPackage["nonceStr"];?>',
  353. signature: '<?php echo $signPackage["signature"];?>',
  354. jsApiList: [
  355. // 所有要调用的 API 都要加到这个列表中
  356. //'checkJsApi',
  357. 'onMenuShareTimeline',
  358. 'onMenuShareAppMessage'
  359. ]
  360. });
  361. wx.ready(function () {
  362. //检查是否支持jsApi
  363. /* wx.checkJsApi({
  364. jsApiList: [
  365. 'onMenuShareTimeline',
  366. 'onMenuShareAppMessage'
  367. ],
  368. success: function (res) {
  369. //alert(1);
  370. alert(JSON.stringify(res));
  371. }
  372. }); */
  373. // 在这里调用 API
  374. wx.onMenuShareTimeline({ //分享到朋友圈
  375. title: '<?php echo $news['Title'];?>',
  376. link: '<?php echo $news['Url'];?>',
  377. imgUrl: '<?php echo $news['PicUrl'];?>',
  378. trigger: function (res) {
  379. // 不要尝试在trigger中使用ajax异步请求修改本次分享的内容,因为客户端分享操作是一个同步操作,这时候使用ajax的回包会还没有返回
  380. // alert('用户点击分享到朋友圈');
  381. },
  382. success: function (res) {
  383. alert("分享成功");
  384. var url="http://xmwx.zhizhuchuxing.cn/wechat/jssdk/lottery.php";
  385. $.ajax({
  386. type:'post',
  387. async:false,
  388. cache:false,
  389. data:{
  390. method:"shareTimeLine",
  391. sharTimeLine:<?php echo $sharTimeLine;?>,
  392. updateId:<?php echo $updateId;?>,
  393. openId:'<?php echo $openId;?>'
  394. },
  395. url : url,
  396. success : function(data) {
  397. window.location.href = "http://xmwx.zhizhuchuxing.cn/wechat/jssdk/lotteryinfo.php?openId=<?php echo $openId;?>";
  398. },
  399. error : function() {
  400. alert('fail');
  401. }
  402. });
  403. },
  404. cancel: function (res) {
  405. alert('已取消');
  406. },
  407. fail: function (res) {
  408. // alert(JSON.stringify(res));
  409. }
  410. });
  411. wx.onMenuShareAppMessage({ //分享给朋友
  412. title: '<?php echo $news['Title'];?>',
  413. desc: '<?php echo $news['Description'];?>',
  414. link: '<?php echo $sharfriendArr['url']?>',
  415. imgUrl: '<?php echo $news['PicUrl'];?>',
  416. trigger: function (res) {
  417. // 不要尝试在trigger中使用ajax异步请求修改本次分享的内容,因为客户端分享操作是一个同步操作,这时候使用ajax的回包会还没有返回
  418. // alert('用户点击发送给朋友');
  419. },
  420. success: function (res) {
  421. alert('已分享');
  422. //alert(JSON.stringify(res));
  423. },
  424. cancel: function (res) {
  425. // alert('已取消');
  426. },
  427. fail: function (res) {
  428. // alert(JSON.stringify(res));
  429. }
  430. });
  431. /* wx.hideMenuItems({
  432. menuList: [
  433. 'menuItem:share:appMessage',
  434. 'menuItem:share:timeline',
  435. 'menuItem:copyUrl'
  436. ] // 要隐藏的菜单项,只能隐藏“传播类”和“保护类”按钮,所有menu项见附录3
  437. }); */
  438. });
  439. </script>
  440. </html>