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

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

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