1.打開項(xiàng)目找到 manifest.json文件 中 選擇對(duì)應(yīng)
image.png
2.檢查 manifest.json 源碼處鍵值對(duì)是否一樣
image.png
3.與pages同級(jí)添加如圖文件
image.png
4.開屏頁(yè)hybrid文件 下載地址
https://gitee.com/Relief_believe/web-view/blob/master/hybrid.rar
- 找到app.vue
onLaunch(data) {
// #ifdef APP-PLUS
plus.navigator.closeSplashscreen();
var w = plus.webview.open(
'hybrid/html/advertise/advertise.html',
'本地地址', {
top: 0,
bottom: 0,
zindex: 999
},
'fade-in',
500
);
//設(shè)置定時(shí)器,4s后關(guān)閉啟動(dòng)廣告頁(yè)
setTimeout(function() {
plus.webview.close(w);
}, 4000);
// #endif
}