1 Star 2 Fork 4

Pcp/自定义开屏启动广告

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
App.vue 584 Bytes
一键复制 编辑 原始数据 按行查看 历史
Pcp 提交于 2022-02-09 10:18 +08:00 . init
<script>
export default {
onLaunch: function() {
console.log('App Launch');
//app启动时打开启动广告页
var w = plus.webview.open(
'hybrid/html/advertise/advertise.html',
'advertise', {
top: 0,
bottom: 0,
zindex: 999
},
'fade-in',
0
);
//设置定时器,4s后关闭启动广告页
setTimeout(function() {
plus.webview.close(w);
}, 4000);
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style>
/*每个页面公共css */
</style>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Pcp123/uniapp-splash.git
git@gitee.com:Pcp123/uniapp-splash.git
Pcp123
uniapp-splash
自定义开屏启动广告
master

搜索帮助