From 77c70ce4f20705cba6a94f845338915171775dbb Mon Sep 17 00:00:00 2001 From: Anne_LXM Date: Fri, 25 Oct 2024 21:03:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E7=BC=96=E8=AF=91APP-PLUS?= =?UTF-8?q?=E6=94=B9=E4=B8=BAAPP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 4 ++-- common/appInit.js | 6 +++--- pages.json | 4 ++-- pages/list/detail.vue | 16 ++++++++-------- pages/list/list.nvue | 8 ++++---- pages/ucenter/ucenter.vue | 8 ++++---- 6 files changed, 23 insertions(+), 23 deletions(-) diff --git a/App.vue b/App.vue index 65eaabd..55b8bf9 100644 --- a/App.vue +++ b/App.vue @@ -21,7 +21,7 @@ initApp(); uniIdPageInit() - // #ifdef APP-PLUS + // #ifdef APP //checkIsAgree(); APP端暂时先用原生默认生成的。目前,自定义方式启动vue界面时,原生层已经请求了部分权限这并不符合国家的法规 // #endif @@ -29,7 +29,7 @@ // checkIsAgree(); // 默认不开启。目前全球,仅欧盟国家有网页端同意隐私权限的需要。如果需要可以自己去掉注视后生效 // #endif - // #ifdef APP-PLUS + // #ifdef APP //idfa有需要的用户在应用首次启动时自己获取存储到storage中 /*var idfa = ''; var manager = plus.ios.invoke('ASIdentifierManager', 'sharedManager'); diff --git a/common/appInit.js b/common/appInit.js index 46911d4..6ce2cb9 100644 --- a/common/appInit.js +++ b/common/appInit.js @@ -1,6 +1,6 @@ import uniStarterConfig from '@/uni-starter.config.js'; //应用初始化页 -// #ifdef APP-PLUS +// #ifdef APP import checkUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update'; import callCheckVersion from '@/uni_modules/uni-upgrade-center-app/utils/call-check-version'; @@ -111,7 +111,7 @@ export default async function() { }) - // #ifdef APP-PLUS + // #ifdef APP // 监听并提示设备网络状态变化 uni.onNetworkStatusChange(res => { console.log(res.isConnected); @@ -137,7 +137,7 @@ export default async function() { * // 初始化appVersion */ function initAppVersion() { - // #ifdef APP-PLUS + // #ifdef APP let appid = plus.runtime.appid; plus.runtime.getProperty(appid, (wgtInfo) => { let appVersion = plus.runtime; diff --git a/pages.json b/pages.json index 3452edb..4d2f458 100644 --- a/pages.json +++ b/pages.json @@ -2,7 +2,7 @@ "pages": [{ "path": "pages/list/list", "style": { - // #ifndef APP-PLUS + // #ifndef APP "enablePullDownRefresh": true, // #endif "navigationStyle": "custom" @@ -66,7 +66,7 @@ "enablePullDownRefresh": true } } - // #ifndef MP-WEIXIN + // #ifdef APP , { "path": "pages/ucenter/about/about", "style": { diff --git a/pages/list/detail.vue b/pages/list/detail.vue index 2c3eeaf..3ff9760 100644 --- a/pages/list/detail.vue +++ b/pages/list/detail.vue @@ -7,7 +7,7 @@ DB Schema 规范:https://uniapp.dcloud.net.cn/uniCloud/schema --> - + {{ title }} @@ -218,7 +218,7 @@ imageUrl: avatar + '?x-oss-process=image/resize,m_fill,h_100,w_100' //压缩图片解决,在ios端分享图过大导致的图片失效问题 }, menus: [{ - "img": "/static/app-plus/sharemenu/wechatfriend.png", + "img": "/static/app/sharemenu/wechatfriend.png", "text": this.$t('common.wechatFriends'), "share": { "provider": "weixin", @@ -226,7 +226,7 @@ } }, { - "img": "/static/app-plus/sharemenu/wechatmoments.png", + "img": "/static/app/sharemenu/wechatmoments.png", "text": this.$t('common.wechatBbs'), "share": { "provider": "weixin", @@ -234,7 +234,7 @@ } }, { - "img": "/static/app-plus/sharemenu/mp_weixin.png", + "img": "/static/app/sharemenu/mp_weixin.png", "text": this.$t('common.wechatApplet'), "share": { provider: "weixin", @@ -250,26 +250,26 @@ } }, { - "img": "/static/app-plus/sharemenu/weibo.png", + "img": "/static/app/sharemenu/weibo.png", "text": this.$t('common.weibo'), "share": { "provider": "sinaweibo" } }, { - "img": "/static/app-plus/sharemenu/qq.png", + "img": "/static/app/sharemenu/qq.png", "text": "QQ", "share": { "provider": "qq" } }, { - "img": "/static/app-plus/sharemenu/copyurl.png", + "img": "/static/app/sharemenu/copyurl.png", "text": this.$t('common.copy'), "share": "copyurl" }, { - "img": "/static/app-plus/sharemenu/more.png", + "img": "/static/app/sharemenu/more.png", "text": this.$t('common.more'), "share": "shareSystem" } diff --git a/pages/list/list.nvue b/pages/list/list.nvue index cb296a7..702250a 100644 --- a/pages/list/list.nvue +++ b/pages/list/list.nvue @@ -31,7 +31,7 @@