广告:
53BK数字报刊系统V6.0手机版前台模板ASPX页面源码变化:
-----------------------------------------------------------------------------
if (eachban.Pagepdf.Contains(".jpg"))
{
pagepic = eachban.Pagepdf.ToString() + "?editionid=" + eachban.Id;
}
else
{
pagepic = Fun.PaperWebUrl + eachban.Pagepic.ToString() + "?editionid=" + eachban.Id;
}
替换为:
string zoompic = eachban.Zoompic;
if (zoompic.Length > 10)
{
pagepic = Fun.PaperWebUrl + zoompic + "?editionid=" + eachban.Id;
}
else
{
if (eachban.Pagepdf.Contains(".jpg"))
{
pagepic = eachban.Pagepdf.ToString() + "?editionid=" + eachban.Id;
}
else
{
pagepic = Fun.PaperWebUrl + eachban.Pagepic.ToString() + "?editionid=" + eachban.Id;
}
}
---------------------------------------------------------------------------------
<%if (eachban.Pagepdf.Contains(".jpg"))
{%>
var pagepic="<%=eachban.Pagepdf.ToString()%>?editionid=<%=eachban.Id%>";
<%
}else
{%>
var pagepic=paperweburl+"<%=eachban.Pagepic.ToString()%>?editionid=<%=eachban.Id%>";
<%}%>
替换为:
var pagepic="<%=pagepic %>";
-----------------------------------------------------------------------------------------
if (eachban.Pagepdf.Contains(".jpg")){
pagemap = pagemap.Replace(Fun.PaperWebUrl + eachban.Pagepic,eachban.Pagepdf );
}
替换为:
if (zoompic.Length > 10)
{
pagemap = pagemap.Replace(Fun.PaperWebUrl + eachban.Pagepic, Fun.PaperWebUrl + zoompic);
}
else
{
if (eachban.Pagepdf.Contains(".jpg"))
{
pagemap = pagemap.Replace(Fun.PaperWebUrl + eachban.Pagepic, eachban.Pagepdf);
}
}
广告: