| | |
| | | // const baseUrl = "https://fyami.com.cn:447" |
| | | // const basePicUrl = baseUrl + "/images/" |
| | | const basePicUrl = "https://fyami.com.cn:447/images/" |
| | | const baseFileUrl = baseUrl + "/meeting/file/" |
| | | const baseIconUrl = "https://fyami.com.cn:447/images/weixin/eplaw/" |
| | | const baseFileUrl = "https://fyami.com.cn:447/meeting/file/" |
| | | |
| | | function request(fun) { |
| | | function request(fun) { |
| | | if (fun.params != undefined) { |
| | | var param = "" |
| | | Object.keys(fun.params).forEach(key => { |
| | |
| | | } |
| | | }); |
| | | var url = fun.url |
| | | fun.url = baseUrl + url + "?" + param |
| | | }else{ |
| | | fun.url = baseUrl + url + "?" + param |
| | | } else { |
| | | var url = fun.url |
| | | fun.url = baseUrl + url |
| | | } |
| | |
| | | fun1.success = function (res) { |
| | | console.log("--------------请求结果----------------" + fun.url); |
| | | console.log(res); |
| | | |
| | | |
| | | if (fun.onHead) { |
| | | fun.onHead(res.header) |
| | | } |
| | | fun.success(res.data) |
| | | // if(res.data.success) { |
| | | // var head = res.data['head'] |
| | |
| | | icon: 'none' |
| | | }) |
| | | if (fun.fail) { |
| | | fun.fail(error) |
| | | fun.fail(error) |
| | | } |
| | | } |
| | | fun1.complete = fun.complete |
| | |
| | | fun['method'] = 'POST' |
| | | request(fun) |
| | | }, |
| | | basePicUrl:basePicUrl, |
| | | baseUrl:baseUrl, |
| | | baseFileUrl:baseFileUrl |
| | | basePicUrl: basePicUrl, |
| | | baseUrl: baseUrl, |
| | | baseFileUrl: baseFileUrl, |
| | | baseIconUrl: baseIconUrl |
| | | } |