@@ -82,11 +82,22 @@ export const $http = (url, method, data, json, loadingBool = false, isExecute =
}
})
} else {
- uni.showToast({
- title: res.message || 'Error',
- icon: 'none',
- duration: 1500
+ uni.showModal({
+ title: '温馨提示',
+ content: res.message || 'Error',
+ showCancel: false,
+ confirmText: '知道了',
+ success: function (res) {
+ if (res.confirm) {
+ } else if (res.cancel) {
+ }
+ // uni.showToast({
+ // title: res.message || 'Error',
+ // icon: 'none',
+ // duration: 1500
+ // })
return Promise.reject(new Error(res.message || 'Error'))