地址弹窗修复

master
linzj 5 years ago
parent 983b621de9
commit e1c19c19ac

@ -15,7 +15,7 @@
<view class="section" @tap="translate"> <view class="section" @tap="translate">
<text>所在地区</text> <text>所在地区</text>
<view class="pca">{{province}} {{city}} {{area}}</view> <view class="pca">{{province}} {{city}} {{area}}</view>
<view class="animation-element-wrapper" :animation="animation" :style="'visibility:' + (show ? 'visible':'hidden')" @tap="hiddenFloatView"> <view class="animation-element-wrapper" :animation="animation" :style="'visibility:' + (show ? 'visible':'hidden')" @tap.stop="hiddenFloatView">
<view class="animation-element" @tap.stop="nono"> <view class="animation-element" @tap.stop="nono">
<text class="right-bt" @tap.stop="hiddenFloatView">确定</text> <text class="right-bt" @tap.stop="hiddenFloatView">确定</text>
<view class="line"></view> <view class="line"></view>
@ -217,11 +217,11 @@ export default {
translate: function (e) { translate: function (e) {
if (t == 0) { if (t == 0) {
moveY = 0; moveY = 0;
show = false; show = true;
t = 1; t = 1;
} else { } else {
moveY = 200; moveY = 200;
show = true; show = false;
t = 0; t = 0;
} // this.animation.translate(arr[0], arr[1]).step(); } // this.animation.translate(arr[0], arr[1]).step();
@ -233,7 +233,7 @@ export default {
hiddenFloatView(e) { hiddenFloatView(e) {
//console.log(e); //console.log(e);
moveY = 200; moveY = 200;
show = true; show = false;
t = 0; t = 0;
this.animationEvents(this, moveY, show); this.animationEvents(this, moveY, show);
}, },

Loading…
Cancel
Save