public void inviteFriend() { RoomCreateVo roomvo = GlobalDataScript.roomVo; if (GlobalDataScript.roomVo != null) { GlobalDataScript.totalTimes = roomvo.realRoundNumber(); GlobalDataScript.surplusTimes = roomvo.realRoundNumber(); string str = ""; str += "南京麻将,"; if (roomvo.paofen > 0) { str += "跑" + roomvo.realPaofen() + ","; } if (roomvo.roundtype == 0) { str += "进园子"; str += " " + roomvo.realYuanzishu() + ","; str += roomvo.realYuanziRule() + "家干,"; } else { str += "敞开头,"; str += "圈数:" + roomvo.realRoundNumber() + ","; } if (roomvo.zashu > 0) { str += "砸" + roomvo.realZaShu() + ","; } if (roomvo.zhanzhuangbi) { str += "比下胡,"; } /* * if (roomvo.guozhuangbi) { * str += "过庄比,"; * } */ str += "有胆,你就来!"; string title = "点点南京麻将 " + "房间号:" + roomvo.roomId; ShareContent customizeShareParams = new ShareContent(); customizeShareParams.SetTitle(title); customizeShareParams.SetText(str); customizeShareParams.SetUrl(APIS.ShareUrl); customizeShareParams.SetImageUrl(APIS.ImageUrl); customizeShareParams.SetShareType(ContentType.Webpage); customizeShareParams.SetObjectID(""); shareSdk.ShowShareContentEditor(PlatformType.WeChat, customizeShareParams); } }
public void setRoomRemark(RoomCreateVo roomvo) { roomType = roomvo.roomType; string str = "房间号:" + roomvo.roomId + "\n"; if (roomvo.paofen > 0) { str += "基础分:" + roomvo.realPaofen() + "\n"; } if (roomvo.roundtype == 0) { str += "进园子"; str += " " + roomvo.realYuanzishu() + "\n"; str += roomvo.realYuanziRule() + "家干\n"; } else { str += "敞开头"; str += " " + roomvo.realRoundNumber() + "局\n"; } if (roomvo.zashu > 0) { str += "砸" + roomvo.realZaShu() + " "; } if (roomvo.zhanzhuangbi) { str += "比下胡 "; } /* * if (roomvo.guozhuangbi) { * str += "过庄比"; * } */ roomRemark.text = str; showCardNumber(); }