53BK数字报刊系统V6.0手机版模板源码变化

广告:

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);

}

}

广告:

相关内容

编辑:Admin 时间:2018/1/19 21:03:54 阅览:1107   返回    
手机版
扫描关注53BK报刊官网
扫描关注阅速公司微信