|
|
@@ -146,7 +146,10 @@ class Request {
|
|
|
// 返回错误信息
|
|
|
if (response.data.code == 0) {
|
|
|
if (!config.hideError) {
|
|
|
- uni.showToast({ title: response.data.msg, icon: 'none', mask: true })
|
|
|
+ let mask = response.data.mask ? response.data.mask : false
|
|
|
+ let duration = response.data.duration ? response.data.duration : 1500
|
|
|
+ let icon = response.data.icon ? response.data.icon : 'none'
|
|
|
+ uni.showToast({ title: response.data.msg, icon: icon, mask: mask, duration:duration})
|
|
|
}
|
|
|
reject(response.data)
|
|
|
} else if (response.data.code && response.data.code == -1) {
|