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 3a5638a7
authored
Apr 10, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 拦截物理返回
1 parent
a961cbfc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
pages.json
pages/detail/detail.vue
pages.json
View file @
3a5638a
...
@@ -26,7 +26,8 @@
...
@@ -26,7 +26,8 @@
"path"
:
"pages/detail/detail"
,
"path"
:
"pages/detail/detail"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"onReachBottonDistance"
:
50
"onReachBottonDistance"
:
50
,
"disableSwipeBack"
:
true
}
}
},
},
{
{
...
...
pages/detail/detail.vue
View file @
3a5638a
...
@@ -102,7 +102,7 @@ export default {
...
@@ -102,7 +102,7 @@ export default {
drawStatus
:
false
,
drawStatus
:
false
,
finishVisible
:
false
,
finishVisible
:
false
,
defaulePen
:
require
(
'../../assets/images/media/pen.png'
),
defaulePen
:
require
(
'../../assets/images/media/pen.png'
),
activePen
:
require
(
'../../assets/images/media/pen-active.png'
)
activePen
:
require
(
'../../assets/images/media/pen-active.png'
)
,
};
};
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
...
@@ -111,6 +111,16 @@ export default {
...
@@ -111,6 +111,16 @@ export default {
this
.
id
=
options
.
id
;
this
.
id
=
options
.
id
;
this
.
getFindSoureDetail
(
options
.
id
);
this
.
getFindSoureDetail
(
options
.
id
);
},
},
onBackPress
(
options
)
{
if
(
options
.
from
===
'backbutton'
)
{
// 物理返回按钮触发
// 阻止默认行为,即不执行页面返回
if
(
this
.
type
!=
"preview"
)
this
.
$refs
.
finish
.
open
()
return
true
;
}
// 其他情况允许正常返回
return
false
;
},
async
onReachBottom
()
{
async
onReachBottom
()
{
this
.
$refs
.
history
.
getQuotationList
();
this
.
$refs
.
history
.
getQuotationList
();
},
},
...
...
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