File:en/productpage.htm
Method:map.get(key,default)
viewMap??get
类型不正确
en/xmls/product.xmls
...]);
}
};
$if(@count==0){
@Pagelist=["<div style="color: #929292; font-size: 15px; height: 45px; line-height: 45px; text-align: center;">--没找到任何数据--</div>"];
}
@map=$map();
@map[list]=@Pagelist;
@map[pages]=$number.ceiling((@count/48));
@map[count]=@count;
$write(@map.toJson());
}
//分类介绍
$sub viewCatalog(){
@querygcata=$query(catalog,goods);
@querygcata[CatalogId]=$argv(0,1);
@viewMap=@querygcata.map(['EnCatalogName,ParentId'],['CatalogId={*CatalogId}']);
@querygcata[CatalogId]=@
viewMap[ParentId];
$if(@viewMap[ParentId]<>0){
@CatalogName=@querygcata.scalar(['EnCatalogName'],['CatalogId={*CatalogId}']);
}
$else{
@CatalogName=@viewMap[EnCatalogName];
}
$return($empty);
}
//产品列表
$sub Goodslist(){
@format=[#<li>
<a href="{~../productview/*GuId}" class="pro_lis defo_img">
<div class="pro_litop">
{*EnGoodsName}
</div>
<div class="pro_imgw">
<img src="{@Pic}">
</div>
<div class="prot_itex">
<p>&nbsp&nbsp&nbsp&nbspCatalog number: {*GoodsCode}</p>
<p>&nbsp&n...