Skip to content

Instantly share code, notes, and snippets.

// 缩放 放大事件
_pinchout(e) {
let now = new Date().getTime();
let offset = tool.offset(this.$refs.touch_com.$el);
if (!this.pinchoutTimer || now - this.pinchoutTimer >= 300) {
// 当前用户不是经纪商
if (this.userDetail.isAgent == 0) {
if (this.setNewcomer == '0') {
// 修改当前普通用户经纪商信息
const postData = {}
postData.agentId = this.ruleForm.parentId
postData.userId = this.ruleForm.userId
res = await this.userApi.agentApi.createNormalAgent(postData)
} else {
// 修改当前用户为经纪商
/**
* 此处,尝试对德州的游戏,进行 框架的抽取。
*/
declare namespace AbstractGame {
/*进入房间*/
interface EnterRoom {
initRoom(): void;//整个房间初始化
initRunningRound(): void;//若当前牌局进行中
initXiuxiRound(): void;//若当前牌局休息中
// Learn cc.Class:
// - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
// - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
// Learn Attribute:
// - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
// - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
// - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html