File:product-info.htm
Method:map.get(key,default)
rowcontent??get
类型不正确
xmls/product.xmls
...],8,$get(page,1));
@content=@goodslist.format(@format);
$if(@count==0){
@content=['<div style="color: #FF0000; font-size: 12px; height: 45px; line-height: 45px; text-align: center;">对不起,当前没有数据!</div>
'];
}
@map=$map();
@map[list]=@content;
@map[pages]=$number.ceiling((@count/8));
@map[count]=@count;
$write(@map.toJson());
}


//产品详情
$sub viewProduct(){
@querycon=$query(product,product);
@rowcontent=@querycon.map(*,['{*ProductId = $argv(0,0)} and {*AreaId = $shell[AreaId]}']);
@
doc=@rowcontent[Doc];
$if(@doc<>$empty){
@tables=$datatable.loadJson(@doc);
@con=@tables.format(['<li>
<p class="artImg">
<em>
<img src="../images/art04.png"></em>
</p>
<p class="artTitle">{*title}</p>
<p class="artNm">{*length}kb</p>
<p class="loading"><a href="{*src}" >立即下载</a></p>
</li>']);
}
$else{
@con=[#<div style="width:100%;text-align:center;color:red;">暂无资料</div>#];
}
$return($empty);
}

//产品文件
$function viewProductFile(format){
@querycata=$query(catalog,product);
...