提交 ee2c7b41 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

fix(android): 移除编译警告

上级 4f49305c
...@@ -172,12 +172,12 @@ ...@@ -172,12 +172,12 @@
setLifeCycleNum(num) setLifeCycleNum(num)
}, },
checkGetAndroidApplication() : boolean { checkGetAndroidApplication() : boolean {
const app = getApp()
const androidApplication = app.getAndroidApplication()
// #ifdef APP-ANDROID // #ifdef APP-ANDROID
const res = androidApplication != null const res = true
// #endif // #endif
// #ifndef APP-ANDROID // #ifndef APP-ANDROID
const app = getApp()
const androidApplication = app.getAndroidApplication()
const res = androidApplication == null const res = androidApplication == null
// #endif // #endif
console.log('check getAndroidApplication', res) console.log('check getAndroidApplication', res)
......
...@@ -86,9 +86,11 @@ ...@@ -86,9 +86,11 @@
} }
}, },
onLoad(options : OnLoadOptions) { onLoad(options : OnLoadOptions) {
// #ifndef APP-ANDROID
if (options instanceof UTSJSONObject) { if (options instanceof UTSJSONObject) {
this.checked = true this.checked = true
} }
// #endif
this.getPageStyle(); this.getPageStyle();
}, },
onPullDownRefresh() { onPullDownRefresh() {
...@@ -252,4 +254,4 @@ ...@@ -252,4 +254,4 @@
.radio-value { .radio-value {
margin-left: 10px; margin-left: 10px;
} }
</style> </style>
...@@ -87,10 +87,10 @@ ...@@ -87,10 +87,10 @@
}, },
methods: { methods: {
getPackageName() : string { getPackageName() : string {
const res = uni.getAppBaseInfo();
let packageName : string = "" let packageName : string = ""
// #ifdef APP-IOS // #ifdef APP-IOS
const res = uni.getAppBaseInfo();
packageName = res.bundleId packageName = res.bundleId
// #endif // #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册