| | |
| | | mui.init(); |
| | | console.log(1); |
| | | // mui.plusReady(function() { |
| | | mui.ready(function() { |
| | | |
| | | mui.plusReady(function() { |
| | | app.init(); |
| | | |
| | | mid = GetQueryString('mid'); |
| | | type = GetQueryString('type'); |
| | |
| | | image.src = url |
| | | image.onload = () => { |
| | | const canvas = document.createElement('canvas') |
| | | canvas.width = image.naturalWidth // 使用 naturalWidth 为了保证图片的清晰度 |
| | | canvas.height = image.naturalHeight |
| | | canvas.width = image.Width // 使用 naturalWidth 为了保证图片的清晰度 |
| | | canvas.height = image.Height |
| | | canvas.style.width = `${canvas.width / window.devicePixelRatio}px` |
| | | canvas.style.height = `${canvas.height / window.devicePixelRatio}px` |
| | | const ctx = canvas.getContext('2d') |
| | |
| | | |
| | | } |
| | | var myTextarea = document.getElementById('areaId').value; |
| | | |
| | | console.log(132); |
| | | $.ajax({ |
| | | |
| | | url: app.API_URL_HEADER + "/XKYDHD/UPLOADPICTURE", |
| | |
| | | success: function(data) { |
| | | if (data.status == 0) { |
| | | mui.toast("上传成功!"); |
| | | console.log(554); |
| | | wt.close(); |
| | | console.log(554); |
| | | wt.close(); |
| | | |
| | | |
| | | } else { |
| | | console.log(13); |
| | | alert("获取数据异常:" + response.message); |
| | | console.log(133); |
| | | wt.close(); |
| | | alert("获取数据异常:" + data.message); |
| | | } |
| | | |
| | | }, |
| | | error: function(xhr, type, errorThrown) { |
| | | console.log(13); |
| | | wt.close(); |
| | | console.log(134); |
| | | alert("获取数据异常:" + JSON.stringify(errorThrown)); |
| | | } |
| | | }); |