File:cn/product-details.htm
Method:number.round(value)
~value:@
类型不正确
cn/xmls/goods.xmls
... @querygoods[Identification]=$argv(0,$null);
@table=@querygoods.map(['GoodsName,EnGoodsName,CAS,MDL,MF,MW,CatalogId,GoodsId,GoodsCode,AnotherName,Describe,Pic'],[' Status>0 and {*AreaId = $shell.getData(cn)} {?and (} {*CAS = } {?or} {*GoodsCode =} {?or} {*Identification =} {?)}']);
@map=$map();
$if(!@table){
@map[Body]=['<div class="cred">抱歉,没有该产品的详细目录。</div>'];
}
$else{
@map[GoodsName]=@table[GoodsName];
@map[CAS]=@table[CAS];
@map[MF]=@table[MF];
@map[MDL]=@table[MDL];
@map[MW]=$
number.round(@table[MW],2);
@map[CatalogId]=@table[CatalogId];
@map[GoodsId]=@table[GoodsId];
@map[EnGoodsName]=@table[EnGoodsName];
@map[GoodsCode]=@table[GoodsCode];
@map[AnotherName]=@table[AnotherName];
@map[Describe]=@table[Describe];

@map[Pic]=@table[Pic];
@map[cdisplay]=display:block;
@map[tdisplay]=display:none;
@Pic=@table[Pic];
$if(@Pic){
@map[cdisplay]=display:none;
@map[tdisplay]=display:block;
}
}
$shell.put(@map);

$return($empty);
}

//Title

$sub GoodsTit...