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

条件编译APP-PLUS改为APP

上级 83711abb
......@@ -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');
......
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;
......
......@@ -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": {
......
......@@ -7,7 +7,7 @@
DB Schema 规范:https://uniapp.dcloud.net.cn/uniCloud/schema
-->
<view class="article">
<!-- #ifdef APP-PLUS -->
<!-- #ifdef APP -->
<uni-nav-bar :statusBar="true" :border="false"></uni-nav-bar>
<!-- #endif -->
<view class="article-title">{{ title }}</view>
......@@ -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"
}
......
......@@ -31,7 +31,7 @@
<!-- 通过body插槽定义布局 -->
<template v-slot:body>
<view class="main">
<text class="title">{{item.title}}</text>
<text class="title">{{item.title}}-111</text>
<view class="info">
<text class="author">{{item.user_id[0]?item.user_id[0].nickname:''}}</text>
<uni-dateformat class="last_modify_date" :date="item.last_modify_date"
......@@ -41,14 +41,14 @@
</template>
</uni-list-item>
<!-- 加载状态:上拉加载更多,加载中,没有更多数据了,加载错误 -->
<!-- #ifdef APP-PLUS -->
<!-- #ifdef APP -->
<uni-list-item>
<template v-slot:body>
<!-- #endif -->
<!-- #endif -->
<uni-load-state @networkResume="refresh" :state="{data,pagination,hasMore, loading, error}"
@loadMore="loadMore">
</uni-load-state>
<!-- #ifdef APP-PLUS -->
<!-- #ifdef APP -->
</template>
</uni-list-item>
<!-- #endif -->
......
......@@ -78,7 +78,7 @@
],
ucenterList: [
[
// #ifdef APP-PLUS
// #ifdef APP
{
"title": this.$t('mine.signInByAd'),
"event": 'signInByAd',
......@@ -108,7 +108,7 @@
"event": 'getScore',
"icon": "paperplane"
}
// #ifdef APP-PLUS
// #ifdef APP
, {
"title": this.$t('mine.invite'),
"event": 'share',
......@@ -125,7 +125,7 @@
"to": '/pages/ucenter/settings/settings',
"icon": "gear"
}],
// #ifdef APP-PLUS
// #ifdef APP
[{
"title": this.$t('mine.about'),
"to": '/pages/ucenter/about/about',
......@@ -287,7 +287,7 @@
company,
slogan
} = this.appConfig.about
// #ifdef APP-PLUS
// #ifdef APP
uniShare.show({
content: { //公共的分享类型(type)、链接(herf)、标题(title)、summary(描述)、imageUrl(缩略图)
type: 0,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册