Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 82270ab6
authored
Jul 11, 2026
by
岑成威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 更新app.vue
1 parent
723cba3f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
70 deletions
App.vue
App.vue
View file @
82270ab
<
script
>
<
script
>
const
PATH
=
[
'/pages/common/caseDetail'
]
const
PATH
=
[
'/pages/common/caseDetail'
]
const
keepAlive
=
uni
.
requireNativePlugin
(
'Ba-KeepAliveSuit'
)
const
keepAlive
=
uni
.
requireNativePlugin
(
'Ba-KeepAliveSuit'
)
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
import
{
Ws
}
from
'@/ws/Ws.js'
import
{
Ws
}
from
'@/ws/Ws.js'
import
{
RecordSaveService
,
UploadService
}
from
'@/utils/recordManager/index.js'
import
{
RecordSaveService
,
UploadService
}
from
'@/utils/recordManager/index.js'
import
appCacheApi
from
'@/utils/clearAppCache.js'
export
default
{
import
FloatLogConfig
from
'@/utils/logger/FloatLogConfig.js'
// #ifdef APP-PLUS
import
StoragePathMerge
from
'@/utils/storageMerge/StoragePathMerge.js'
import
{
logStep
as
mergeLogStep
,
logStepFail
as
mergeLogStepFail
}
from
'@/utils/storageMerge/log.js'
// #endif
export
default
{
computed
:
{
computed
:
{
...
mapState
(
'audio'
,
[
'isEnd'
,
'isStart'
])
...
mapState
(
'audio'
,
[
'isEnd'
,
'isStart'
])
},
},
...
@@ -18,29 +12,8 @@
...
@@ -18,29 +12,8 @@
userInfo
:
uni
.
getStorageSync
(
'release_userInfo'
)
userInfo
:
uni
.
getStorageSync
(
'release_userInfo'
)
},
},
onLaunch
:
async
function
()
{
onLaunch
:
async
function
()
{
// 先拉取/应用悬浮窗配置并 install,再合并,避免启动日志丢失
try
{
await
FloatLogConfig
.
refreshFromServer
(
true
)
}
catch
(
_
)
{
/* ignore */
}
// #ifdef APP-PLUS
try
{
await
uni
.
$dbRecord
.
init
()
mergeLogStep
(
'归并·启动'
,
'App onLaunch:主库 init 完成,调用 StoragePathMerge.run()'
)
await
StoragePathMerge
.
run
()
}
catch
(
e
)
{
mergeLogStepFail
(
'归并·启动'
,
'启动数据库/合并异常'
,
{
错误
:
e
?.
message
||
String
(
e
)
})
}
finally
{
uni
.
$resolveStorageMerge
?.()
mergeLogStep
(
'归并·启动'
,
'App onLaunch:归并流程结束(uni.$resolveStorageMerge 已触发)'
)
}
// #endif
// #ifndef APP-PLUS
uni
.
$resolveStorageMerge
?.()
// #endif
this
.
onKeep
()
this
.
onKeep
()
//
this.setAPPVersion()
this
.
setAPPVersion
()
setTimeout
(()
=>
{
setTimeout
(()
=>
{
plus
.
screen
.
unlockOrientation
()
//解除锁定屏幕方向
plus
.
screen
.
unlockOrientation
()
//解除锁定屏幕方向
plus
.
screen
.
lockOrientation
(
'landscape-primary'
)
plus
.
screen
.
lockOrientation
(
'landscape-primary'
)
...
@@ -75,13 +48,23 @@
...
@@ -75,13 +48,23 @@
}
}
},
},
onShow
:
async
function
()
{
onShow
:
async
function
()
{
appCacheApi
.
clearAppCache
()
this
.
$store
.
dispatch
(
'setBackgroundState'
,
false
)
this
.
$store
.
dispatch
(
'setBackgroundState'
,
false
)
this
.
$store
.
dispatch
(
'setActivityWindowPopCount'
,
1
)
//冷启动重置活动弹框次数
this
.
$store
.
dispatch
(
'setActivityWindowPopCount'
,
1
)
//冷启动重置活动弹框次数
// 触发轮询开始事件,通知上传管理重新开始轮询
// UploadService.startPolling()
RecordSaveService
.
startPolling
()
RecordSaveService
.
startPolling
()
uni
.
onMemoryWarning
(
function
()
{
uni
.
onMemoryWarning
(
function
()
{
console
.
log
(
'onMemoryWarningReceive'
)
console
.
log
(
'onMemoryWarningReceive'
)
})
})
// const systemInfo = await uni.$api.systemApi.getMockData();
// if (systemInfo.isCheckedUpdate) {
// checkUpdate();
// }
// let version = plus.runtime.version;
// uni.$api.commonApi.getAPPVersion().then((res) => {
// if (res != version && !systemInfo.isCheckedUpdate)
// this.$store.dispatch("openUpdateModal");
// });
},
},
onHide
:
function
()
{
onHide
:
function
()
{
this
.
$store
.
dispatch
(
'setBackgroundState'
,
true
)
this
.
$store
.
dispatch
(
'setBackgroundState'
,
true
)
...
@@ -119,47 +102,47 @@
...
@@ -119,47 +102,47 @@
console
.
error
(
'Promise 异常上报失败:'
,
error
)
console
.
error
(
'Promise 异常上报失败:'
,
error
)
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
page
{
page
{
font-size
:
28
rpx
;
font-size
:
28
rpx
;
height
:
100%
;
height
:
100%
;
min-height
:
100%
;
min-height
:
100%
;
}
}
view
,
view
,
navigator
,
navigator
,
image
,
image
,
text
,
text
,
scroll-view
,
scroll-view
,
swiper
,
swiper
,
swiper-item
,
swiper-item
,
input
,
input
,
textarea
,
textarea
,
button
{
button
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
/* 文字避头尾法则 */
/* 文字避头尾法则 */
.btw
{
.btw
{
table-layout
:
fixed
;
table-layout
:
fixed
;
word-wrap
:
break-word
;
word-wrap
:
break-word
;
word-break
:
normal
;
word-break
:
normal
;
text-align
:
justify
;
text-align
:
justify
;
text-justify
:
inter-ideograph
;
text-justify
:
inter-ideograph
;
}
}
.bg-white
{
.bg-white
{
background
:
#fff
;
background
:
#fff
;
}
}
.font-weight
{
.font-weight
{
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.u-flex-center
{
.u-flex-center
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
}
}
button
{
button
{
margin
:
0
;
margin
:
0
;
padding
:
0
;
padding
:
0
;
line-height
:
1.5
;
line-height
:
1.5
;
...
@@ -167,19 +150,19 @@
...
@@ -167,19 +150,19 @@
background-color
:
transparent
;
background-color
:
transparent
;
border-radius
:
0
;
border-radius
:
0
;
position
:
relative
;
position
:
relative
;
}
}
button
::after
{
button
::after
{
border
:
none
;
border
:
none
;
}
}
//
指定按钮按下去的样式类
//
指定按钮按下去的样式类
.button-hover
{
.button-hover
{
transform
:
translate
(
1
rpx
,
1
rpx
);
transform
:
translate
(
1
rpx
,
1
rpx
);
}
}
.webview-container
{
.webview-container
{
position
:
absolute
;
position
:
absolute
;
width
:
100
rpx
;
width
:
100
rpx
;
height
:
100
rpx
;
height
:
100
rpx
;
top
:
0
rpx
;
top
:
0
rpx
;
left
:
0
rpx
;
left
:
0
rpx
;
}
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment