fetch('/open_webapi/MofineApi.asmx/GetMainInfo?editionId=1').then(response => { if (response.ok) { return response.json(); } else { throw new Error('pageseoinfos went wrong!'); } }).then(pageseoinfos => { MIP.setData({ seoinfosList: pageseoinfos.data.items }); });
fetch('/open_webapi/MofineApi.asmx/GetPageModuleList?moduleElement=mabout_us_toptitle&editionId=1').then(response => { if (response.ok) { return response.json(); } else { throw new Error('mabout_us_toptitle went wrong!'); } }).then(poninfos => { if(poninfos.data.items.length==0){ MIP.setData({ pontitle: "友情提示:请在网站的'页面模块'增加(页面参数为: mabout_us_toptitle)的标题,即可显示!", ponmoduleMore:"友情提示:请在网站的'页面模块'增加(页面参数为: mabout_us_toptitle)的提示语/记录数,即可显示!" }); }else{ MIP.setData({ pontitle: poninfos.data.items[0].moduleTitle, ponmoduleMore:poninfos.data.items[0].moduleMore }); } });

fetch('/open_webapi/MofineApi.asmx/GetPageModuleList?moduleElement=products_toptitle&editionId=1').then(response => { if (response.ok) { return response.json(); } else { throw new Error('products_toptitle went wrong!'); } }).then(lodinfos => { if(lodinfos.data.items.length==0){ MIP.setData({ protitle: "友情提示:请在网站的'页面模块'增加(页面参数为: products_toptitle)的标题,即可显示!", promoduleMore:"友情提示:请在网站的'页面模块'增加(页面参数为: products_toptitle)的提示语/记录数,即可显示!" }); }else{ MIP.setData({ protitle: lodinfos.data.items[0].moduleTitle, promoduleMore:lodinfos.data.items[0].moduleMore }); } });

fetch('/open_webapi/MofineApi.asmx/GetPageModuleList?moduleElement=news_toptitle&editionId=1').then(response => { if (response.ok) { return response.json(); } else { throw new Error('news_toptitle went wrong!'); } }).then(lodinfos => { if(lodinfos.data.items.length==0){ MIP.setData({ newstitle: "友情提示:请在网站的'页面模块'增加(页面参数为: news_toptitle)的标题,即可显示!", newsmoduleMore:"友情提示:请在网站的'页面模块'增加(页面参数为: news_toptitle)的提示语/记录数,即可显示!" }); }else{ MIP.setData({ newstitle: lodinfos.data.items[0].moduleTitle, newsmoduleMore:lodinfos.data.items[0].moduleMore }); } });