- 开发者工具抽风,无法编译
https://developers.weixin.qq.com/miniprogram/dev/framework/release/
2020-06-29 - 小程序 在安卓机上使用能点透蒙版
[代码]wx.request({[代码] [代码] [代码][代码]url: app.globalData.serverUrl + [代码][代码]'/login'[代码] [代码],[代码][代码] [代码][代码]method: [代码][代码]'get'[代码] [代码],[代码][代码] [代码][代码]data: {[代码][代码] [代码][代码]username: that.data.username,[代码][代码] [代码][代码]password: that.data.password[代码][代码] [代码][代码]},[代码][代码] [代码][代码]header: {[代码][代码] [代码][代码]'x-access-token'[代码] [代码]: app.globalData.token[代码][代码] [代码][代码], [代码][代码]'nimiapp-flag'[代码] [代码]: 1[代码][代码] [代码][代码]},[代码][代码] [代码][代码]complete: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]wx.hideLoading();[代码][代码] [代码][代码]},[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res){[代码][代码] [代码][代码]if[代码] [代码](res.data.code==200){[代码][代码] [代码][代码]app.globalData.token = res.data.result;[代码][代码] [代码] [代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]'登录成功'[代码] [代码],[代码][代码] [代码][代码]icon: [代码][代码]'success'[代码] [代码],[代码][代码] [代码][代码]mask: [代码][代码]true[代码] [代码],[代码][代码] [代码][代码]duration: 5000,[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]wx.switchTab({[代码][代码] [代码][代码]url: [代码][代码]"/pages/customer/add"[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码] [代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码]// 快的时候,成功弹窗一闪而过,安卓机上几乎看不到 提示;慢的时候,可以点击mask 关闭弹窗[代码]wx.showToast 方法启用蒙版mask, 安卓机能点击蒙版,关闭蒙版和弹窗,ios正常。
2018-07-13