Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
user
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
mp
user
Commits
e61e14a3
Commit
e61e14a3
authored
Jul 07, 2022
by
songbingqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改关闭首页取单码弹窗逻辑
parent
df14d135
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
components/OrderQrCode/index.vue
+6
-5
No files found.
components/OrderQrCode/index.vue
View file @
e61e14a3
<
template
>
<div>
<u-popup
:show=
"show"
:round=
"10"
mode=
"bottom"
:safeAreaInsetBottom=
"false"
@
close=
"close"
zIndex=
"10078"
:customStyle=
"popupStyle"
>
<view
class=
"bigBox"
:style=
"
{'margin-top':'-20rpx'}" @touchstart
.stop.prevent="start" @touchmove.stop.prevent="move" @touchend.stop.prevent
="end" ref="op">
<view
class=
"bigBox"
:style=
"
{'margin-top':'-20rpx'}" @touchstart
="start" @touchmove.stop.prevent="move" @touchend
="end" ref="op">
<scroll-view
class=
"scroll-view"
:scroll-y=
"true"
>
<div
class=
"order_flow"
>
<div
class=
"code"
>
取单码
{{
orderInfo
.
orderNum
}}
</div>
...
...
@@ -98,15 +98,16 @@ export default {
if
(
val
<
0
){
this
.
popupStyle
.
transform
=
`translateY(
${
-
val
}
px)`
}
if
(
val
<-
200
){
console
.
log
(
'滑动了:'
+
val
+
',关闭'
)
this
.
close
()
}
},
end
(
e
)
{
this
.
clientYEnd
=
e
.
changedTouches
[
0
].
clientY
;
const
val
=
parseInt
((
this
.
clientYStart
-
this
.
clientYEnd
))
console
.
log
(
val
)
if
(
val
<-
20
){
console
.
log
(
'滑动了:'
+
val
+
',关闭'
)
this
.
close
()
}
else
{
if
(
val
>-
200
){
console
.
log
(
'滑动了:'
+
val
+
',回到顶部'
)
this
.
popupStyle
.
transform
=
'translateY(0px)'
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment