• 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 閱覽:300   返回    
    手機版
    掃描關注 53BK報刊官網
    掃描關注 53BK報刊官網
    沙巴SB体育 app