service/baserequest.js
@@ -51,11 +51,15 @@ // } } fun1.fail = function (error) { console.log("--------------请求错误----------------" + fun.url); console.log(error); wx.showToast({ title: '网络连接失败', icon: 'none' }) fun.fail(error) if (fun.fail) { fun.fail(error) } } fun1.complete = fun.complete wx.request(fun1)