| | |
| | | |
| | | const originProperties = ['url', 'data', 'header', 'method', 'success', 'fail', 'complete']; |
| | | // const baseUrl = "http://127.0.0.1:8080" |
| | | const baseUrl = "http://192.168.0.106:8080" |
| | | const baseUrl = "http://192.168.0.117:8080" |
| | | // const baseUrl = "https://fyami.com.cn:447" |
| | | // const basePicUrl = baseUrl + "/images/" |
| | | const basePicUrl = "https://fyami.com.cn:447/images/" |
| | |
| | | // } |
| | | } |
| | | 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) |