let trade=new class{constructor(){}getCategoryList(t=null){util.get("/user/api/index/data",e=>{"function"==typeof t&&t(e)})}getCommodityList(t={}){var e={};t.keywords&&(e.keywords=t.keywords),t.limit&&t.page&&(e.limit=t.limit,e.page=t.page),t.categoryId&&(e.categoryId=t.categoryId),util.get("/user/api/index/commodity"+(util.isEmptyOrNotJson(e)?"":"?"+util.objectToQueryString(e)),e=>{"function"==typeof t.done&&t.done(e)})}},treasure=new class{show(e,t){layer.open({type:1,title:util.icon("fa-duotone fa-regular fa-baby-carriage")+" 您购买的宝贝信息:",area:util.isMobile()?["100%","100%"]:["420px","420px"],content:'<textarea class="layui-input" style="padding: 15px;height: 98%;width: 100%;border: none;overflow-x: hidden;">'+t+"</textarea>",btn:['<span style="color:#aaaaaa;">查看更多信息/下载</span>'],yes:function(){window.open("/user/personal/purchaseRecord?tradeNo="+e)}})}};