diff --git a/common/js/util.js b/common/js/util.js
index 56519f4..fb6a505 100644
--- a/common/js/util.js
+++ b/common/js/util.js
@@ -1168,8 +1168,12 @@ export default {
* @returns {boolean} 是否为快应用
*/
isQuickApp() {
+ // #ifndef QUICKAPP-WEBVIEW
const systemInfo = this.getDeviceInfo();
return systemInfo.platform === 'quickapp' || process.env.UNI_PLATFORM === 'quickapp';
+ // #endif
+
+ return true;
},
/**
* 判断是否为华为快应用环境
@@ -1177,8 +1181,12 @@ export default {
*/
isHuaweiQuickApp() {
if (!this.isQuickApp()) return false;
+
+ // #ifndef QUICKAPP-WEBVIEW-HUAWEI
const systemInfo = this.getDeviceInfo();
return systemInfo.brand === 'HUAWEI' || systemInfo.manufacturer === 'HUAWEI' ||
(typeof qh !== 'undefined' && qh.platform === 'huawei');
+ // #endif
+ return true;
}
}
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 0a5cad0..cdab934 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -137,10 +137,8 @@
-
-
+
-