Commit dc6ccf7f by songbingqi

修复首页取单码不可滚动的问题

parent 22a5f284
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div> <div>
<u-popup :show="show" :round="10" mode="bottom" @close="close" :safeAreaInsetBottom="false" zIndex="10078" :customStyle="popupStyle"> <u-popup :show="show" :round="10" mode="bottom" @close="close" :safeAreaInsetBottom="false" zIndex="10078" :customStyle="popupStyle">
<view class="bigBox" :style="{'margin-top':'-20rpx'}" @touchstart="start" @touchmove.stop.prevent="move" @touchend="end" ref="op"> <view class="bigBox" :style="{'margin-top':'-20rpx'}" @touchstart="start" @touchmove.stop.prevent="move" @touchend="end" ref="op">
<view class="mainBox" id="mainBox"> <scroll-view class="scroll-view" :scroll-y="true">
<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> -->
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<view>5.有问题或对出品任何不满意请联系客服</view> <view>5.有问题或对出品任何不满意请联系客服</view>
</view> </view>
</div> </div>
</view> </scroll-view>
</view> </view>
</u-popup> </u-popup>
...@@ -93,9 +93,9 @@ export default { ...@@ -93,9 +93,9 @@ export default {
move(e) { move(e) {
this.clientYEnd = e.changedTouches[0].clientY; this.clientYEnd = e.changedTouches[0].clientY;
const val = parseInt((this.clientYStart-this.clientYEnd)) const val = parseInt((this.clientYStart-this.clientYEnd))
// if(val<0){ if(val<0){
// this.popupStyle.transform = `translateY(${-val}px)` this.popupStyle.transform = `translateY(${-val}px)`
// } }
}, },
end(e) { end(e) {
this.clientYEnd = e.changedTouches[0].clientY; this.clientYEnd = e.changedTouches[0].clientY;
...@@ -142,6 +142,11 @@ export default { ...@@ -142,6 +142,11 @@ export default {
padding-bottom: 30rpx; padding-bottom: 30rpx;
} }
.scroll-view{
height: 94vh;
overflow-y: scroll;
}
.text { .text {
font-size: 20rpx; font-size: 20rpx;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
......
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