style: update w2a config

pull/64/head
moonrailgun 3 years ago
parent feab2c240c
commit ce8ee59541

@ -0,0 +1,2 @@
unpackage/cache
unpackage/release

@ -1,12 +1,26 @@
App({ App({
options: { options: {
debug: false, debug: true,
}, },
/** /**
* 当wap2app初始化完成时会触发 onLaunch * 当wap2app初始化完成时会触发 onLaunch
*/ */
onLaunch: function () { onLaunch: function () {
console.log('launch'); console.log('launch');
uni.onPushMessage((res) => {
console.log('收到推送消息:', res); //监听推送消息
});
uni.getPushClientId({
success: (res) => {
let push_clientid = res.cid;
console.log('客户端推送标识:', push_clientid);
},
fail(err) {
console.log(err);
},
});
}, },
/** /**
* 当wap2app启动或从后台进入前台显示会触发 onShow * 当wap2app启动或从后台进入前台显示会触发 onShow
@ -21,6 +35,7 @@ App({
console.log('hide'); console.log('hide');
}, },
}); });
Page('__W2A__nightly.paw.msgbyte.com', { Page('__W2A__nightly.paw.msgbyte.com', {
//首页扩展配置 //首页扩展配置
onShow: function () {}, onShow: function () {},

@ -2,12 +2,12 @@
"@platforms" : [ "android", "iPhone", "iPad" ], "@platforms" : [ "android", "iPhone", "iPad" ],
"id" : "__W2A__nightly.paw.msgbyte.com", "id" : "__W2A__nightly.paw.msgbyte.com",
/**/ /**/
"name" : "tailchat", "name" : "tailchat-nightly",
/**/ /**/
"version" : { "version" : {
"name" : "1.0", "name" : "1.0",
/**/ /**/
"code" : "" "code" : 1
}, },
"description" : "", "description" : "",
/**/ /**/
@ -52,9 +52,9 @@
"NativeUI" : {}, "NativeUI" : {},
"Navigator" : {}, "Navigator" : {},
"NativeObj" : {}, "NativeObj" : {},
"Push" : {},
"UIWebview" : {}, "UIWebview" : {},
"Camera" : {} "Camera" : {},
"Push" : {}
}, },
"plus" : { "plus" : {
"kernel" : { "kernel" : {

Loading…
Cancel
Save