File:newPage.htm
Method:map.get(key,default)
pageMap??get
类型不正确
xmls/new.xmls
...Pagelist;
@map[pages]=$number.ceiling((@count/3));
@map[count]=@count;
$write(@map.toJson());
}
//书院活动详情
$sub getGoodsview(){
@query=$query(content,content);
@querycag=$query(catalog,content);
@query[ContentId]=$argv(0);
@pageMap=@query.map(['ContentId,CatalogId,Subtitle,Title,Body,Modified,Pics'],['ContentId={*ContentId}']);
@format=[#<li><div class="dem_pic defo_img2"><img class="hhh" src="{*Src}"></div>
<div class="demo_ig">
<img src="../images/big.png" alt="">
</div></li>#];
@
ImageList=@pageMap[Pics];
@Images=$empty;
$if(@ImageList){
@ImageJson=$datatable.loadJson(@ImageList);
$if(@ImageJson<>$null){
@Images=@ImageJson.format(@format);
@pageMap[Pics]=@Images;
}
}
$if(@pageMap==$null){
@pageMap=$map();
}
@querycag[CatalogId]=@pageMap[CatalogId];
@cagMap=@querycag.map(['CatalogId,CatalogName,ParentId'],['CatalogId={*CatalogId}']);
@querycag[CatalogId]=@cagMap[ParentId];
@CatalogName=@querycag.scalar(['CatalogName'],['CatalogId={*CatalogId}']);
@pageMap=...