Commit 12a5ac2b by 宋冰琦

修改首页订单信息弹框下拉关闭

parent 55934b43
<template> <template>
<div> <div>
<u-popup :show="show" :round="10" mode="bottom" @close="close" :safeAreaInsetBottom="false" zIndex="10078" > <u-popup :show="show" :round="10" mode="bottom" @close="close" :safeAreaInsetBottom="false" zIndex="10078" >
<view class="bigBox" :style="{'height':'94vh'}"> <view class="bigBox" :style="{'height':'94vh'}" @touchstart="start" @touchend="end" ref="op">
<div class="order_flow" > <div class="order_flow" >
<div class="code">取单码 {{ orderInfo.orderNum }}</div> <div class="code">取单码 {{ orderInfo.orderNum }}</div>
<!-- <image mode="scaleToFill" :src="qrCode" class="qr_code"></image> --> <!-- <image mode="scaleToFill" :src="qrCode" class="qr_code"></image> -->
...@@ -40,6 +40,9 @@ export default { ...@@ -40,6 +40,9 @@ export default {
orderInfo: {}, orderInfo: {},
qrCode: '', qrCode: '',
show: false, show: false,
clientYStart:0,
clientYEnd:0,
bigBox:{}
} }
}, },
computed: { computed: {
...@@ -75,9 +78,19 @@ export default { ...@@ -75,9 +78,19 @@ export default {
} }
}, },
onLoad() { onLoad() {
}, },
methods: { methods: {
start(e) {
this.clientYStart = e.changedTouches[0].clientY
},
end(e) {
this.clientYEnd = e.changedTouches[0].clientY;
const val = parseInt((this.clientYStart-this.clientYEnd))
if(val<-500){
this.close()
}
},
close() { close() {
this.show = false; this.show = false;
}, },
......
...@@ -408,8 +408,8 @@ export default { ...@@ -408,8 +408,8 @@ export default {
} }
.box:last-child{ .box:last-child{
// padding-bottom: 590rpx; padding-bottom: 255rpx;
height: 100%; // height: 100%;
} }
.nav-right-item image { .nav-right-item image {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment