文字滚动手持弹幕小程序
产品功能:
【基本功能】字体颜色、横竖屏、滚动速度、字体大小、历史收藏、背景颜色设置
【*功能】支持本地上传背景图片、动图设置、边框设置、自定义音乐、多种字体效果
图片
应用场景:
【个性表达】自由想象 一切尽在不言中
【演唱会现场】挥动弹幕让爱豆看到
【电竞赛场】为喜爱的战队打CALL
【对象表白】表达心意 个性传情
【接机找人】人海中一眼被认出
app.json
{
"pages": [
"pages/index/index",
"pages/classics/classics",
"pages/logs/logs"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#141416",
"navigationStyle": "custom",
"navigationBarTitleText": "滚动弹幕",
"navigationBarTextStyle": "white",
"backgroundColor": "#000000"
},
"sitemapLocation": "sitemap.json"
}
app.js
var a = require("utils/mta_analysis.js");
App({
onLaunch: function(o) {
var e = this;
a.App.init({
appID: "500703839",
eventID: "500703840",
lauchOpts: o,
autoReport: !0,
statParam: !0,
ignoreParams: []
}), wx.cloud ? wx.cloud.init({
env: "cloud1-2gd7yc5s9a28c170",
traceUser: !0
}) : console.error("请使用 2.2.3 或以上的基础库以使用云能力");
var t = wx.getStorageSync("logs") || [];
t.unshift(Date.now()), wx.setStorageSync("logs", t), wx.login({
success: function(a) {}
}), wx.getSetting({
success: function(a) {
a.authSetting["scope.userInfo"] && wx.getUserInfo({
success: function(a) {
e.globalData.userInfo = a.userInfo, e.userInfoReadyCallback && e.userInfoReadyCallback(a);
}
});
}
});
},
globalData: {
arg: {},
backHome: !1
},
onShow: function(a) {
this.globalData.arg = a.query, console.log("res", a.query), console.log("globalData", this.globalData.arg);
}
});
app.wxss
.container {
align-items: center;
box-sizing: border-box;
display: flex;
flex-direction: column;
height: 100%;
justify-content: space-between;
padding: 200rpx 0;
}
这个是我自己搭建的,大家可以试下玩一下