提交 77c70ce4 编写于 作者: Anne_LXM's avatar Anne_LXM 提交者: Anne_LXM

条件编译APP-PLUS改为APP

上级 83711abb
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
initApp(); initApp();
uniIdPageInit() uniIdPageInit()
// #ifdef APP-PLUS // #ifdef APP
//checkIsAgree(); APP端暂时先用原生默认生成的。目前,自定义方式启动vue界面时,原生层已经请求了部分权限这并不符合国家的法规 //checkIsAgree(); APP端暂时先用原生默认生成的。目前,自定义方式启动vue界面时,原生层已经请求了部分权限这并不符合国家的法规
// #endif // #endif
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
// checkIsAgree(); // 默认不开启。目前全球,仅欧盟国家有网页端同意隐私权限的需要。如果需要可以自己去掉注视后生效 // checkIsAgree(); // 默认不开启。目前全球,仅欧盟国家有网页端同意隐私权限的需要。如果需要可以自己去掉注视后生效
// #endif // #endif
// #ifdef APP-PLUS // #ifdef APP
//idfa有需要的用户在应用首次启动时自己获取存储到storage中 //idfa有需要的用户在应用首次启动时自己获取存储到storage中
/*var idfa = ''; /*var idfa = '';
var manager = plus.ios.invoke('ASIdentifierManager', 'sharedManager'); var manager = plus.ios.invoke('ASIdentifierManager', 'sharedManager');
......
import uniStarterConfig from '@/uni-starter.config.js'; 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 checkUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update';
import callCheckVersion from '@/uni_modules/uni-upgrade-center-app/utils/call-check-version'; import callCheckVersion from '@/uni_modules/uni-upgrade-center-app/utils/call-check-version';
...@@ -111,7 +111,7 @@ export default async function() { ...@@ -111,7 +111,7 @@ export default async function() {
}) })
// #ifdef APP-PLUS // #ifdef APP
// 监听并提示设备网络状态变化 // 监听并提示设备网络状态变化
uni.onNetworkStatusChange(res => { uni.onNetworkStatusChange(res => {
console.log(res.isConnected); console.log(res.isConnected);
...@@ -137,7 +137,7 @@ export default async function() { ...@@ -137,7 +137,7 @@ export default async function() {
* // 初始化appVersion * // 初始化appVersion
*/ */
function initAppVersion() { function initAppVersion() {
// #ifdef APP-PLUS // #ifdef APP
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;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"pages": [{ "pages": [{
"path": "pages/list/list", "path": "pages/list/list",
"style": { "style": {
// #ifndef APP-PLUS // #ifndef APP
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
// #endif // #endif
"navigationStyle": "custom" "navigationStyle": "custom"
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
} }
// #ifndef MP-WEIXIN // #ifdef APP
, { , {
"path": "pages/ucenter/about/about", "path": "pages/ucenter/about/about",
"style": { "style": {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
DB Schema 规范:https://uniapp.dcloud.net.cn/uniCloud/schema DB Schema 规范:https://uniapp.dcloud.net.cn/uniCloud/schema
--> -->
<view class="article"> <view class="article">
<!-- #ifdef APP-PLUS --> <!-- #ifdef APP -->
<uni-nav-bar :statusBar="true" :border="false"></uni-nav-bar> <uni-nav-bar :statusBar="true" :border="false"></uni-nav-bar>
<!-- #endif --> <!-- #endif -->
<view class="article-title">{{ title }}</view> <view class="article-title">{{ title }}</view>
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
imageUrl: avatar + '?x-oss-process=image/resize,m_fill,h_100,w_100' //压缩图片解决,在ios端分享图过大导致的图片失效问题 imageUrl: avatar + '?x-oss-process=image/resize,m_fill,h_100,w_100' //压缩图片解决,在ios端分享图过大导致的图片失效问题
}, },
menus: [{ menus: [{
"img": "/static/app-plus/sharemenu/wechatfriend.png", "img": "/static/app/sharemenu/wechatfriend.png",
"text": this.$t('common.wechatFriends'), "text": this.$t('common.wechatFriends'),
"share": { "share": {
"provider": "weixin", "provider": "weixin",
...@@ -226,7 +226,7 @@ ...@@ -226,7 +226,7 @@
} }
}, },
{ {
"img": "/static/app-plus/sharemenu/wechatmoments.png", "img": "/static/app/sharemenu/wechatmoments.png",
"text": this.$t('common.wechatBbs'), "text": this.$t('common.wechatBbs'),
"share": { "share": {
"provider": "weixin", "provider": "weixin",
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
} }
}, },
{ {
"img": "/static/app-plus/sharemenu/mp_weixin.png", "img": "/static/app/sharemenu/mp_weixin.png",
"text": this.$t('common.wechatApplet'), "text": this.$t('common.wechatApplet'),
"share": { "share": {
provider: "weixin", provider: "weixin",
...@@ -250,26 +250,26 @@ ...@@ -250,26 +250,26 @@
} }
}, },
{ {
"img": "/static/app-plus/sharemenu/weibo.png", "img": "/static/app/sharemenu/weibo.png",
"text": this.$t('common.weibo'), "text": this.$t('common.weibo'),
"share": { "share": {
"provider": "sinaweibo" "provider": "sinaweibo"
} }
}, },
{ {
"img": "/static/app-plus/sharemenu/qq.png", "img": "/static/app/sharemenu/qq.png",
"text": "QQ", "text": "QQ",
"share": { "share": {
"provider": "qq" "provider": "qq"
} }
}, },
{ {
"img": "/static/app-plus/sharemenu/copyurl.png", "img": "/static/app/sharemenu/copyurl.png",
"text": this.$t('common.copy'), "text": this.$t('common.copy'),
"share": "copyurl" "share": "copyurl"
}, },
{ {
"img": "/static/app-plus/sharemenu/more.png", "img": "/static/app/sharemenu/more.png",
"text": this.$t('common.more'), "text": this.$t('common.more'),
"share": "shareSystem" "share": "shareSystem"
} }
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<!-- 通过body插槽定义布局 --> <!-- 通过body插槽定义布局 -->
<template v-slot:body> <template v-slot:body>
<view class="main"> <view class="main">
<text class="title">{{item.title}}</text> <text class="title">{{item.title}}-111</text>
<view class="info"> <view class="info">
<text class="author">{{item.user_id[0]?item.user_id[0].nickname:''}}</text> <text class="author">{{item.user_id[0]?item.user_id[0].nickname:''}}</text>
<uni-dateformat class="last_modify_date" :date="item.last_modify_date" <uni-dateformat class="last_modify_date" :date="item.last_modify_date"
...@@ -41,14 +41,14 @@ ...@@ -41,14 +41,14 @@
</template> </template>
</uni-list-item> </uni-list-item>
<!-- 加载状态:上拉加载更多,加载中,没有更多数据了,加载错误 --> <!-- 加载状态:上拉加载更多,加载中,没有更多数据了,加载错误 -->
<!-- #ifdef APP-PLUS --> <!-- #ifdef APP -->
<uni-list-item> <uni-list-item>
<template v-slot:body> <template v-slot:body>
<!-- #endif --> <!-- #endif -->
<uni-load-state @networkResume="refresh" :state="{data,pagination,hasMore, loading, error}" <uni-load-state @networkResume="refresh" :state="{data,pagination,hasMore, loading, error}"
@loadMore="loadMore"> @loadMore="loadMore">
</uni-load-state> </uni-load-state>
<!-- #ifdef APP-PLUS --> <!-- #ifdef APP -->
</template> </template>
</uni-list-item> </uni-list-item>
<!-- #endif --> <!-- #endif -->
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
], ],
ucenterList: [ ucenterList: [
[ [
// #ifdef APP-PLUS // #ifdef APP
{ {
"title": this.$t('mine.signInByAd'), "title": this.$t('mine.signInByAd'),
"event": 'signInByAd', "event": 'signInByAd',
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
"event": 'getScore', "event": 'getScore',
"icon": "paperplane" "icon": "paperplane"
} }
// #ifdef APP-PLUS // #ifdef APP
, { , {
"title": this.$t('mine.invite'), "title": this.$t('mine.invite'),
"event": 'share', "event": 'share',
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
"to": '/pages/ucenter/settings/settings', "to": '/pages/ucenter/settings/settings',
"icon": "gear" "icon": "gear"
}], }],
// #ifdef APP-PLUS // #ifdef APP
[{ [{
"title": this.$t('mine.about'), "title": this.$t('mine.about'),
"to": '/pages/ucenter/about/about', "to": '/pages/ucenter/about/about',
...@@ -287,7 +287,7 @@ ...@@ -287,7 +287,7 @@
company, company,
slogan slogan
} = this.appConfig.about } = this.appConfig.about
// #ifdef APP-PLUS // #ifdef APP
uniShare.show({ uniShare.show({
content: { //公共的分享类型(type)、链接(herf)、标题(title)、summary(描述)、imageUrl(缩略图) content: { //公共的分享类型(type)、链接(herf)、标题(title)、summary(描述)、imageUrl(缩略图)
type: 0, type: 0,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册