WeChat Mini Programs uses the wx.showModal pop-up box, and the mask will disappear when you click on the Android phone.

when WeChat Mini Programs uses the wx.showModal pop-up box, clicking on the mask in the Android phone disappears. Is there any way to distinguish the click events of the mask?

Mar.03,2021

have you solved this problem? Share


have you solved it? have you solved it?


is urgently needed.


isn't it written?

=

var conf = {
      title: '',
      mask: true,
      content: '',
      success: function (res) {
        if (res.confirm) {
          console.log('')
        } else if (res.cancel) {
          console.log('');
        }
      },
      complete:function(res){
        if (res.confirm || res.cancel) {
          console.log(' / ');
        } else {
          // 
          wx.showModal(conf);
        }
      }
    };
    wx.showModal(conf);

is not clicked to confirm or cancel, the window pops up again, and the effect has not been tried


No, it is true that res.cancel is closed, but the effect I want is to click on the effect that the mask cannot be turned off. Thank you for your answer

Menu