Commit b1431c62 by 胡悦

chore: 移除保活插件并重置应用版本为1.0.0

- 注释掉 App.vue 中 Ba-KeepAliveSuit 插件的引用及相关方法,以移除保活功能
- 将 manifest.json 中的应用版本从 2.16.0 重置为 1.0.0,版本码从 2160 重置为 1000
- 将屏幕方向配置从 "landscape" 更新为 ["landscape-primary"]
- 移除 manifest.json 中已注释的 Ba-KeepAliveSuit 原生插件配置
- 在 manifest.json 中添加 fallbackLocale 配置项
1 parent 5a4a26b0
......@@ -8,7 +8,7 @@
-->
<script>
const PATH = ['/pages/common/caseDetail']
const keepAlive = uni.requireNativePlugin('Ba-KeepAliveSuit')
// const keepAlive = uni.requireNativePlugin('Ba-KeepAliveSuit')
import { mapState } from 'vuex'
import { Ws } from '@/ws/Ws.js'
// import UploadService from '@/utils/recordManager/UploadService.js'
......@@ -33,18 +33,18 @@ export default {
new Ws().connect()
},
methods: {
onKeep() {
keepAlive &&
keepAlive.onKeep(
{
title: '接待',
content: '接待通知'
},
res => {
console.log(res)
}
)
},
// onKeep() {
// keepAlive &&
// keepAlive.onKeep(
// {
// title: '接待',
// content: '接待通知'
// },
// res => {
// console.log(res)
// }
// )
// },
setAPPVersion() {
let version = plus.runtime.version
let storageVersion = uni.$storage.get('storageVersion')
......
......@@ -2,8 +2,8 @@
"name" : "展业助手",
"appid" : "__UNI__D3BD3DF",
"description" : "",
"versionName" : "2.16.0",
"versionCode" : "2160",
"versionName" : "1.0.0",
"versionCode" : "1000",
"transformPx" : false,
"sassImplementationName" : "node-sass",
/* 5+App特有相关 */
......@@ -16,7 +16,7 @@
"compatible" : {
"ignoreVersion" : true
},
"screenOrientation" : "landscape",
"screenOrientation" : [ "landscape-primary" ],
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
......@@ -81,22 +81,7 @@
}
}
},
"nativePlugins" : {
"Ba-KeepAliveSuit" : {
"__plugin_info__" : {
"name" : "安卓保活套装(通用、常驻通知、电池优化、自启管理、后台运行等)",
"description" : "在Ba-KeepAlive的基础上,新增了忽略电池优化、自启管理、常驻通知。为定位、推送、websocket、定时任务、蓝牙、聊天等保驾护航(**注意:**不保证支持所有机型和场景,建议先试用再购买)",
"platforms" : "Android",
"url" : "https://ext.dcloud.net.cn/plugin?id=11765",
"android_package_name" : "uni.gltap",
"ios_bundle_id" : "",
"isCloud" : true,
"bought" : 1,
"pid" : "11765",
"parameters" : {}
}
}
}
"nativePlugins" : {}
},
/* 快应用特有相关 */
"quickapp" : {},
......@@ -126,5 +111,6 @@
"port" : 8080,
"https" : false
}
}
},
"fallbackLocale" : "zh-Hans"
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!