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 閱覽:597   返回    
        手機版
        掃描關注53BK報刊官網
        掃描關注閱速公司微信
        欧美香蕉视频播放二区