wx.showLoading,加上mask:true,还是可以穿透
发布于 6 年前 作者 zgu 3882 次浏览 来自 问答

wx.showLoading,加上mask:true,虽然说是透明,可以防穿透,但是我实验了一下,还是可以操作按钮,并没起到阻挡作用,为什么

5 回复

我用安卓遇到了,!!!!

1、按钮在页面最下方右边

<view class=‘foot-btn’ bindtap=‘orderPay’>确认支付</view>

2、wx.showLoading中

//支付买单订单

orderPay: function () {

var than = this

wx.showLoading({

title: ‘支付中’,

mask: true,

complete: function () {

//判断余额不足时,是否勾选微信支付

if (than.data.userAccount - than.data.totalPay < 0 && than.data.weChartSelect == false) {

wx.hideLoading();

wx.showModal({

title: ‘提示’,

content: ‘账户余额不足,请勾选微信支付’,

})

return

}

var isUseCash = false

//余额和微信同时支付

if (than.data.userAccountSelect == true) {

isUseCash = true

}

than.payPayment(isUseCash)

}

})

},

我点击最下方按钮还是可以点击。

求个可复现这个问题的 demo?

用微信最新的版本(iOS 6.5.22)没有复现这个问题

what,为什么老删除,好想听官方怎么说

回到顶部