流量主运营-开源答题闯关小程序
靠流量主收益的同学,给大家推荐一招比较猥琐的运营方式。
当用户点开红包的时候,可以切换一个遮罩+banner(视频)。点击后如下
正常进度条点击即可拆红包,但是用户是不知道的,会连续点击,你懂得。。。
此方法慎用,恰到好处即可
源码拿去不谢
clickegg: function () {
const { pHeight, pTop, clickstatus } = this.data;
const _this = this
if (!clickstatus) {
clearTimeout(times)
}
const height1 = pHeight + 20;
this.setData({
aCount: "hammer 0.6s linear infinite",
pHeight: height1 > 100 ? 100 : height1,
clickBtn: "clickBtn 0.6s linear infinite",
breakFinish: height1 === 100,
clickstatus: false,
}, () => {
if (height1 === 100) {
this.open(), setTimeout(function () {
wx.redirectTo({
url: "../open/open"
});
}, 2e3);
return false
} else {
times = setTimeout(() => {
this.setData({
aCount: "hammer 0.6s linear infinite",
pHeight: 0,
clickBtn: "clickBtn 0.6s linear infinite",
})
}, 600);
}
})
}