| | |
| | | }, |
| | | success: (result) => { |
| | | let res = JSON.parse(result.data) |
| | | res.data = res.data.map((value, index) => { |
| | | res.data[0] = res.data[0].split(';').map((value, index) => { |
| | | return $f.basePicUrl + value |
| | | }) |
| | | res.data[1] = $f.basePicUrl + res.data[1] |
| | | fun.success(res) |
| | | }, |
| | | fail: (res) => {fun.fail(res)}, |
| | | complete: (res) => {fun.complete(res)}, |
| | | fail: (res) => { |
| | | fun.fail(res) |
| | | }, |
| | | complete: (res) => { |
| | | fun.complete(res) |
| | | }, |
| | | }) |
| | | }, |
| | | |
| | |
| | | let fun1 = util.deepCopy(cb) |
| | | fun1.success = function (res) { |
| | | res.forEach(r => { |
| | | r.cmUrl = $f.basePicUrl + r.cmUrl |
| | | r.cmUrl = r.cmUrl.split(';').map((url) => { |
| | | return $f.basePicUrl + url |
| | | }) |
| | | r.cmPdfUrl = $f.basePicUrl + r.cmPdfUrl |
| | | }); |
| | | cb.success(res) |