wangfukang 2 years ago
parent
commit
7961bee7bd
  1. 7
      common/httpRequest.js

7
common/httpRequest.js

@ -7,11 +7,10 @@ const tui = {
}, },
toast: function(text, duration, success) { toast: function(text, duration, success) {
uni.showToast({ uni.showToast({
// #ifndef MP-ALIPAY
duration: duration || 2000, duration: duration || 2000,
// #endif
title: text || "出错啦~", title: text || "出错啦~",
icon: success ? 'success' : 'none' icon: success ? 'success' : 'none',
mask:true
}) })
}, },
modal: function(title, content, showCancel, callback, confirmColor, confirmText) { modal: function(title, content, showCancel, callback, confirmColor, confirmText) {
@ -47,9 +46,7 @@ const tui = {
}, },
constNum: function() { constNum: function() {
let time = 0; let time = 0;
// #ifdef APP-PLUS
time = this.isAndroid() ? 300 : 0; time = this.isAndroid() ? 300 : 0;
// #endif
return time return time
}, },
delayed: null, delayed: null,

Loading…
Cancel
Save