diff --git a/pages/API/get-app/get-app.uvue b/pages/API/get-app/get-app.uvue index e31a5df4b10bb8ec6094e830c20935a749cdfddf..2cdf2e5023e9b23824f72934e8113b908ea511dc 100644 --- a/pages/API/get-app/get-app.uvue +++ b/pages/API/get-app/get-app.uvue @@ -172,12 +172,12 @@ setLifeCycleNum(num) }, checkGetAndroidApplication() : boolean { - const app = getApp() - const androidApplication = app.getAndroidApplication() // #ifdef APP-ANDROID - const res = androidApplication != null + const res = true // #endif // #ifndef APP-ANDROID + const app = getApp() + const androidApplication = app.getAndroidApplication() const res = androidApplication == null // #endif console.log('check getAndroidApplication', res) diff --git a/pages/API/get-current-pages/get-current-pages.uvue b/pages/API/get-current-pages/get-current-pages.uvue index 92ea03ec7b1de8ceabe9b25cdce10ebfd55ae13d..4fe89ef1d06b65e6de8084874e6e573c66b54e2f 100644 --- a/pages/API/get-current-pages/get-current-pages.uvue +++ b/pages/API/get-current-pages/get-current-pages.uvue @@ -86,9 +86,11 @@ } }, onLoad(options : OnLoadOptions) { + // #ifndef APP-ANDROID if (options instanceof UTSJSONObject) { this.checked = true } + // #endif this.getPageStyle(); }, onPullDownRefresh() { @@ -252,4 +254,4 @@ .radio-value { margin-left: 10px; } - + diff --git a/pages/component/web-view/web-view.uvue b/pages/component/web-view/web-view.uvue index 494bef44180852ed714d75d06bee0af8f6f314dd..f8fb9bec5a5a9930bf2a1f153872ff154de0a9bb 100644 --- a/pages/component/web-view/web-view.uvue +++ b/pages/component/web-view/web-view.uvue @@ -87,10 +87,10 @@ }, methods: { getPackageName() : string { - const res = uni.getAppBaseInfo(); let packageName : string = "" // #ifdef APP-IOS + const res = uni.getAppBaseInfo(); packageName = res.bundleId // #endif