var t, e, a, i, n, o, s;
a = getApp(), i = !0, n = 920 / 750 * wx.getSystemInfoSync().windowWidth, o = void 0,
s = void 0, Page({
data: {
animationInput: "",
animationStyle: "",
scorllDuration: 5e3,
animation: {},
currentSpeed: 0,
speedStyle: [ {
name: "0",
value: 2e3,
active: !1
}, {
name: "0.5x",
value: 5e3,
active: !0
}, {
name: "1x",
value: 4e3,
active: !1
}, {
name: "1.5x",
value: 3e3,
active: !1
} ],
sizeStyle: [ {
name: "24",
value: 24,
active: !0
}, {
name: "36",
value: 36,
active: !1
}, {
name: "48",
value: 48,
active: !1
}, {
name: "64",
value: 64,
active: !1
}, {
name: "72",
value: 72,
active: !1
}, {
name: "auto",
value: 72,
active: !1
} ],
textStyle: [ {
name: "shadow",
active: !1
}, {
name: "flicker",
active: !1
}, {
name: "loop",
active: !0
} ],
colorStyle: [ {
name: "white",
value: "#fff",
active: !0
}, {
name: "red",
value: "#ff0071",
active: !1
}, {
value: "#ff000c",
active: !1
}, {
value: "#ff5300",
active: !1
}, {
value: "#ffe200",
active: !1
}, {
value: "#00ff27",
active: !1
}, {
value: "#009fff",
active: !1
}, {
value: "#00ffc8",
active: !1
}, {
value: "#8500ff",
active: !1
} ],
textShadow: "inherit",
textColor: "#fff",
buttonSpeedNum: 1,
buttonFontNum: 4,
speedIndex: 1,
condition: !0,
buttonFontAuto: 5,
temporaryText: "",
selectIndex: [ {
sureid: !1
}, {
sureid: !1
}, {
sureid: !0
} ],
clearTextOff: !0,
clearTextShow: !1,
lockOff: !1,
hideLock: !0,
staticFontSize: "144",
hideFontSizeIndex: "",
accomplish: !1,
textArr: "",
text1: [],
text2: [ "输入的文字弹幕会在这里滚动出现" ]
},
bindViewTap: function() {
wx.navigateTo({
url: "../logs/logs"
});
},
onLoad: function() {
this.styleRepeat(20, this.data.text2.toString()), this.setData({
windowHeight: wx.getSystemInfoSync().windowHeight,
textArr: this.data.text1,
clearTextOff: !1
}), wx.showShareMenu({
withShareTicket: !0
});
},
onShareAppMessage: function(t) {
return {
title: "喝酒游戏,聚会小工具",
path: "/pages/index/index",
imageUrl: "/pages/img/danmuother.png",
succeess: function(t) {
console.log(t);
}
};
},
onShow: function() {
clearInterval(t);
var e = wx.createAnimation({
timingFunction: "linear"
});
this.setData({
animation: e,
currentSpeed: this.data.windowHeight / this.data.speedStyle[this.data.speedIndex].value,
hideLock: !1
}), this.scorllText();
},
onHide: function() {
this.clearText();
},
documentClick: function() {
var t = this;
clearTimeout(e);
var a = this.data.hideLock, n = this.data.lockOff;
i = !a, n && (i = !0), this.data.clearTextShow && "" != this.data.temporaryText ? this.inputTextDocument() : (this.setData({
hideLock: !a,
clearTextShow: !1
}), e = setTimeout(function() {
i = !0, t.setData({
hideLock: !0,
clearTextOff: !0
}), t.onDrawer();
}, 4e3), this.onDrawer()), this.data.accomplish && this.setData({
accomplish: !this.data.accomplish,
hideLock: !1
});
},
lockClick: function() {
a.clickMusic();
var t = this;
clearTimeout(e);
var n = this.data.lockOff;
i = !i, n || (e = setTimeout(function() {
t.setData({
hideLock: !0
});
}, 4e3)), this.setData({
lockOff: !n,
hideLock: !1
}), this.onDrawer();
},
onDrawer: function() {
return s = wx.createAnimation({
transformOrigin: "50% 50%",
duration: 500,
timingFunction: "ease",
delay: 0
}), i ? (s.translateY(300).step(), this.setData({
animationInput: s,
animationText: s.export()
})) : (s.translateY(0).step(), this.setData({
animationInput: s,
animationText: s.export()
})), s;
},
onTextStyleDrawer: function() {
a.clickMusic(), clearTimeout(e);
var t = wx.createAnimation({
transformOrigin: "50% 50%",
duration: 500,
timingFunction: "ease",
delay: 0
});
t.translateY(-n).step(), this.setData({
animationStyle: t,
animationTextStyle: t.export(),
accomplish: !0,
hideLock: !1
}), i = !0, this.onDrawer();
},
scorllText: function() {
this.clearText();
var e = "", a = this, i = wx.createSelectorQuery();
i.select("#animationText").boundingClientRect(), i.exec(function(i) {
e = i[0].height;
var n = a.data.windowHeight + e;
a.setData({
currentSpeed: a.data.windowHeight / a.data.speedStyle[a.data.speedIndex].value
}), a.data.scorllDuration = parseInt(n / a.data.currentSpeed);
var o = function() {
a.data.animation.translate3d(-n, 0, 0).step({
duration: a.data.scorllDuration
}), a.data.animation.translate3d(0, 0, 0).step({
duration: 0
}), a.setData({
scorll: a.data.animation.export()
});
};
o(), t = setInterval(function() {
o();
}, a.data.scorllDuration + 500);
});
},
inputTextConfirm: function(t) {
if (clearTimeout(e), this.clearText(), this.styleRepeat(20, t.detail.value), this.setData({
text2: [ t.detail.value ]
}), !this.data.condition) {
var a = t.detail.value.length;
this.textLen(a), this.setData({
buttonFontNum: 5
});
}
this.loopState(), (i = !1) || (i = !0, this.setData({
hideLock: !0
}), this.onDrawer()), this.setData({
clearTextOff: !0,
clearTextShow: !1
});
},
inputTextDocument: function() {
clearTimeout(e), this.clearText(), this.styleRepeat(20, this.data.temporaryText),
this.setData({
text2: [ this.data.temporaryText ],
clearTextShow: !1,
clearTextOff: !0
}), this.loopState();
},
loopState: function() {
this.data.textStyle[2].active && "0" != this.data.speedIndex ? (this.setData({
textArr: this.data.text1
}), this.scorllText()) : this.setData({
textArr: [ this.data.text2 ]
});
},
clearInputText: function() {
this.setData({
userInput: "",
temporaryText: "",
clearTextShow: !1
})
没有合适的资源?快使用搜索试试~ 我知道了~
喝酒神器小程序源码 内含酒桌游戏 免服务器域名
共181个文件
png:108个
mp3:17个
json:15个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 196 浏览量
2022-02-14
14:56:35
上传
评论
收藏 1.68MB ZIP 举报
温馨提示
这是一款多功能喝酒小程序源码 内含的功能都是酒桌上很火的游戏 比如大家常见的以下几个小游戏 摇骰子 指尖跳转 幸运转盘 咬手鳄鱼 等等小游戏 另外该款小程序搭建安装简单轻轻松松即可上线 安装教程: 解压好源码,然后使用微信开发者工具打开源码 然后上传审核即可,改小程序连合法域名都无需设置
资源推荐
资源详情
资源评论
收起资源包目录
喝酒神器小程序源码 内含酒桌游戏 免服务器域名 (181个子文件)
fximages.jpg 51KB
wxchar.jpg 49KB
zhijian.jpg 38KB
lunpanbj.jpg 15KB
danmu.js 10KB
index.js 9KB
zhijian.js 8KB
zhuanpan.js 5KB
eyu.js 4KB
dengguang.js 3KB
dage.js 3KB
other.js 2KB
shezhi.js 2KB
app.js 614B
util.js 568B
comment.js 417B
logs.js 291B
gameplay.js 272B
project.config.json 2KB
app.json 542B
project.private.config.json 525B
other.json 290B
sitemap.json 191B
zhijian.json 102B
zhuanpan.json 102B
danmu.json 89B
dengguang.json 89B
shezhi.json 81B
logs.json 81B
gameplay.json 75B
dage.json 75B
index.json 72B
eyu.json 29B
xuan2.mp3 62KB
zhuan.mp3 61KB
dian.mp3 41KB
xuan.mp3 38KB
xiaochu.mp3 35KB
fei.mp3 26KB
touzhi.mp3 15KB
shaizi.mp3 11KB
click.mp3 8KB
yao.mp3 7KB
xiaoshi.mp3 6KB
roll.mp3 6KB
dice_click.mp3 6KB
yachi.mp3 5KB
button.mp3 5KB
di.mp3 5KB
dianji.mp3 2KB
dagebj.png 366KB
touzi.png 121KB
uncle_head.png 120KB
haopai.png 79KB
lingmoli.png 58KB
other.png 30KB
dage.png 26KB
zhijian.png 24KB
gaizhi.png 23KB
zhuanpan.png 19KB
suo.png 18KB
toudi.png 17KB
yaoqing.png 17KB
eyu.png 17KB
dengguang.png 16KB
dengguang.png 15KB
danmu.png 15KB
yingbi.png 14KB
shezhi.png 14KB
other.png 13KB
index.png 13KB
danmu.png 13KB
suozong.png 11KB
fuli.png 11KB
yinyue.png 10KB
again.png 10KB
roulette_selected.png 9KB
help.png 7KB
fa2nhui.png 6KB
yanse.png 5KB
moli.png 5KB
gameplay.png 5KB
close.png 5KB
close.png 5KB
y7.png 4KB
y1.png 4KB
y6.png 4KB
y4.png 4KB
y5.png 4KB
y8.png 4KB
y2.png 4KB
y3.png 4KB
yachi.png 4KB
touzi5-7.png 4KB
geshu.png 4KB
yaoqing.png 4KB
touzi6-6.png 4KB
touzi5-6.png 4KB
touzi4-8.png 4KB
touzi2-6.png 4KB
共 181 条
- 1
- 2
资源评论
智慧浩海
- 粉丝: 1w+
- 资源: 5152
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- index.jsp
- Screenshot_20240521_090410_com.huawei.android.launcher.jpg
- 单文件制作工具 7.0.2.3851-x86-x64
- Linux命令.xmind
- 基于Transformer实现的跨域Cross-view实时Map-view语义分割算法-附项目源码-优质项目实战.zip
- linux常用命令大全-.zip
- 2024彩虹聚合DNS管理系统源码 管理系统快速开发平台 聚合平台管理.zip
- elasticsearch介绍-.zip
- nodejs安装及环境配置-.zip
- 谷歌浏览器自动化测试版113.0.5672.0(包含linux,windows32/64,mac三个版本,不会自动更新)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功