提交 66ede4d4 编写于 作者: Anne_LXM's avatar Anne_LXM

条件编译处理鸿蒙不支持plus

上级 07e11edf
......@@ -29,7 +29,7 @@
// checkIsAgree(); // 默认不开启。目前全球,仅欧盟国家有网页端同意隐私权限的需要。如果需要可以自己去掉注视后生效
// #endif
// #ifdef APP
// #ifdef APP-PLUS
//idfa有需要的用户在应用首次启动时自己获取存储到storage中
/*var idfa = '';
var manager = plus.ios.invoke('ASIdentifierManager', 'sharedManager');
......
......@@ -135,7 +135,7 @@ export default async function() {
* // 初始化appVersion
*/
function initAppVersion() {
// #ifdef APP
// #ifdef APP-PLUS
let appid = plus.runtime.appid;
plus.runtime.getProperty(appid, (wgtInfo) => {
let appVersion = plus.runtime;
......
......@@ -125,7 +125,7 @@
let location = await gps.getLocation({
geocode: true
})
console.log(location);
// console.log(location);
// #endif
// if(location){
// uni.showToast({
......
......@@ -3,7 +3,7 @@
<view class="search-container">
<!-- 搜索框 -->
<view class="search-container-bar">
<!-- #ifdef APP-PLUS -->
<!-- #ifdef APP -->
<uni-icons class="search-icons" :color="iconColor" size="22" type="mic-filled" @click="speech" />
<!-- #endif -->
<!-- :cancelText="keyBoardPopup ? '取消' : '搜索'" -->
......@@ -163,7 +163,7 @@
}
},
onLoad() {
//#ifdef APP-PLUS
//#ifdef APP
this.statusBarHeight = `${uni.getSystemInfoSync().statusBarHeight}px`;
//#endif
},
......@@ -376,7 +376,7 @@
flex-direction: row;
}
/* #ifdef APP-PLUS */
/* #ifdef APP */
/* #ifndef APP-NVUE || VUE3*/
::v-deep
/* #endif */
......
......@@ -56,7 +56,7 @@
uni.setNavigationBarTitle({
title: this.$t('settings.navigationBarTitle')
})
// #ifdef APP-PLUS || MP-WEIXIN
// #ifdef APP || MP-WEIXIN || (APP-HARMONY && uniVersion > 4.31)
uni.checkIsSupportSoterAuthentication({
success: (res) => {
this.supportMode = res.supportMode
......
......@@ -78,7 +78,7 @@
],
ucenterList: [
[
// #ifdef APP
// #ifdef APP-PLUS
{
"title": this.$t('mine.signInByAd'),
"event": 'signInByAd',
......@@ -156,8 +156,7 @@
})
//#endif
},
onShow() {
},
onShow() {},
computed: {
userInfo() {
return store.userInfo
......
// #ifdef APP
// #ifdef APP-PLUS
import permision from "./wa-permission/permission.js"
// #endif
class Gps {
......@@ -30,7 +30,7 @@ class Gps {
console.error(JSON.stringify(err))
callback(false)
// #ifdef APP
// #ifdef APP-PLUS
await this.checkGpsIsOpen()
// #endif
......@@ -63,7 +63,7 @@ class Gps {
});
})
}
// #ifdef APP
// #ifdef APP-PLUS
async checkGpsIsOpen() {
this.lock = true //加锁防止重复的请求
// console.log('检查定位设置开启问题', permision.checkSystemEnableLocation());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册