From 76b7832908da865d922b7a30aba35e4b7b49f5b4 Mon Sep 17 00:00:00 2001 From: liyj <1617420630@qq.com> Date: Thu, 4 Dec 2025 14:26:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E4=BA=AB=E5=9B=BE=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=8C=E7=BF=BB=E8=AF=91=E9=83=A8=E5=88=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/diy/js/diy.js | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/mall-shop/src/main/resources/static/diy/js/diy.js b/mall-shop/src/main/resources/static/diy/js/diy.js index 0d826996..c439732b 100644 --- a/mall-shop/src/main/resources/static/diy/js/diy.js +++ b/mall-shop/src/main/resources/static/diy/js/diy.js @@ -18114,6 +18114,7 @@ s = $input.attr('imgSize') || 0,//4583 a = $input.attr('fileId') || 0,//4584 e = $input.attr('uptype') || 0;//4585 + var id=$input.attr('id'); var msType= $input.attr('msType');//msType4522 // $(n[_x41903[476]])[_x41903[217]](_x41903[4522]);//msType4522 if (1 == e) { @@ -18125,16 +18126,23 @@ // }, $(n[_x41903[476]])[_x41903[217]](_x41903[4583])); // }); if (s) { - l.pageList.forEach((e,t)=>{ - console.log("e.Id---"+e.Id); - console.log("e.Id---"+t[_x41903[4453]]); - console.log(e.Id===a); - if(e.Id == a){ - publicFun[_x41903[4586]]($(n[_x41903[476]])[_x41903[217]](_x41903[124]), function(e) { - if(250 == e[_x41903[686]]){ - $[_x41903[2030]][_x41903[4089]](e[_x41903[4587]] || __(_x41903[4588])); + l.pageList.forEach((el,t)=>{ + console.log("el.Id---"+el.Id); + console.log("el.Id---"+t[_x41903[4453]]); + if(el.Id == a){ + // publicFun[_x41903[4586]]($(n[_x41903[476]])[_x41903[217]](_x41903[124]), function(e) { + // if(250 == e.status){ + // $.dialog.alert("上传发生错误"); + // // $[_x41903[2030]][_x41903[4089]](e[_x41903[4587]] || __(_x41903[4588])); + // } + // el.ShareImg = e.data.url; + // c(); + // }, s); + publicFun.uploadImage(id, function(e) { + if(250 == e.status){ + $.dialog.alert("上传发生错误"); } - t[_x41903[4589]] = e[_x41903[473]][_x41903[688]]; + el.ShareImg = e.data.url; c(); }, s); }