File:newPage.htm
Method:map.get(key,default)
pageMap??get
类型不正确
xmls/new.xmls
...font-size: 15px;height: 45px;line-height: 45px;text-align: center;">--没有找到任何数据--</div>"];
}
@map=$map();
@map[list]=@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,CreateDate'],['ContentId={*ContentId}']);
@CreateDate=$datetime.format(@
pageMap[CreateDate],yyyy-MM-dd);
@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....