提交 2168ab15a1c1dde41e70f2bbf9b217f047b22d3c

作者 wangyu
1 个父辈 58945909

优化蒙层点击消失的范围

@@ -501,7 +501,9 @@ Page({ @@ -501,7 +501,9 @@ Page({
501 closeModalImg: function(e) { 501 closeModalImg: function(e) {
502 console.log("closeModalImg", e) 502 console.log("closeModalImg", e)
503 this.setData({ 503 this.setData({
504 - showModal_img: false 504 + showModal_img: false,
  505 + showModal_reducetype: false,
  506 + showModal_addtype:false
505 }) 507 })
506 }, 508 },
507 509
@@ -395,10 +395,10 @@ @@ -395,10 +395,10 @@
395 </view> 395 </view>
396 396
397 397
398 -<view class="mask" catchtouchmove="preventTouchMove" hidden="{{!showModal_img&&!showModal_reducetype&&!showModal_addtype}}"></view> 398 +<view class="mask" hidden="{{!showModal_img&&!showModal_reducetype&&!showModal_addtype}}" bindtap='closeModalImg'></view>
399 <!-- 申报说明 --> 399 <!-- 申报说明 -->
400 <view style='top:250rpx;position:absolute;z-index:10;width:325px;right:0;left:0;margin:auto' hidden="{{!showModal_img}}"> 400 <view style='top:250rpx;position:absolute;z-index:10;width:325px;right:0;left:0;margin:auto' hidden="{{!showModal_img}}">
401 - <image class='modal_img' src="{{modal_images[cur_status]}}" bindtap='closeModalImg'></image> 401 + <image class='modal_img' src="{{modal_images[cur_status]}}" ></image>
402 <!-- <text style='position:absolute;font-size:20px;color:#fff;float:right;top:0;right:100rpx' bindtap='closeModalImg'>x</text> --> 402 <!-- <text style='position:absolute;font-size:20px;color:#fff;float:right;top:0;right:100rpx' bindtap='closeModalImg'>x</text> -->
403 <view style='width:80rpx;height:80rpx;position:absolute;float:right;top:0;right:0;display:flex;align-items:center;justify-content:center;' bindtap='closeModalImg'> 403 <view style='width:80rpx;height:80rpx;position:absolute;float:right;top:0;right:0;display:flex;align-items:center;justify-content:center;' bindtap='closeModalImg'>
404 <image style='width:30rpx;height:30rpx;' src='/images/close.png'></image> 404 <image style='width:30rpx;height:30rpx;' src='/images/close.png'></image>
注册登录 后发表评论