From 8177b79722037a348b08375c63723356c07690c5 Mon Sep 17 00:00:00 2001 From: wbc <2597324127@qq.com> Date: 星期五, 06 九月 2024 16:50:11 +0800 Subject: [PATCH] 入库检验模块增加 --- unpackage/cache/wgt/H546D0BA6/pages/CangKuManage/pictrue_add.html | 22 ++++++++++++---------- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/unpackage/cache/wgt/H546D0BA6/pages/CangKuManage/pictrue_add.html b/unpackage/cache/wgt/H546D0BA6/pages/CangKuManage/pictrue_add.html index 39e9dee..7330bdb 100644 --- a/unpackage/cache/wgt/H546D0BA6/pages/CangKuManage/pictrue_add.html +++ b/unpackage/cache/wgt/H546D0BA6/pages/CangKuManage/pictrue_add.html @@ -142,8 +142,8 @@ mui.init(); console.log(1); // mui.plusReady(function() { - mui.ready(function() { - + mui.plusReady(function() { + app.init(); mid = GetQueryString('mid'); type = GetQueryString('type'); @@ -406,8 +406,8 @@ 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') @@ -460,7 +460,7 @@ } var myTextarea = document.getElementById('areaId').value; - + console.log(132); $.ajax({ url: app.API_URL_HEADER + "/XKYDHD/UPLOADPICTURE", @@ -485,18 +485,20 @@ 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)); } }); -- Gitblit v1.9.3