//author: 声色视觉
//webSite: www.softboyo.cn
//blog.sina.com/k3man
//2021-05
$(function(){$("#loading").hide();goodsQuantity()});function queryorder(){var b=$("input").val();""!=b?isPhoneNo(b)?GetBackstage("queryorder/"+b,function(a){a=a[0];0<a.oid.length?($("#loading").show(),filldata(a)):msgbox("\u672a\u67e5\u5230\u5f53\u524d\u53f7\u7801\u8ba2\u5355",2)}):msgbox("\u624b\u673a\u53f7\u7801\u6709\u8bef\u3002",2):msgbox("\u8bf7\u8f93\u5165\u624b\u673a\u53f7",2)}function filldata(b){var a=[],c="";a[0]='\x3cdiv class\x3d"container-md section-title"\x3e\x3cdiv class\x3d"text-center"\x3e\x3c/div\x3e\x3cdiv class\x3d"row"\x3e\x3cdiv class\x3d"col-12 text-center col-md-6 col-lg-3 d-flex align-items-stretch mb-5 mb-lg-0"\x3e\x3cdiv class\x3d"text-center icon-box wt"\x3e\x3cdiv class\x3d"icon"\x3e\x3cp\x3e\u5355\u53f7\uff1a\x3csapn id\x3d"order_';a[7]='"\x3e';a[1]='\x3c/span\x3e\x3c/p\x3e\x3cspan class\x3d"deal"\x3e';a[2]="\x3c/span\x3e\x3cspan\x3e\x26nbsp;\x26nbsp;";a[3]='\x3c/span\x3e\x3cp class\x3d"RightTxt"\x3e';a[4]='\x3c/p\x3e\x3cp class\x3d"RightTxt container2" id\x3d"statu_';a[7]='" onclick\x3d"payment(this)"\x3e';a[5]='\x3c/p\x3e\x3cp class\x3d"reghtdate"\x3e';a[6]="\x3c/p\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e";for(index=0;index<b.oid.length;index++){for(var f=b.oid[index],d="",e=0;f==b.oid[index];)d+=a[1]+b.product[index]+a[2]+b.quant[index]+"\x26nbsp;\x26nbsp;x \uffe5 "+b.price[index].toFixed(2)+"\x3cbr\x3e",e+=b.quant[index]*b.price[index],index++;index--;c+=a[0]+index+a[7]+b.oid[index]+d+a[3]+'\x3cbr\x3e\u5408\u8ba1\uff1a\uffe5\x3cspan id\x3d"money_'+index+'"\x3e'+e.toFixed(2)+"\x3c/span\x3e"+a[4]+index+a[7]+b.statu[index]+a[5]+"\x3cbr\x3e\u63d0\u4ea4\u65e5\u671f\uff1a"+b.purchasedate[index].replace(".0","")+a[6]}$("#services").html(c)}function payment(b){var a=b.id.split("_")[1];b=$(b).text();var c=$("#money_"+a).text(),a=$("#order_"+a).text();"\u5f85\u652f\u4ed8"==b&&console.log(c+"\u2014\u2014"+a+"++"+b)};